Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

now have automatic on/off scripts using cumulus webtags..

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

now have automatic on/off scripts using cumulus webtags..

Post by ace2 »

Thanks to BCJKiwi's script to convert sunrise and sunset times into a switch script with offset.
I now have 4 scripts Replacing dozens, i have one that starts the single webshot every 10 minutes and uploads to site between sunrise and sunset, one that does the hourly 2 hour mini time lapse between sunrise and sunset, one for the 3 hourly highlight jpgs and one that does the main daily timelapse 45 minutes before dawn and 45 minutes after dusk.
This is all don't using cumulus webtags and some dos scripts.

Most script are running now or been tweaked a little and are ready to go.

So thanks again BCJKiwi and others....
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by tumutbound »

Looks good.

I must get working on doing something similar. I'm creating daily time-lapses but haven't decided on how to display them on the website.
I'm also going to drop down the upload frequency to every 5 minutes instead of every minute, the weather doesn't change THAT rapidly!

Tonight, I've updated the software to take images based on sunrise/sunset times. Stopping images about 12 minutes after sunset seems best. Starting time isn't as critical as the fog hangs around until 10AM or so.
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by ace2 »

It's fun isn't....

Just finished hand editing 17 pages of script, fixing little errors and double checking everything.


I think it's time I learnt powershell.......
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by ace2 »

Just removed all old script and switched to 5 only..
They take care of dawn/dusk single shot uploading, before dawn/after dusk keeping of jpg's for time lapse, creating hourly mini time lapse, taking and uploading highlight shots and finally creating and uploading main time lapse.
Also included is 24 hour motion detection, night ones uploaded to site, day ones put onto NAS drive to go through.

Now the waiting game to see if every thing goes smoothly!!!!!!
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by tumutbound »

Still playing around with sunset/sunrise stuff. I've decided that 30minutes after sunset is the limit to a viewable picture so I'll make some changes to implement this tonight (one of the advantages of not having a TV is lots of spare time in the evening).

What size do your timelapse files end up as when you upload them to your website? I've found mine (640x480) end up at about 15MB which seems a bit big. (sample at http://port-huon.com.au/weather/webcam/timelapse.avi).

Regards
Geoff
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by ace2 »

Using ffmpeg and 480 profile which is a res of 720*480 mp4 with a size around 18MB

Think I have a few issues with scripts.......
Will have to Wait till I finish work :(
Don't think I'll be getting any time lapse either....
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by tumutbound »

No 480 profile with my ffmpeg, perhaps that's a windows thing?
My timelapses are AVI format (MP4) at 640x480 and vary in size from 10 - 24 MB.

I've never tried scripting under Windows but it seems that it's fairly limited. Yah for Linux and bash!
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by ace2 »

Oh OK. The command I use for ffmpeg is ffmpeg -i FRAME%%04d.JPG -r 24 -threads 7 -s hd480 -b 1300k -vcodec libx264 myfile1.mp4 -y

If that can help. My sourse file are 720p taken every 17 seconds.
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by tumutbound »

Command line I use is:

mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=680:480 -o test2.avi -mf type=jpeg:fps=24 mf://@FileList

Due to the extra processing that is done, the best the Pi camera can do is one image ever 45 seconds or so, that includes uploading to the website.
Last edited by tumutbound on Sun 01 Jun 2014 10:21 am, edited 1 time in total.
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by ace2 »

tumutbound wrote:Due to the extra processing that is done, the best the Pi camera can do is one image ever 45 seconds or so, that includes uploading to the website.
Really, That sucks, I was going to update to a Pi setup to......
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by tumutbound »

It's not too bad really as during that time, the camera:

1. Takes 3 images with different settings
2. Combines all three to create an HDR image
3. Inserts GPS info as EXIF data
4. Overlays the date/time (and soon weather info) on the image
5. Uploads it to the website

It also takes care of uploading a copy of each image taken to my local server and produces the timelapse every night.

I have another Pi with a camera module so I'll play around a bit and see how many images a second it can take without the extra processing.

Regards
Geoff
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by ace2 »

That's not too bad than, I suppose I'm lucky to have the grunt of a media PC and a NAS as storage!!!
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by tumutbound »

I like the idea of the camera being able to handle all the work. If my computer is off the air for a few days, if I'm away for example, then the images still get taken and uploaded, Actually I have to leave my server on as it runs Cumulus (in a VM)

BTW, I just ran a quick python script as was able to take five, 1024 x 768, images in about 6 seconds. I'll do this during daylight to see what the quality is like.
Sorry to hijack your thread :)
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by ace2 »

Hijack all you like, I'm notorious for it. :)

My poor media center is on 18 hours a day, thanks to the family recording everything they can!
Cumulus also runs on it as well....

Tonight will be first time since begining that I've missed creating a time lapse!!!
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: now have automatic on/off scripts using cumulus webtags.

Post by tumutbound »

I will create a thread on Pi camera options in the Homebrew section (I think that's where my Pi camera posts are) but ...

Using the video capture option, but taking single images, not a video stream, I was able to take 600 images at a rate of 11 frames per second. That should be fast enough!
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
Post Reply