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
CumulusMX sends 0 degree spike to WU on restart
Moderator: mcrossley
- 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:
CumulusMX sends 0 degree spike to WU on restart
It doesn't get logged and it doesn't get sent to any of the other services. I've noticed it a few times, it doesn't always happen.
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: CumulusMX sends 0 degree spike to WU on restart
What weather station type, and are you using rapid fire? It looks like the WU update timer is getting started before the temperature has been read for the first time. Can you confirm that you don't have NoSensorCheck=1 in Cumulus.ini?
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: CumulusMX sends 0 degree spike to WU on restart
Maplin N96FY
Type=5
Using RapidFire
RapidFire=1
There is no NoSensorCheck line in the .ini
Type=5
Using RapidFire
RapidFire=1
There is no NoSensorCheck line in the .ini
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: CumulusMX sends 0 degree spike to WU on restart
It could be that the rapid fire timer gets started before data has been read, but it's odd that only temperature is affected, as all the data is read at the same time. As this happened recently, hopefully the diags file will still exist - could you zip up the MX diags folder and attach it, please?
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: CumulusMX sends 0 degree spike to WU on restart
The air temp was the only one affected, the dew point was non-zero. I checked when I deleted the record from WU
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: CumulusMX sends 0 degree spike to WU on restart
What was the time of that entry? It looks like just after 01:00, but on the start at that time, it read an archive entry and uploaded that, so it had definitely started reading data.
2015-12-15 01:09:17.806 Creating WU URL #1
2015-12-15 01:09:17.806 http://weatherstation.wunderground.com/ ... =updateraw
On the previous start, however, at 00:40, it didn't have any archive entries to read. I can how this situation might arise in that case, as it would start the rapid fire timer just after the data reading timer. As you're using a 1-minute logger interval, it makes this more likely; for larger logger intervals there would normally be at least one archive entry to read.
You have a kind of 'perfect storm' of 1-minute logger intervals, using rapid fire, and restarting Cumulus just after it was closed down. I still don't understand how it can only affect temperature, though, when all the data is read at the same time. It suggests that the problem isn't that it updated WU before reading any data.
Edit: looking at your table on WU, it looks like it happened at 01:07, before you restarted, when there was a problem reading data from the station. On that restart, it definitely didn't update WU before it had read data.
2015-12-15 01:09:17.806 Creating WU URL #1
2015-12-15 01:09:17.806 http://weatherstation.wunderground.com/ ... =updateraw
On the previous start, however, at 00:40, it didn't have any archive entries to read. I can how this situation might arise in that case, as it would start the rapid fire timer just after the data reading timer. As you're using a 1-minute logger interval, it makes this more likely; for larger logger intervals there would normally be at least one archive entry to read.
You have a kind of 'perfect storm' of 1-minute logger intervals, using rapid fire, and restarting Cumulus just after it was closed down. I still don't understand how it can only affect temperature, though, when all the data is read at the same time. It suggests that the problem isn't that it updated WU before reading any data.
Edit: looking at your table on WU, it looks like it happened at 01:07, before you restarted, when there was a problem reading data from the station. On that restart, it definitely didn't update WU before it had read data.
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: CumulusMX sends 0 degree spike to WU on restart
You are right, I didn't look carefully at the log, and assumed it was the start that was the problem. It looks like a shutdown problem
I did not power off either the Pi or the station, I used Jan's shutdown script, copied over 3036 and restarted.
Code: Select all
2015-12-15 01:03:01.156 Sending user and pass to CWOP
2015-12-15 01:03:04.157 Sending: EW8125>APRS,TCPIP*:@150103z5157.80N/00239.60W_316/000g002t049r000p005P000h92b10142eCumulusFO
2015-12-15 01:03:07.157 End of CWOP update
2015-12-15 01:03:37.948 The operation has timed-out.
2015-12-15 01:03:37.948 Error reading data from station - it may need resetting
2015-12-15 01:03:40.949 The operation has timed-out.
2015-12-15 01:03:40.949 Error reading data from station - it may need resetting
2015-12-15 01:03:43.949 The operation has timed-out.
2015-12-15 01:03:43.949 Error reading data from station - it may need resetting
2015-12-15 01:03:46.949 The operation has timed-out.
2015-12-15 01:03:46.949 Error reading data from station - it may need resetting
2015-12-15 01:03:57.945 The operation has timed-out.
2015-12-15 01:03:57.945 Error reading data from station - it may need resetting
2015-12-15 01:04:00.946 The operation has timed-out.
2015-12-15 01:04:00.946 Error reading data from station - it may need resetting
2015-12-15 01:04:03.946 The operation has timed-out.
2015-12-15 01:04:04.258 Error reading data from station - it may need resetting
2015-12-15 01:04:07.259 The operation has timed-out.
2015-12-15 01:04:07.260 Error reading data from station - it may need resetting
2015-12-15 01:04:10.415 The operation has timed-out.
2015-12-15 01:04:10.415 Error reading data from station - it may need resetting
2015-12-15 01:04:13.415 The operation has timed-out.
2015-12-15 01:04:13.416 Error reading data from station - it may need resetting
2015-12-15 01:04:16.416 The operation has timed-out.
2015-12-15 01:04:16.416 Error reading data from station - it may need resetting
2015-12-15 01:04:19.417 The operation has timed-out.
2015-12-15 01:04:19.418 Error reading data from station - it may need resetting
2015-12-15 01:04:19.418 Ignoring bad data: pressure = 8.20000000000005
2015-12-15 01:04:19.419 offset = 0
2015-12-15 01:05:00.990 *** Data input appears to have stopped
2015-12-15 01:06:00.995 *** Data input appears to have stopped
2015-12-15 01:07:00.001 *** Data input appears to have stopped
2015-12-15 01:08:00.009 *** Data input appears to have stopped
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: CumulusMX sends 0 degree spike to WU on restart
So is this a problem with the shutdown script? There's no sign of MX being told to close, just the problem with communication with the station from 01:03:37.
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: CumulusMX sends 0 degree spike to WU on restart
Looks that way, I'll try it a few times to see if I can provoke it again.
- 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: CumulusMX sends 0 degree spike to WU on restart
This is proving difficult to untangle. We have had a few power cuts here recently, and I have a problem in that the Raspberry Pi boots up much faster than the broadband router, so when CMX gets started by the boot script, the RPi has not been able to contact a time server and so the clock is wrong.
All my log timestamps are therefore suspect.
Thanks for your help, this is obviously not a CMX problem at all.
All my log timestamps are therefore suspect.
Thanks for your help, this is obviously not a CMX problem at all.
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: CumulusMX sends 0 degree spike to WU on restart
Add a real time clock (RTC) to your Pi, I'm thinking of adding one to mine given the price.
http://thepihut.com/products/mini-rtc-m ... spberry-pi
http://thepihut.com/blogs/raspberry-pi- ... spberry-pi
http://thepihut.com/products/mini-rtc-m ... spberry-pi
http://thepihut.com/blogs/raspberry-pi- ... spberry-pi
- rogerthn
- Posts: 549
- Joined: Thu 11 Apr 2013 6:31 pm
- Weather Station: Ecowitt GW1000/GW1003
- Operating System: Raspberry Pi OS bullseye aarch64
- Location: Trollhättan Sweden
- Contact:
Re: CumulusMX sends 0 degree spike to WU on restart
Then the boot script should waitjpsc wrote:This is proving difficult to untangle. We have had a few power cuts here recently, and I have a problem in that the Raspberry Pi boots up much faster than the broadband router, so when CMX gets started by the boot script, the RPi has not been able to contact a time server and so the clock is wrong.
All my log timestamps are therefore suspect.
Thanks for your help, this is obviously not a CMX problem at all.
Maybe something like below will do the trick?
Code: Select all
network=0
while [ $network -lt 5 ]
do
ping -c 3 8.8.8.8 > /dev/null
if [ $? -eq 0 ]; then
network=$((network+1))
echo Network count = $network
fi
sleep 3
done

-
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: CumulusMX sends 0 degree spike to WU on restart
Isn't it, that also the raspberry Pi has a fake-hwclock programm installed to avoid exactly this Problem? From Time to Time the the Date will Be stored in a file which is being used for Time information at boot,in case Network isn't up?
By the way, the Start Script is already delaying at reboot.
When the Script is being started and system uptime is less than 120 seconds, I assume system is just booted and a 60 Second Delay Will Be made. It seem that 60 seconds are not enough.
By the way, the Start Script is already delaying at reboot.
When the Script is being started and system uptime is less than 120 seconds, I assume system is just booted and a 60 Second Delay Will Be made. It seem that 60 seconds are not enough.
- 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: CumulusMX sends 0 degree spike to WU on restart
I may well do that, given the price, but if the internet is not there I have loads of other problems.mcrossley wrote:Add a real time clock (RTC) to your Pi, I'm thinking of adding one to mine given the price.
- 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: CumulusMX sends 0 degree spike to WU on restart
It does get the date right, if it comes back on the same day. That is what made it worse for me, the time was reasonable looking in the logs, but a couple of hours out, which made untangling the archive update of Weather Underground a bit tricky.jank wrote:Isn't it, that also the raspberry Pi has a fake-hwclock programm installed to avoid exactly this Problem?
