Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.18.0 (build 3190) - 15 June 2022

Legacy Cumulus 1 release v1.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 interested in supporting Cumulus then maybe you would like to contribute to the maintenance of the Wiki? This need not take hours of your time - just a half hour here and there can make a big difference, particularly if many people are doing this. Any contributions are very welcome, whether they involve new content or editing of existing content. It will be very helpful to current and future users of Cumulus software if the Wiki is kept well-maintained and current. If you are interested then please contact forum user saratogaWX and ask for a Wiki account.

Sun Plot

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

Moderator: daj

User avatar
mcrossley
Posts: 10118
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Sun Plot

Post by mcrossley »

I have been playing around creating a new sun graphic for my site. It shows the Sun's elevation through the day and plots when it has been sunny (answer: not very often this summer).

Here is a sample from today...
sunplot.png
And the current test link... [removed]
What do you think, promising?
You do not have the required permissions to view the files attached to this post.
Last edited by mcrossley on Tue 26 Jul 2016 8:56 am, edited 1 time in total.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Sun Plot

Post by steve »

Me like :)
Steve
User avatar
PaulMy
Posts: 3085
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2+ Cumulus1 / CummulusMX
Operating System: Windows8 / Windows10
Location: Komoka, ON Canada
Contact:

Re: Sun Plot

Post by PaulMy »

Yes very nice Mark.

Could my B-L sunrecorder data work with that?

Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www .komokaweather.com/cumulusmxwll/index.htm
MX www.komokaweather.com/cumulusmx/index.php
MX www.komokaweather.com/cumulusmx/index.html

Image
User avatar
mcrossley
Posts: 10118
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sun Plot

Post by mcrossley »

Hi Paul, the script is self contained to plot the elevation, and uses my realtime MySQL table to plot the sun shine. So if your B-L sunshine is recorded by Cumulus into a table it would just work. You need minute by minute values for #IsSunny available from one source or another, if in a text file then you would need a parser.
User avatar
mcrossley
Posts: 10118
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sun Plot

Post by mcrossley »

Or more like this...?
sunplot.png
Live demo... [removed]
You do not have the required permissions to view the files attached to this post.
Last edited by mcrossley on Tue 26 Jul 2016 8:56 am, edited 1 time in total.
f4phlyer
Posts: 109
Joined: Sun 13 Feb 2011 7:12 pm
Weather Station: Davis Vantage Pro 2
Operating System: RaspBerry Pi Win 10 OSx
Location: Spring, Texas USA
Contact:

Re: Sun Plot

Post by f4phlyer »

Neat, great visual info
retreat at augusta pines weather
CumulusMX on Raspberry π 3
http://augusta-pines-weather.com / CumulusMX 3.16.0 b:3178
WeatherUnderground KTXSPRIN538
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Sun Plot

Post by steve »

mcrossley wrote:Or more like this...?
I prefer the first one. The green seems to distract from the more important detail.
Steve
User avatar
mcrossley
Posts: 10118
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sun Plot

Post by mcrossley »

I think I prefer the first one too, the shade of green needs a tweak in the second, I'll have a look later...
User avatar
mcrossley
Posts: 10118
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sun Plot

Post by mcrossley »

Right one script, but you can configure the look a little. Either by editing variables or supplying overrides.

No overrides gives the full caboodle....
Image

Or, change the size, switch off ground plot, switch off sunshine plot (?size-h=300&size-v=150&showSunshine=0&showGround=0)...
Image

Edit: I forgot, you can make the background transparent too with the over-ride "transparent=1"...
Image
Last edited by mcrossley on Wed 27 Jul 2016 7:55 am, edited 1 time in total.
Mapantz
Posts: 1284
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Sun Plot

Post by Mapantz »

I really like it! You always have imaginative ideas, but put them to good use. :)
Image
weatherist34
Posts: 51
Joined: Wed 13 Apr 2016 11:09 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: OSX High Sierra
Contact:

Re: Sun Plot

Post by weatherist34 »

mcrossley wrote:Right one script, but you can configure the look a little. Either by editing variables or supplying overrides.

No overrides gives the full caboodle....
Image

Or, change the size, switch off ground plot, switch off sunshine plot (?size-h=300&size-v=150&showSunshine=0&showGround=0)...
Image

Edit: I forgot, you can make the background transparent too with the over-ride "transparent=1"...
Image
i think thats an awesome piece of coding
User avatar
mcrossley
Posts: 10118
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sun Plot

Post by mcrossley »

Thanks everyone, I think the code side is just about done, now I need to find a space for it on my web site...
User avatar
mcrossley
Posts: 10118
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sun Plot

Post by mcrossley »

I've replaced the Sun 'pie chart' with this plot for now on my main page. What do you think?
Capture.PNG
EDIT: I have some 'responsive' scaling issues, I'll take a look at that tomorrow.

Any interest in me releasing this script?
You do not have the required permissions to view the files attached to this post.
Last edited by mcrossley on Wed 27 Jul 2016 10:41 pm, edited 1 time in total.
Mapantz
Posts: 1284
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Sun Plot

Post by Mapantz »

100% - I am.

Does it plot the sunshine from our sql db?
Image
User avatar
mcrossley
Posts: 10118
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sun Plot

Post by mcrossley »

Mapantz wrote: Does it plot the sunshine from our sql db?
Yes it does.
Post Reply