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

Duff values uploaded when CMX knows there is a console prob

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
User avatar
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:

Duff values uploaded when CMX knows there is a console prob

Post by jpsc »

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?
John Cooper

Cumulus MX v4 on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image
User avatar
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

Post by steve »

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?
Steve
User avatar
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

Post by jpsc »

steve wrote:Is the 'synchronise Fine Offset reads' setting not helping to mitigate the lockup problem for you?
Well I thought I had it set, but when I look in the ini file I see

Code: Select all

SyncDavisClock=1
SyncFOReads=0
So it looks like finger trouble.

I'll see what it is like with it set. It wasn't a constant problem anyway.
John Cooper

Cumulus MX v4 on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image
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

Post by jank »

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".
John,
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?
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
User avatar
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

Post by jpsc »

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.
John Cooper

Cumulus MX v4 on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image
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

Post by jank »

jpsc 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.
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 like
(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?
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
User avatar
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

Post by jpsc »

That's a good idea, I'll take a look at your scripts, thanks.
John Cooper

Cumulus MX v4 on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image
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

Post by jank »

jpsc wrote:That's a good idea, I'll take a look at your scripts, thanks.
This is nothing I already have available.
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
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
Locked