Question about the temp popup. When the cron job resets at midnight, I thought the X-axis would start from 0:00, not going back to the previous day’s temps. Is there a setting to change this? I’m also getting dewpoint spikes that are not actually happening according to my Davis.
There should be two midnight cron-jobs 1 before and 1 after midnight.
The second one purges the SQL-table and writes a new header to the .csv file.
When I now check your files, they are empty, => chartsmysql/result.csv only has the header line with the fields names.
The graphs are therefor empty also.
Wim
The second job should clear the table and clear the daily .csv
The daily file ./chartsmysql/result.csv
Has one line only , with the headers
Filetime (UTC): 2019-02-01T23:00:32+00:00 which an age of 15 hrs 46 min 02 seconds
It was purged exactly midnight Norway time. Your question about old data is answered, that data will be correctly removed at midnight
Now to find out why no data is added during the day, use the test program . . . /_test.php?test=w34_cron_stationcron.php “et voila”
Fatal error: Uncaught Error: Call to undefined function curl_init() in /home/weather/public_html/w34_load_files.php:201
Same reason as for another problem, no CURL. The main task of cronjob is to load the data before it is needed. The script fails so it can not do the other tasks. You could set WDapi to do the task.
I would expect that the last hour would be the previous 59 minutes from the current time. My screen grabs were from 1900 hrs (not close to midnight), and the value shown in w34 was 0.95" out of the total days rain amount of 0.96". My vote is if the value is going to be shown then it should be correct, otherwise remove it.
I think the WD console is able to correctly compute the last hour rain but for some reason Brian never added it to the clientraw file. I would disagree that it isn’t an important weather detail to display…
I just noticed that w34 was correctly showing last hour rain amount until there was no rain last hour. It has been over an hour since the last rain tip and now w34 is now showing todays total rain amount for last hour rain amount.
The value which is shown comes from the WDapi (which uses metric units). You can inspect all values at . . . /pwsWD/w34_module_test.php click on “Show WDapi values”
That question you should ask in another topic or even another forum.
With a question like: “How to store all data from WeatherDisplay in a SQL database”
Probably the answer is to be found on the MeteoTemplate website: Meteotemplate - free weather website template
That template already uses another API from WD to upload all data and stores is in an SQL database.
Still having issues with the popups. The csv files are getting populated, but the cron job does not appear to be erasing the data from the day before. https://www.weather911.net/pwsWD/
Also, getting spikes of data at 00:00 every day. Thanks.