IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

I strongly advise all users using my server for their web site to make alternative arrangements.

Outgoing mail is disabled because of the malware on the server. No new forum registrations are currently possible, and mail to the forum administrator will not work.

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Sun Plot

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

Moderators: daj, TNETWeather

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

Re: Sun Plot

Postby mcrossley » Tue Aug 30, 2016 8:24 pm

Well you don't need to do any adding up, there is a column in the realtime table - SunshineHours to total it for you. Or do what I have done on my homepage and just use the SunshineHours tag (I used daylength along with rise/set times) to add the text around the chart.

I don't intend to add any text to the chart, but anyone can modify the base code as they see fit.
Last edited by mcrossley on Tue Aug 30, 2016 9:27 pm, edited 1 time in total.

User avatar
kocher
Posts: 67
Joined: Sat Apr 19, 2014 7:57 pm
Weather Station: Davis Vantage Pro2+
Operating System: Windows 10
Location: San Sebastian - Spain
Contact:

Re: Sun Plot

Postby kocher » Tue Aug 30, 2016 9:10 pm

Thank you very much for everything. :clap:

It is just an idea
Image

User avatar
PaulMy
Posts: 1681
Joined: Sun Sep 28, 2008 11:54 pm
Weather Station: Davis Vantage Pro 2 w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

Re: Sun Plot

Postby PaulMy » Fri Sep 02, 2016 2:49 pm

I am now using Sunplot version 1.3 with Cumulus External Program running a batch file to upload the B-L SunRecords file every 5 minutes. The data used is the seconds by seconds logging in the file. The scripts resulting png image is displaying the result of that data, and the last part of the image could be up to 5 minutes behind until the next file upload. A nice presentation of sunshine here in Komoka! http://www.komokaweather.com/weather/su ... unplot.php.

Today's SunRecords log as of now has:
SRS 06:51:52 19:57:47
TOT 03:06:22 00:00:00
SUN 06:51:52 07:05:30
SUN 07:15:40 07:16:35
SUN 07:31:52 10:23:38
NRC 10:23:38 19:57:47

SUN 06:51:52 07:05:30 is the first period of sunshine for a period of 00:13:58
SUN 07:15:40 07:16:35 is the second period of sunshine of 00:00:55 after 00:10:10 of no sunshine
SUN 07:31:52 10:23:38 is the third period of sunshine (after 00:15:17 of no sunshine) until the current reading at 10:23:38
That 00:00:55 period of sunshine does show on the image :clap:

Now this is a very sunny day so far so not many ON/OFF periods yet but that can happen dozens of times over a day. Many short periods of ON/OFF will blur those periods like this image comparison of a couple days ago.

Thanks Mark,
Paul
You do not have the required permissions to view the files attached to this post.

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

Re: Sun Plot

Postby mcrossley » Sun Oct 30, 2016 7:02 pm

Phew! Sunplot chipped with the hour going back, see the step at 2 o'clock. Now symmetrical around 12.

It also shows just how much darkness there is now in the UK.
sunplot.png


Sorry for the crumbie image, I'm on my phone.
You do not have the required permissions to view the files attached to this post.

nowind
Posts: 8
Joined: Thu Feb 02, 2017 8:22 pm
Weather Station: Davis Vantage Vue
Operating System: Win 10

Re: Sun Plot

Postby nowind » Fri Aug 24, 2018 1:52 pm

This is an old post, but I choose to post a question here.

I have problems with timezone-settings in sunplot.php version 3.1 downloaded from Marks' site. Timezone in mysql is CEST. My PHP version is 7.1 and the timezone is set to Europe/Berlin. Unfortunately, I can't change this.

This is the response if I set my timezone to Europe/Berlin: ERROR - Setting time zone - Unknown or incorrect time zone: 'Europe/Berlin'

If I try '+01:00',I get this in my error-log:
[24-Aug-2018 13:54:26 Europe/Berlin] PHP Notice: date_default_timezone_set(): Timezone ID '+01:00' is invalid in ....... sunplot.php

I have of course searched the forum and googled, but I can't find any solution. :?

Any workaround?

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

Re: Sun Plot

Postby mcrossley » Fri Aug 24, 2018 7:50 pm

Not seen that problem before, maybe you could try importing the TZ data again, the download is here... http://pecl.php.net/get/timezonedb


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 10 guests