Page 1 of 1
When MB Loses Live Data **solved**
Posted: Sat May 21, 2016 3:37 pm
by virus86
I have a D-LINK DIR-505 REV. A1 running the latest MB software (v2.8, May 18 2016, build 9903, FW 1.3). It is connected to an ObserverIP with the latest 3.0.8 firmware. I have seen on a few occasions where the ObserverIP is sending data to wunderground, but MB stops sending data to PWS. They lost connection to each other for a few hours. Is it possible to get an email alert from MB if no data is received for a certain amount of time or have MB automatically reboot? Thank you.
Example of this day between 4:30PM and 8:30PM.
http://www.pwsweather.com/archivewx.php ... d=20160520
https://www.wunderground.com/personal-w ... 520/mdaily
Re: When MB Loses Live Data
Posted: Fri May 27, 2016 1:09 pm
by admin
You can use age of sensor data to trigger a script.
Re: When MB Loses Live Data
Posted: Fri May 27, 2016 10:53 pm
by virus86
I would like to connect my ObserverIP directly to the DLink since I can power it via USB and possibly send data via the DLink LAN port.
I tried this setup, but it seems like the DLink LAN port is inactive. The ObserverIP doesnt reboot when MB is set to reboot. Is there a line of code to cycle the USB port?
Re: When MB Loses Live Data
Posted: Tue Jun 07, 2016 11:57 pm
by admin
I don't know how to power/depower the USB port of the DIR-505.
May be some GPIO pins can do. Reading in the openwrt forum
about the DIR-505 might give some insight on this.
Re: When MB Loses Live Data
Posted: Thu Jun 09, 2016 5:50 am
by virus86
I bought a GE smart outlet and connect it to my Samsung SmartThings hub. I used IFTTT to make it switch off when it receives an email from Meteobridge to
trigger@recipe.ifttt.com. I used another IFTTT recipe to switch the outlet back on if it detects that its off. Its a good setup until a future Meteobridge update where it can power cycle the usb port or the whole unit.
Re: When MB Loses Live Data
Posted: Thu Jun 30, 2016 2:51 am
by mburt
admin wrote:You can use age of sensor data to trigger a script.
I've been having loss of live data from the Davis console problems again. I am new to scripts and read the experts corner/templates page but, unfortunately, I'm no expert. Would someone have an example of that script to trigger an email? I did get the smtp correctly set up and working, so this is the last piece.
As a side note, removing console power including batteries does not fix the data loss from the usb logger, only cycling power to the MB does. I can access the MB weather stations selection page and see there is a red X next to my Davis weather station via usb prior to cycling power.
Thanks!
Re: When MB Loses Live Data **solved**
Posted: Thu Jun 30, 2016 3:34 am
by virus86
I use these:
Email, one time alarm
Raise: [mbsystem-lastgooddata] > 1200 || [mbsystem-lastgooddata] == -1
Clear: [mbsystem-lastgooddata] < 600 && [mbsystem-lastgooddata] != -1
"mbsystem" is whatever is linked to your meteobridge and "lastgooddata" is seconds since last set of meaningful data
So itll send the email whenever the last good data is 20 minutes old (1200) or no good data seen (-1)
And clear out if the last good data is less than 10 minutes old (600) and that it has good data( != -1)
You can set the seconds to whatever you want, but the values Ive used has been good for me.
Re: When MB Loses Live Data **solved**
Posted: Thu Jun 30, 2016 4:59 am
by mburt
virus86 wrote:I use these:
Email, one time alarm
Raise: [mbsystem-lastgooddata] > 1200 || [mbsystem-lastgooddata] == -1
Clear: [mbsystem-lastgooddata] < 600 && [mbsystem-lastgooddata] != -1
"mbsystem" is whatever is linked to your meteobridge and "lastgooddata" is seconds since last set of meaningful data
So itll send the email whenever the last good data is 20 minutes old (1200) or no good data seen (-1)
And clear out if the last good data is less than 10 minutes old (600) and that it has good data( != -1)
You can set the seconds to whatever you want, but the values Ive used has been good for me.
Thank you very much!
Re: When MB Loses Live Data
Posted: Sat Dec 03, 2016 6:59 pm
by mburt
mburt wrote:admin wrote:You can use age of sensor data to trigger a script.
I've been having loss of live data from the Davis console problems again. I am new to scripts and read the experts corner/templates page but, unfortunately, I'm no expert. Would someone have an example of that script to trigger an email? I did get the smtp correctly set up and working, so this is the last piece.
As a side note, removing console power including batteries does not fix the data loss from the usb logger, only cycling power to the MB does. I can access the MB weather stations selection page and see there is a red X next to my Davis weather station via usb prior to cycling power.
Thanks!
So, after setting up email scripts and using a Wemo switch to reboot the TP-Link Meteobridge when it locks up (which has been at least twice a month for the past two years) I think I found the problem. The original hub I bought (Belkin F5U407) based on recommendations when I originally set this up, appears to be the culprit. On a whim I purchased a Sabrent HB-UMLS on Amazon for $6.50, swapped it out and the Meteobridge has been rock solid for the last 3 weeks. Not sure what exactly could be wrong with the Belkin hub, but I'll check this box and keep my fingers crossed.
Cheers