A “sneak preview”, still working on it.
A history script only using ones own data.
Script one:
All yearly data from WU is loaded from WU and stored in a folder on the webserver
All yearly files (mostly the 2019 one) are checked for missing lines which are retrieved using the WU-API-
The updated yearly files are read to find the high-lows for this month, this year and all-time
All this history will have the same units as the weather-program uses
The data for temp, rain, humidity, dewpoint, pressure, wind, gust coming from WU are stored in 1 file chartsmydata/history.txt
The station-cron job updates the history.txt and will also add UV and solar if the station uses those sensors.
The addtoyear-cron will move todays values to yesterdays values
The empty-cron will clear the month values (every 1st day of a month) and the year values (every Jan 1st).
It should also save 3 monthly backups and 3 yearly backups.
ToDo
Live-data script should use the history table for missing fields with some weather-programs
Write a script to update the history when f.i. there are errors in the WU data.
Looks good, Wim, but I’m also interested in the rain radar pop-up I’ve just noticed on your clientraw demo site. . . When is that going to be available?
(Doh!) I have just noticed a little more information in the October requests post… Please ignore the following if you wish however it would be good for more detail on the setup. I suspect the NexstormNG software maybe the route to take…I am quite happy to be a tester if needed…
Another question please. I have just re-installed my Stormtracker PCI system and it is now running. I see that we can use the output on the template. I have searched but cannot find where to find or generate the NSRealtime.txt file. I have the old version of nexstorm (v1.9) running. Would it be better if I have the new NexstormNG software instead. Will this give better and more meaningful data?
Just love the template, is there a way to send a few “beer” tokens to thank you for your efforts?
In my chart for wind today and wind month:
Since August 26, winds and gusts have been swapped.
The ./chartsmydata/today.txt file also appears to have swapped values.
Thanks for finding this error, which occurs only for stations who get their data from WU.
And use their website to store the graphs data, as you are doing from August 26.
Attached an updated script
Documentation (mostly current for beta also) at https://pwsdashboard.com/ includes now the beta download link
=> http://pwsdashboard.com/hws_download2019.php?id=betatest
The download will start immediately and the zip can be found in your download folder.
Unzip and upload the pws??/ folder to your webserver.
DO NOT upload the scripts to your current pwsWD/ folder
The index.php will detect that setup need to run first. Password for easy-weather setup is 12345.
Or copy the w34_settings1.php from your current pws folder first
Extra weather-program supported: WeatherFlow (WF) in native mode
The WF users who upload to WU could already use the WU version.
But that WU version is not yet using the all-new history file for missing data.
I am testing that feature with the WF version first.
IMPORTANT
To fill the history table you need to use all three cron-jobs.
Current dashboard version only uses two
w34_cron_stationcron.php => every 5 minutes
w34_cron_addtoyear.php => every day at 23:55
but you need also
w34_cron_empty.php => every day at 00:10
There will small missing / errors in the documentation as I changed a lot of scripts in this third version.
I will finish latest updates this week and then update all documentation.
no particular problems for the template installation
may need to review .css for layout modulesadjusted and updated blocks version
for charts and storage of historical data : if not bother to copy the “chartsmydata” folder to fill the table …?
Best Regards
fto
Same with me, temps in Celsius and barometer is not correct not showing inHg. Also in the advice block it says Dew Point is below freezing and in Celsius, but says it is F