Page 1 of 1

Sunshine today

Posted: Thu 02 May 2024 6:27 am
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...)

Re: Sunshine today

Posted: Thu 02 May 2024 8:33 am
by SamiS
What build/version are you running? I have 3.28.6 build 3283 and today’s sunshine is calculated correctly.

Re: Sunshine today

Posted: Thu 02 May 2024 8:35 am
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.

Re: Sunshine today

Posted: Thu 02 May 2024 8:59 am
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

Re: Sunshine today

Posted: Thu 02 May 2024 9:03 am
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

Re: Sunshine today

Posted: Fri 03 May 2024 5:07 am
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

Re: Sunshine today

Posted: Fri 03 May 2024 6:06 am
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.

Re: Sunshine today

Posted: Sat 04 May 2024 9:19 am
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...

Re: Sunshine today

Posted: Sat 04 May 2024 9:52 am
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.

Re: Sunshine today

Posted: Sat 04 May 2024 9:54 am
by mcrossley
Do you really need a daily reboot anyway? I often leave my Linux running for months between reboots.

Re: Sunshine today

Posted: Sat 04 May 2024 10:00 am
by mcrossley
Also, make the reboot at a time when a log entry isn't being created, so 00:32 say.

Re: Sunshine today

Posted: Sat 04 May 2024 7:58 pm
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 (?)

Re: Sunshine today

Posted: Sat 04 May 2024 8:40 pm
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

Re: Sunshine today

Posted: Tue 07 May 2024 2:48 pm
by olli395
This did the thing!
After deleting the cron, it works fine now!
Thank you all :-)