Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

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

Sun Plot

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

Moderator: daj

User avatar
mcrossley
Posts: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and 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/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
User avatar
mcrossley
Posts: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 144
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 π rPi5
http://augusta-pines-weather.com / CumulusMX 4.0.0 build:4017
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: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 1775
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: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 1775
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: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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