[ol]
[li]Make a backup of the ./wudata/ folder[/li]
[li]Unzip attached folder[/li]
[li]Place the _wu_upd.php script in your pwsWD??/ folder[/li]
[li]Move the sorttable.js script to your pwsWD??/js/ folder[/li]
[li]Make a copy of one of your pwsWD??/wudata/xxxxx.arr files to test with[/li]
[li]Run the script pwsWD??/_wu_upd.php in your browser[/li]
[li]Check the pdf before posting your questions.[/li][/ol]
No, data is not at WU. I ârecreatedâ 18 daysâ relevant data for the wugraphs using manual temp and rain measurements, plus WU readings from a near neighbourâs VP, like this:
PWS_ or w34_shared.php was needed for 1 lang function.
I do not like to add all those translations for a script which is not used more then once or twice.
Most non-English speakers will use Google translate as standard.
2. Two typos in line 35 (dashboard, script)
3. "Colomn/s" in line 169 (twice) should be "column/s".
Done, I will replace current version with an updated version in the first post tomorrow.
One very small thing I noticed: I can add data to an empty field; or change the existing data in a field; but I can not delete existing bad data from a field and leave it blank. I keep getting the message âData not updated, please try againâ.
Luckily the one time I wanted to do that it was an average temp so easy enough to calculate. And it will probably never happen again
Yes, I am a programmer by birth. So when a user updates a value, he/she must input a valid value.
Numeric as all values should be. Never even thought about updating a value to ââ
It was a day when I only uploaded 2 hoursâ data to WU, so I had rubbish max/avg/min values. Luckily I have manual temp/rain records, but I can not correct humidity/dew point. . . they are still wrong. But I only use this WU data for the template graphs, and you have saved me so much time: I have been adding a new line to a corrected master IEDINBUR98Y.txt and uploading it every day. 8O
BACKGROUND
Almost all script writers cache the data loaded from external servers, also in my scripts, especially for WU data:
if it is a previous year the data is not reloaded by the script as one can assume WU is âunableâ , or not interested, to update previous years data
if it is this years data the data is reloaded once or twice each day and locally cached by the script
This has worked for years until WU decided to stop supplying .CSV files, and stop supplying history data for longer periods then 7 days.
There are two âMan-In-The-Middleâ scripts written, 1 by Ken True and 1 by me, to solve this problem.
The MITM script loads data using the new API fromWU in small pieces, assembles those pieces to .CSV data and stores the data in cache-files.
In my MITM script in the .arr files.
âYour problem/ questionâ
The reports script will re-load this years data tomorrow first time it is run.
Not asking the data from WU but by asking the MITM script for the data in the old format.
You will then see your updated data as the MITM script uses the .arr files to deliver the .CSV the report scripts understands.
When you updated the .arr file for a previous year you have to delete the .CSV file as the reports do not load old years.
Simply delete the cached yearly file in the cache /wureports/wuData/IWIELKOP26-year-2020.txt forcing the reports-script to request the data from the MITM script.
WARNING:
The .arr files are very costly in terms of WU-accesses. Better not delete an .arr file
Also copy the folder when installing a new dashboard version.
Iâve got to ask before I get too excited and mess up the data Iâve got from WU for the past 4 years⌠Do I understand correctly that this would let me edit the WU data and/or enter missing info/days for the data extracted from WU? This would be great, by the way!
I modified some data from current year and it works but for 2019 there is still no change.
Simply delete the cached yearly file in the cache /wureports/wuData/IWIELKOP26-year-2020.txt forcing the reports-script to request the data from the MITM script.
I deleted this file as well as âŚ2019.txt and both of them were recreated again but on report site I see old version from WU base. Although my corrections in IWIELKOP26-metric-2019.arr were saved (eg. 5/1/2019 where I changed faulty 25.3*C temperature). Have I missed something?
The data for the graphs, in your case that comes from WU
[li]The high-lows for today, yesterday month , year. That is from a separate file.
You can change the values with . . / pwsWDxx/PWS_hist_update.php?pw=12345
Replace 12345 with your easyweather password[/li]