Every now and then my cheapo console becomes unresponsive and Cumulus MX 3032 starts writing "Error reading data from station - it may need resetting". I have to remove the USB cable and the batteries to reset. The station is OK and still shows current conditions, it's just the interface is locked up. I think you have seen this quite often with the Maplin Fine Offset stations.
I am happy to reset the hardware, but the problem is that Cumulus still updates the log file and all the sites it is uploading to. Some of them can be edited but others have the bad values forever.
Could Cumulus suppress the logging if the console needs resetting?
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Duff values uploaded when CMX knows there is a console prob
Moderator: mcrossley
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Duff values uploaded when CMX knows there is a console p
MX behaves this way because Cumulus 1 does - the operation of the code is basically the same. It should keep re-using the last known good values that it read. There is a long-outstanding enhancement request that Cumulus stops logging under certain circumstances such as the one you describe. At some point hopefully I'll get around to looking at this, along with all of the other enhancement requests.
Cumulus 1 has the advantage that it has the 'restart if data stops' setting, which means it should either recover or stop logging on the restart if the problem persists. This is something else that I will add to MX, when I work out how to do it reliably across all platforms.
Is the 'synchronise Fine Offset reads' setting not helping to mitigate the lockup problem for you?
Cumulus 1 has the advantage that it has the 'restart if data stops' setting, which means it should either recover or stop logging on the restart if the problem persists. This is something else that I will add to MX, when I work out how to do it reliably across all platforms.
Is the 'synchronise Fine Offset reads' setting not helping to mitigate the lockup problem for you?
Steve
- jpsc
- Posts: 183
- Joined: Tue 23 Aug 2011 6:06 pm
- Weather Station: Davis Vantage Vue, belfryboy USB
- Operating System: Raspbian Bullseye
- Location: Wye valley, Herefordshire, UK
- Contact:
Re: Duff values uploaded when CMX knows there is a console p
Well I thought I had it set, but when I look in the ini file I seesteve wrote:Is the 'synchronise Fine Offset reads' setting not helping to mitigate the lockup problem for you?
Code: Select all
SyncDavisClock=1
SyncFOReads=0
I'll see what it is like with it set. It wasn't a constant problem anyway.
-
jank
- Posts: 239
- Joined: Sat 13 Jun 2015 5:57 pm
- Weather Station: FineOffset WS3080
- Operating System: Debian Buster - Raspbian - Raspb
- Location: Germany - nearby Kassel
Re: Duff values uploaded when CMX knows there is a console p
John,jpsc wrote:Every now and then my cheapo console becomes unresponsive and Cumulus MX 3032 starts writing "Error reading data from station - it may need resetting".
whats about a small bash script which is checking the logs in the background for this error and in case this error is being in the logs, would a reboot of the system help or do you need to turn off/on the weatherstation?
- jpsc
- Posts: 183
- Joined: Tue 23 Aug 2011 6:06 pm
- Weather Station: Davis Vantage Vue, belfryboy USB
- Operating System: Raspbian Bullseye
- Location: Wye valley, Herefordshire, UK
- Contact:
Re: Duff values uploaded when CMX knows there is a console p
Yes, the problem is that the only way to reset is to remove the USB power and take the batteries out, AKA turn it off and on again.
-
jank
- Posts: 239
- Joined: Sat 13 Jun 2015 5:57 pm
- Weather Station: FineOffset WS3080
- Operating System: Debian Buster - Raspbian - Raspb
- Location: Germany - nearby Kassel
Re: Duff values uploaded when CMX knows there is a console p
okay, I had a project with a WiFi Plug Socket (SILVERCREST Wi-Fi SWS A1) where I was able to turn it on and off via bash script and php by sending cryptical commands likejpsc wrote:Yes, the problem is that the only way to reset is to remove the USB power and take the batteries out, AKA turn it off and on again.
(echo -n "0142ACCF2334536610F7B4E74B970D96F3CA2BB5D3CD1C19D0" | perl -pe 's/([0-9a-f]{2})/chr hex $1/gie' | nc -4u -w1 192.168.0.7 8530) by direct addressing the MAC address via netcat. This can be used in a simple bash script to turn something on and off....but this is too complicated and you need additional hardware.
But you complain about the fact that cumulus is still updating websites with never changing values in case the interface is crashing. How's about checking the logfiles for such kind of entries and in case of a problem, shutting down CumulusMX (to avoid these entries) and sending a warn e-mail to you?
- jpsc
- Posts: 183
- Joined: Tue 23 Aug 2011 6:06 pm
- Weather Station: Davis Vantage Vue, belfryboy USB
- Operating System: Raspbian Bullseye
- Location: Wye valley, Herefordshire, UK
- Contact:
Re: Duff values uploaded when CMX knows there is a console p
That's a good idea, I'll take a look at your scripts, thanks.
-
jank
- Posts: 239
- Joined: Sat 13 Jun 2015 5:57 pm
- Weather Station: FineOffset WS3080
- Operating System: Debian Buster - Raspbian - Raspb
- Location: Germany - nearby Kassel
Re: Duff values uploaded when CMX knows there is a console p
This is nothing I already have available.jpsc wrote:That's a good idea, I'll take a look at your scripts, thanks.
I have a bash script which can turn on and off these WIFI Plugs, but you need to have exactly these plugs.
But in case the connection to your Logger is lost and you want get a warnmail of cumulus being stopped, , this is something you can do with a simple script
for example:
#!/bin/bash
Code: Select all
curlog=$(ls -tp //home/pi/CumulusMX/MXdiags | grep -v /$ | head -1)
error=$(grep -i "Error reading data from station" $curlog)
if [ "$error" -ne "" ]
then
screen -X -S CumulusMX stuff "^C"
fi