One of my weather stations is located at a remote location and the best internet connection I can get is 2.5mbs DSL. A little better that dial up. I would say about 2 or 3 times a week the connection drops and I have to reboot the modem/router to restore the connection. I can do this remotely over the telephone. I usually don't find out it's down until I receive an email from Weather Underground saying that my sight is down, which is usually 2 hours later. Once I get the connection restored everything is good, well, almost everything. The first time I lost the internet after I started using Meteotemplate I checked my weather data and notice that data logging restarted at the point when the connection was restored. I was hoping it would restart at the point where connection was lost. This could leave some big gaps in data which I guess would have to be filled in manually or file import.
I'm not going to pretend I know anything about programming, because I don't. But couldn't a command or script be written into the program that would detect data input loss and trigger a time stamp? Then, when data is restored pick up logging at the point it was lost. I use weeWX running on a Raspi so it's logging data from the weather station whether there's an internet connection or not. Like I said, I know nothing about programming but it does sound cool. I had to ask if it's possible. Thanks.
Data Logging When Internet Goes Down
- hdultra103
- Observer

- Posts: 15
- Joined: Thu Nov 16, 2017 8:01 pm
- Location: Gig Harbor, Washington
- Station model: Davis Vantage Pro 2 Plus
- Software: Weewx
- Contact:
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Data Logging When Internet Goes Down
Hi,
the problem is that the template is getting real-time updates. And the actual database update is triggered by whichever software you use. So if it is not sending anything, it is not loading the api and once it is restored, it again sends the current conditions.
Solution to this is using the data import function. If you run it eg. once per month and select to skip existing records, it would only fill-in the gaps, the data is only saved in WeeWx, the API always receives just one set of data, with one timestamp and that is saved to the db. The Data import script can do bulk uploads to database
the problem is that the template is getting real-time updates. And the actual database update is triggered by whichever software you use. So if it is not sending anything, it is not loading the api and once it is restored, it again sends the current conditions.
Solution to this is using the data import function. If you run it eg. once per month and select to skip existing records, it would only fill-in the gaps, the data is only saved in WeeWx, the API always receives just one set of data, with one timestamp and that is saved to the db. The Data import script can do bulk uploads to database
- hdultra103
- Observer

- Posts: 15
- Joined: Thu Nov 16, 2017 8:01 pm
- Location: Gig Harbor, Washington
- Station model: Davis Vantage Pro 2 Plus
- Software: Weewx
- Contact:
Re: Data Logging When Internet Goes Down
Thanks for the info Jachym. One other question. I've seen posts about a program that converts data from the weeWX database to a format that can be imported into Meteotemplate. Do you know where I can download it from. I guess it's in testing but I'd like to give it a try. Thanks.
- Luc
- Developer

- Posts: 168
- Joined: Mon Aug 21, 2017 6:40 am
- Location: Paramaribo, Suriname
- Station model: Davis Pro 2 (2x)
- Software: WeeWX
- Contact:
Re: Data Logging When Internet Goes Down
Hi,
Just send an email to ljm.heijst@gmail.com and I'll send you the test program by mail.
Cheers, Luc
Just send an email to ljm.heijst@gmail.com and I'll send you the test program by mail.
Cheers, Luc
- hdultra103
- Observer

- Posts: 15
- Joined: Thu Nov 16, 2017 8:01 pm
- Location: Gig Harbor, Washington
- Station model: Davis Vantage Pro 2 Plus
- Software: Weewx
- Contact:
Re: Data Logging When Internet Goes Down
Thanks Luc. Email is on the way.