Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

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

Sunshine today

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
olli395
Posts: 7
Joined: Sat 06 Aug 2022 7:46 am
Weather Station: fine offset
Operating System: Linux mint

Sunshine today

Post by olli395 »

Hello everybody,
For a few days now the display of “ sunshine today ” has only been counting up! Yesterday morning there were already 29.2 hours of sunshine (?)
Since I haven't changed anything, I can't explain it...
Does somebody has any idea?
Sonnenstunden.png
(as yesterday was a sunny day it is now to 35.9 h...)
You do not have the required permissions to view the files attached to this post.
SamiS
Posts: 390
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Sunshine today

Post by SamiS »

What build/version are you running? I have 3.28.6 build 3283 and today’s sunshine is calculated correctly.
freddie
Posts: 2498
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Sunshine today

Post by freddie »

Could you please zip up your MXdiags log file and attach it to a reply to this topic. The file should cover the end-of-day rollover time.
Freddie
Image
olli395
Posts: 7
Joined: Sat 06 Aug 2022 7:46 am
Weather Station: fine offset
Operating System: Linux mint

Re: Sunshine today

Post by olli395 »

SamiS wrote: Thu 02 May 2024 8:33 am What build/version are you running? I have 3.28.6 build 3283 and today’s sunshine is calculated correctly.
The CMX version: Cumulus MX 3.28.5 b3282
olli395
Posts: 7
Joined: Sat 06 Aug 2022 7:46 am
Weather Station: fine offset
Operating System: Linux mint

Re: Sunshine today

Post by olli395 »

freddie wrote: Thu 02 May 2024 8:35 am Could you please zip up your MXdiags log file and attach it to a reply to this topic. The file should cover the end-of-day rollover time.
just had to activate the logging...
I will upload tomorrow, Thx
olli395
Posts: 7
Joined: Sat 06 Aug 2022 7:46 am
Weather Station: fine offset
Operating System: Linux mint

Re: Sunshine today

Post by olli395 »

Hello Freddie,
I have a lot of Files in that folder... Wich one(s) are the correct ones?
Bildschirmfoto vom 2024-05-03 07-08-30.png
You do not have the required permissions to view the files attached to this post.
freddie
Posts: 2498
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Sunshine today

Post by freddie »

Zip up the whole folder and attach it to a reply. It looks as if you are restarting MX hourly. MX is designed to run continuously.
Freddie
Image
olli395
Posts: 7
Joined: Sat 06 Aug 2022 7:46 am
Weather Station: fine offset
Operating System: Linux mint

Re: Sunshine today

Post by olli395 »

Hello Freddie,
too big to attach (71.8MB)...
You can download here: https://www.solat.ro/MXdiags.zip
Where is the hourly restart defined, - so I can check (?) *
thx, Olli

*Found it: was an error in the crontab:
I added:

Code: Select all

0 * * * * /sbin/shutdown -r now
instead of

Code: Select all

0 0 * * * /sbin/shutdown -r now
to reboot at midnight...

...just thought about it: the rollover is at midnight... could this be the problem?
To be sure I changed the cron now to

Code: Select all

30 0 * * * /sbin/shutdown -r now
, to restart 30 mins later...
User avatar
mcrossley
Posts: 12876
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine today

Post by mcrossley »

midnight is the worst possible time to reboot if you are using a midnight rollover, which is when Cumulus is doing its end of day processing which will mess up all sorts of things, including daily sunshine.
User avatar
mcrossley
Posts: 12876
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine today

Post by mcrossley »

Do you really need a daily reboot anyway? I often leave my Linux running for months between reboots.
User avatar
mcrossley
Posts: 12876
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine today

Post by mcrossley »

Also, make the reboot at a time when a log entry isn't being created, so 00:32 say.
olli395
Posts: 7
Joined: Sat 06 Aug 2022 7:46 am
Weather Station: fine offset
Operating System: Linux mint

Re: Sunshine today

Post by olli395 »

mcrossley wrote: Sat 04 May 2024 10:00 am Also, make the reboot at a time when a log entry isn't being created, so 00:32 say.
I just deleted the entry in crontab... I did this because the PI "froze " once in a while and the reboot resolved it, until the powersupply died... Finally this was the issue...
Maybe this is also the issue for the wrong sunhours (?)
User avatar
mcrossley
Posts: 12876
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sunshine today

Post by mcrossley »

As I said above all sorts of data will be incorrect because the overnight rollover processing has been interrupted. Your rainfall will be wrong for example. The sunshine hours is the least of the problems.

Example:

Code: Select all

2024-05-03 08:01:22.184 DoRain: A reading arrived at the start of a new day, but before we have done the roll-over. Ignoring it
olli395
Posts: 7
Joined: Sat 06 Aug 2022 7:46 am
Weather Station: fine offset
Operating System: Linux mint

Re: Sunshine today

Post by olli395 »

This did the thing!
After deleting the cron, it works fine now!
Thank you all :-)
Post Reply