Stations data not updating
Stations data not updating
After station's pc shut down or because of power outage, and while the station is working, data does not retrieved by template when I restart pc... The graphs has a straight line from the moment of shut down until the restart.. Then, with the Data Import from Control Panel-Database, updates all the missing data.. Am I missing something?
-
- Forecaster
- Posts: 164
- Joined: Thu Aug 02, 2018 11:40 am
- Station model: Davis Vantage Pro2
- Software: Meteobridge
Re: Stations data not updating
As far as I know no.
Did this happen once (only after blackout) or is this continous?
For an Update usually a cronjob (in Windows task scheduler) is used to call the API.php, which updates the database.
Is this job may be gone?
Regards
Did this happen once (only after blackout) or is this continous?
For an Update usually a cronjob (in Windows task scheduler) is used to call the API.php, which updates the database.
Is this job may be gone?
Regards
Re: Stations data not updating
Thank you for your answer. This happen every time that no data was send to template for any reason (pc shut down, power outage etc)
Also in my other site with Cumulus template https://corsair.gr/cumx/ all updates automatically when data was send. Cronjob is used for the standard site update, by cron-jo.org, if you mean that.
See the screenshot of a graph that has a straight line because no data
Best regards
Also in my other site with Cumulus template https://corsair.gr/cumx/ all updates automatically when data was send. Cronjob is used for the standard site update, by cron-jo.org, if you mean that.
See the screenshot of a graph that has a straight line because no data
Best regards
- Attachments
-
- Screenshot 2024-10-09 114700.jpg (53.41 KiB) Viewed 81 times
-
- Forecaster
- Posts: 164
- Joined: Thu Aug 02, 2018 11:40 am
- Station model: Davis Vantage Pro2
- Software: Meteobridge
Re: Stations data not updating
Yes, I see.
But if the cron job is starting I have no other explanation. May be with DDNS?
As said, in my case I have a Meteobridge which provides the data to Meteotemplate.
Also I have a test site (a virtual Linux host) which runs a cron job that picks the meteotemplateLive.txt from the real site and runs the API.php for updating the database.
The local crontab at the VM looks like:
The get_meteo script copys the meteotemplateLive.txt file to local VM and in 2nd line the update for DB is triggered.
mt19 is the name of the local VM.
So if for any reason the API.php call can not run, the database will not be updated.
So check this twice if an update is successfull after an outage.
Regards
Edit: I forgot that there are other options than API. So which option do you use?
But if the cron job is starting I have no other explanation. May be with DDNS?
As said, in my case I have a Meteobridge which provides the data to Meteotemplate.
Also I have a test site (a virtual Linux host) which runs a cron job that picks the meteotemplateLive.txt from the real site and runs the API.php for updating the database.
The local crontab at the VM looks like:
Code: Select all
* * * * * /root/get_meteo.sh
* * * * * curl https://mt19/meteo/api.php?PASSWORD=updatevm
mt19 is the name of the local VM.
So if for any reason the API.php call can not run, the database will not be updated.
So check this twice if an update is successfull after an outage.
Regards
Edit: I forgot that there are other options than API. So which option do you use?
Re: Stations data not updating
Sorry for the delayed answer, but with all that solar activity, I let aside my problem for a while...
So, no, I don't use API for updates, because of Cumulus restrictions. The updates performed, as I mention in my previous message, by cron-job.org, as per instructions.
If you have any other idea, I'll be glad to hear it!
Anyway, thank you very much for your time. I'll keep update manual, whenever needed.
There isn't so often the need anyway!!
So, no, I don't use API for updates, because of Cumulus restrictions. The updates performed, as I mention in my previous message, by cron-job.org, as per instructions.
If you have any other idea, I'll be glad to hear it!
Anyway, thank you very much for your time. I'll keep update manual, whenever needed.
There isn't so often the need anyway!!
-
- Forecaster
- Posts: 164
- Joined: Thu Aug 02, 2018 11:40 am
- Station model: Davis Vantage Pro2
- Software: Meteobridge
Re: Stations data not updating
No, not really.
A cron job is nothing else then running a script by an scheduler.
An desperate approach:
Is it my be possible to add this job at PCs autorun file?
As far as I understood it only needs to be run once when PC is booting after shutdown/blackout.
So if it would be possible to run the "initial" update command automatically the subsequent updates from cron-job.org are running.
And isnt there any chance to run the updates from PC at all?
In case of Windows there is a task scheduler which is able to do that.
But I confess, I dont know the commands which your Cumulus requires, in case of "curl" this is also available for Windows.
Regards
A cron job is nothing else then running a script by an scheduler.
An desperate approach:
Is it my be possible to add this job at PCs autorun file?
As far as I understood it only needs to be run once when PC is booting after shutdown/blackout.
So if it would be possible to run the "initial" update command automatically the subsequent updates from cron-job.org are running.
And isnt there any chance to run the updates from PC at all?
In case of Windows there is a task scheduler which is able to do that.
But I confess, I dont know the commands which your Cumulus requires, in case of "curl" this is also available for Windows.
Regards
Re: Stations data not updating
Thank you very much for your help! I will see and if the "problem" become more persistent , I will try your way..
Best regards
Best regards