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

webtag #ProgramUpTime

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
User avatar
HansR
Posts: 5957
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

webtag #ProgramUpTime

Post by HansR »

This morning the #ProgramUpTime webtag produced an erroneous value. Normally it is correct.
See attachment. I checked the code and come to the conclusion it must be an error in the library. Let's see if it changes.
The source before processing is:

Code: Select all

Linux/Unix

System uptime: 3 weeks, 4 days, 21 hours
Cumulus uptime: <#ProgramUpTime>

System: Raspberry Pi 3 Model B Plus Rev 1.3
Processor: ARMv7 Processor rev 4 (v7l)
Nr of processors: <#CpuCount>
OS: Linux 4.19.75-v7+ armv7l
Description: Raspbian GNU/Linux 10 (buster)
Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)
You do not have the required permissions to view the files attached to this post.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: webtag #ProgramUpTime

Post by Phil23 »

Tried Summing the numbers to see if it looked like a signed integer roll-over, but nothing seems obvious.
Capture.JPG
You do not have the required permissions to view the files attached to this post.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
ExperiMentor
Posts: 214
Joined: Tue 24 Nov 2015 11:30 pm
Weather Station: Fine Offset & Davis Vantage Vue
Operating System: Windows 10; Raspbian Buster
Location: Switzerland

Re: webtag #ProgramUpTime

Post by ExperiMentor »

Stacks overflow. Dynamic memory allocation gets out of hand. Indices extend and overwrite data. Power glitches corrupt RAM content.
Yes, I know it shouldn't happen, but it does.

Best practice is to always schedule occasional system reboots. They can avoid all sorts of odd problems like this ...
User avatar
HansR
Posts: 5957
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: webtag #ProgramUpTime

Post by HansR »

@Phil: thanks for trying. "Though this be madness, yet there is method in 't." So this is worse: no system in numbers, I guess @ExperiMentor has his point ;)
@ExperiMentor: You're right. Roughly 24 hours later the Raspberry went wild in an infinite loop writing to the SD card. Some 2 Gb were written, the system became unresponsive and I am still trying to recover it. Hmm... would this be a consequence of migrating to Buster? Anyway, there are many upgradables so I guess it's maintenance time.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply