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 4019) - 03 April 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Sun Plot
Moderator: daj
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Sun Plot
It deletes the entries older than the interval you specify each time it does an update.
Steve
- mcrossley
- Posts: 12756
- 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
It will keep a 'rolling' 24 hours. I keep 10 days worth, MySQL can cope quite happily with millions of rows in a table.
-
- Posts: 1815
- 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
Sorry for the late reply, I ended up going beach fishing yesterday evening.
Thank you for the help and pointers guys, all is working well! I'll be making a separate page for all the credits.
Thank you for the help and pointers guys, all is working well! I'll be making a separate page for all the credits.
- mcrossley
- Posts: 12756
- 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
Version 1.2 of Sun Plot is now available. It adds the option to put hourly ticks on the plot and numbers every 3 hours.
(1.1 in case you missed it fixed undeclared variable $sunShineRaw that manifested itself just after midnight).
It also uses a True Type font (arial.ttf by default), so you will need that font file on your web server somewhere - and don't forget to set the path/filename in the script. If it can't find the font you will get the tick marks but no numbers.(1.1 in case you missed it fixed undeclared variable $sunShineRaw that manifested itself just after midnight).
You do not have the required permissions to view the files attached to this post.
- PaulMy
- Posts: 3846
- 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
I have uploaded Sun Plot http://www.komokaweather.com/weather/sunplot.php without sunhours as have not yet figured out how I can get that sata from my B-L Sunrecorder.
However having difficulty in getting it to work in http://www.komokaweather.com home page. I have inserted
I must be missing something
Paul
However having difficulty in getting it to work in http://www.komokaweather.com home page. I have inserted
Code: Select all
<td>
<span id="sunplot" style="width:400px; height:150px; margin: 0px 5px; border:0">
<p>Sun Plot: Charting Sunrise, Current Sun Position, Sunset.
<?php include "sunplot.php"; ?></p>
</span>
</td>
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- mcrossley
- Posts: 12756
- 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
Ah, yes, you don't "include" the script. It returns a PNG image, so just put an <img> tag in your HTML where you want it and let the browser pull it down. That way you can refresh it periodically too.
<img src="path/sunplot.php" alt="sun plot" width="xxx" height="yyy">
<img src="path/sunplot.php" alt="sun plot" width="xxx" height="yyy">
- mcrossley
- Posts: 12756
- 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
An example of another users implementation, he is using WeatherCat not Cumulus and doesn't have sun shine data either, but his pages are quite stylish. You may notice that he has changed the sun plot to use different colours, and the same font as the rest of his data, a nice touch.
http://wetter.unterwurzacher.at/wetterwerte.html
You need to scroll down a bit, or use the 'sonne' link.
http://wetter.unterwurzacher.at/wetterwerte.html
You need to scroll down a bit, or use the 'sonne' link.
-
- Posts: 1815
- 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
Nice work, I really like it! Updated it on my page, the image isn't as big as others, but I like it. I use Source Sans Pro as my main font, so I used the bold version for the numbers. Very pleased with it!
- PaulMy
- Posts: 3846
- 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
@Mapantz your http://www.warehamwx.co.uk/cumulus/ really well done and looks professional.
@http://wetter.unterwurzacher.at/wetterwerte.html is a nice image for sun plot, and going well with that page.
I have been able to get it added http://www.komokaweather.com but whenever I set
There is a mention of arial.ttf and I likely don't have that uploaded or don't know where. I have searched my computer, website and Google but haven't been able to find or understand. Where/what would I need to have the hours show on the axis?
Paul
@http://wetter.unterwurzacher.at/wetterwerte.html is a nice image for sun plot, and going well with that page.
I have been able to get it added http://www.komokaweather.com but whenever I set
the image fails.$showHours = true; // Plot the hours 0-24 along the horizon axis
There is a mention of arial.ttf and I likely don't have that uploaded or don't know where. I have searched my computer, website and Google but haven't been able to find or understand. Where/what would I need to have the hours show on the axis?
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Sun Plot
In order for the graphic to be constructed with your font of choice, the font needs to be available to it.There is a mention of arial.ttf and I likely don't have that uploaded or don't know where. I have searched my computer, website and Google but haven't been able to find or understand.
font files end with extension .ttf (or more correctly TrueTypeFont format - different scaled heights available)
On your PC they are most likely situated in C:/WINDOWS/fonts
Just do a search for .ttf and the worlds your oyster - after you have uploaded the one you want to your webspace and referenced properly.
......................Imagine, what you will KNOW tomorrow !
- PaulMy
- Posts: 3846
- 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
Thanks beteljuice,
I've now added a fonts folder on my webserver in root and all is set. Another lesson learned!
Paul
once I looked in the most obvious folder (I had searched arial.ttf and nothing showed up and missed the fonts subfolder in Windows).I've now added a fonts folder on my webserver in root and all is set. Another lesson learned!
Paul
You do not have the required permissions to view the files attached to this post.
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- mcrossley
- Posts: 12756
- 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
Paul, is your B-L sun recorder feeding in to Cumulus? Do you have a MySQL database?
If yes to both then you should be able to get the sun shine option on the sun plot working.
Or do you have a file on the server that provides the "sun shining" data, we could maybe do a B-L specific version of the script to read that file.
If yes to both then you should be able to get the sun shine option on the sun plot working.
Or do you have a file on the server that provides the "sun shining" data, we could maybe do a B-L specific version of the script to read that file.
- PaulMy
- Posts: 3846
- 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
Hi Mark,
Yes the B-L sunshine data is picked up by Cumulus once a minute from a B-L txt file, and then Cumulus includes it in current condition, the log files, and graphs.
I upload dayfile.txt to my dayfile MySQL at day end, but not realtime. However I could upload to a realtime MySQL, would just have to go back to my notes and forum posts on how to.
The B-L has a daily txt log file with ongoing entries for the times of when the sun is shining or not, so this can have zero records or hundreds depending on the day's ongoing sun/cloud condition - i.e. part of today's:
The B-L also has a second daily ongoing system monitoring txt file with an entry every 1 second during sunrise-sundown. But it is not in a form I understand - i.e. part of today's:
I had asked Ole if it is possible to extract any useful data from this but don't have the reply.
p.s. there has to be an easier/quicker way to see the results after editing indexT.txt rather than wait for the 5-min Cumulus update, or try to sneak in a manual Web Update
Regards,
Paul
Yes the B-L sunshine data is picked up by Cumulus once a minute from a B-L txt file, and then Cumulus includes it in current condition, the log files, and graphs.
I upload dayfile.txt to my dayfile MySQL at day end, but not realtime. However I could upload to a realtime MySQL, would just have to go back to my notes and forum posts on how to.
The B-L has a daily txt log file with ongoing entries for the times of when the sun is shining or not, so this can have zero records or hundreds depending on the day's ongoing sun/cloud condition - i.e. part of today's:
Code: Select all
LAT 42.9539
LON 81.4352
TZ -5
DST True
SRS 06:38:49 20:17:50
TOT 01:55:37 00:00:00
SUN 07:39:25 07:44:55
SUN 07:45:52 08:03:23
SUN 08:03:45 08:04:37
SUN 08:04:44 08:07:34
SUN 08:08:05 08:12:27
SUN 08:13:11 08:13:38
SUN 08:16:48 08:17:29
SUN 08:18:29 08:18:46
SUN 08:19:19 08:19:48
...etc
Code: Select all
SerialNo,10013
Lat, 42.9539
Lon, 81.4352
Max,36.0
Min,13.1
TC,5.9
Win,4.6
Gain,1.000
Dawn,06:08:48
Rise,06:38:49
Noon,13:28:43
Set,20:17:50
Dusk,20:47:48
TempLow,0.0
TempHigh,26.8
VoltLow,0.00
VoltHigh,5.07
0567000007785
0567100007786
0567200007787
0567300007788
0567400007789
056750000778A
056760000778B
056770000778C
056780000778D
056790000778E
0567A0000778F
0567B00007790
...etc
p.s. there has to be an easier/quicker way to see the results after editing indexT.txt rather than wait for the 5-min Cumulus update, or try to sneak in a manual Web Update
Regards,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- Posts: 1815
- 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
The perfect day in England for looking at the Solar graph, and looking like a full house on the sun plot too.
- PaulMy
- Posts: 3846
- 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
I got the sunplot on http://www.komokaweather.com using MySQL realtime data.
Also had it working using the B-L Sunrecorder data, just need to overcome how to update the B-L Sun_20160823.dat file.
Enjoying, and thanks Mark for all your help.
Paul
Also had it working using the B-L Sunrecorder data, just need to overcome how to update the B-L Sun_20160823.dat file.
Enjoying, and thanks Mark for all your help.
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm