Hello. Is there any script for raspberry pi, which is monitoring if cumulus is working correctly. Many times i get lost signal to weather station or cumulusMX doesn't get data for some other reason. Most often I must restart RPI to get it working back. So if i do not check my website time to time i lost many data, so an email notification when no data from station would be fine.
Now i am curious how are you dealing with this problem? Target files are realtime.txt and CUtags.php.
Thanks.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Email notification when no update
Moderator: mcrossley
-
- Posts: 274
- Joined: Tue 28 May 2013 1:06 am
- Weather Station: Davis VP2 Plus
- Operating System: Raspian Buster (RPi 3b)
- Location: Tulsa, OK
Re: Email notification when no update
The title of the post is for something else (although for you it might also be helpful) but further into the thread I discuss how to handle this. Make sure you read the whole thread before you invest in working it though. Some valuable evolution to the method used for this happens during it.
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=15574
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=15574
-
- 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: Email notification when no update
Instead of just getting an email, this should automatically restore the Pi even if you're not there!
Try the following - just make your Raspberry Pi reboot each day, or amend to make it reboot every few hours depending on what is needed. You should investigate and fix whatever is making it crash though.
To make Cumulus run each time the Pi is rebooted (and force reboot in the early hours each day)
On the Pi, type:
On first run select the text editor you prefer (defaults to #2, nano)
Then add the following lines at the end of the file:
If you want to access the Pi without Cumulus running, simply log in, then sudo crontab –e, then add # before @reboot so that that line is ignored ‘commented out’. Then sudo reboot. Remove the # again for normal operation.
Try the following - just make your Raspberry Pi reboot each day, or amend to make it reboot every few hours depending on what is needed. You should investigate and fix whatever is making it crash though.
To make Cumulus run each time the Pi is rebooted (and force reboot in the early hours each day)
On the Pi, type:
Code: Select all
sudo crontab -e
Then add the following lines at the end of the file:
Code: Select all
# Start Cumulus as background task 30s after reboot (delay to allow WiFi to startup)
@reboot (sleep 30;cd /home/pi/CumulusMX;sudo mono CumulusMX.exe) &
# Reboot each day at 0253
53 02 * * * sudo reboot