External scripts which use WeatherUnderground .CSV data

These Dec 24 to Dec 31 missing days is not normal. Do you had any problems with your WU-API-key in that period?
Default the Dec 31 is not loaded as to much problems in the past. Which is the situation at a dozen or so stations I checked.

See the post of @BEAUJOLAIS how to reload the complete year.
Do not delete the .arr but rename it so you can use the file if reloading fails.
Sometimes reloading a complete year fails if the API-key is already used to much that day.

Wim

Cosmetic question about the standalone version of WSReports.
Is it maybe possible to invert the color range for the rain and humidity levels, this seems a bit more logical to me.
So with a lot of rain a dark blue block, with no rain a red/orange block.
The same applies to humidity, so with a high percentage a dark blue block, with less a red/orange block.

Greetings,
Arie


I do not know. I could ask the development team in India.
They ask a non-refundable “quotation” fee of 500 us$ for every request.

If you think that that is acceptable, I will PM you the details. :smiley:

Wim

My “Reports at WU” also lacks data for December 31, 2020.

I saw that this data is found in “History at WU” and I got the idea to read the numbers there and write them into “_wu_upd.php”.

But in “_wu_upd.php” the data for December 31, 2020. are also found. They just do not appear in “Reports at WU”.

Mogens

Yes, most of the recent scripts use the new format as stored in the .arr files created by the MITM script.
The “very” old scripts still store their own cache as they are not aware of the MITM scripts.

Just rename the current https://inaogmogens.dk/wureports/wuData/IDKFREDE2-year-2020.txt file.
The 2020 file will be recreated from the correct .arr

Normally the “problems questions” of a new release are gone in 3 months. For the latest 2012-lts version that will be March.
I will then take a fresh look on all WU scripts and remove all double caching.

Wim

I renamed the file and a new one is created.
But the new file also lacks data for Dec. 31. 2020


Probably the .arr is incomplete then also.
Then it will be for later, in March as said before.
Need to have enough time + a stable release to dig in those different scripts.

Wim

Thanks for being aware of that :smiley:

I run w34_graph_xx.php WXDailyHistory.php in my browser on the first day of the year to produce a complete IEDINBUR98Y.txt csv file for the year just ended, which I rename, e.g., IEDINBUR98Y20.txt and use for my old-fashioned version 1907 WU graphs for past years. (This also means that the .arr file is complete, I think.)

Thus I was able to copy data for 31 December 2020 from that file to IEDINBUR98-year-2020.txt

I think this has solved my problem.

EDIT: got the script name wrong first time - apologies.

Delete / rename both
https://inaogmogens.dk/wureports/wuData/IDKFREDE2-year-2020.txt
https://inaogmogens.dk/weather/wudata/2020/IDKFREDE2-year-2020.txt

The .arr file is correct https://inaogmogens.dk/weather/PWS_listfile.php?file=wudata/IDKFREDE2-metric-2020.arr&type=arr
So the .txt should be recreated.

Wim

Super :smiley:
it managed!
Thank you very much

I don’t know if this helps or is even connected with your problem, but I have been experiencing intermittent missing data problems with ‘History at WU’ over the last week or so, and after having a poke around I found that my WU API key expired towards the end of December 2020.

I regenerated the API key (which now expires in November) and normal service seems to be resumed, and missing data filled in :smiley:

I didn’t realise the key expred!! :oops:

I’m trying to get this to work on my site but I must be doing something wrong.

My site is here: Lower Sheering Home Weather Station (wu version)

Ive read through this thread and thought I was doing it right but I cant seem to get to the frame=Reports_at_WU etc page stage

I can load this fine: https://pws.lowersheering.com/wuhistory/startWUhistory.php

But I can not get further eg show the colours for temps etc… and I do not know if I have installed at the correct directory, is /wuhistory/ correct? (I noticed it said NOT to install in the /pwsWD directory so installed there instead. Could that be a problem?)

I assumed the URL would either be Lower Sheering Reports at WU or https://pws.lowersheering.com/index.php?frame=Reports_at_WU

But neither of those load for me & I have got stuck

Thanks

So that History script is installed correctly in folder wuhistory/

. . . But I can not get further eg show the colours for temps etc..
That [b]reports[/b] script needs to be installed also. It should go into pws.lowersheering.com/[b]wureports[/b]/
I assumed the URL would either be https://pws.lowersheering.com/pwsWD/index.php?frame=Reports_at_WU or https://pws.lowersheering.com/index.php?frame=Reports_at_WU
You do not have to manually add the URL's You have top change _my_settings/frames.php. Line 28-30 read now
# this one is optionally  used if you installed wu history and reports
$show   = true;    
$show   = false; // add the # on position 1 if you want these wu scripts

Line 30 should be set to comment by adding a # on the first position.

# $show   = false; // add the # on position 1 if you want these wu scripts

Then the pwsWD/index.php?frame=History_at_WU link from the menu will work for the history
and the pwsWD/index.php?frame=Reports_at_WU link will work for the coloured table.

Do not forget to first change in the settings
=> Tab other
==> Display Extra links in Menu
See attached screenshot.

Wim


Thanks Wim that worked perfectly!

You’re a star!

:star:

Hello WIM,

The number of rainy days remains at 31 only the colors show the number of rainy days I cannot find the problem in the file: wsReportsSum.php
I appeal to your help because my programming knowledge is very limited

Thanks in advance

Cordially

http://fleurie-meteolive.fr/ECOWITT/index.php?frame=Reports_at_WU


Related question: would it be possible to show the number of raindays as integers?

There seems to be a mixup with old and new and or stand-alone versions.
Your https://fleurie-meteolive.fr/ECOWITT/wureports/startReports.php?sce=view shows at line 13-15

$SITE['wuStart']        = '30-04-2021';	  // Important the format is:   dd-mm-YYYY  for your first day of uploading data to WU.      !
$SITE['wuID']	        = 'IFLEUR35'; 	  // your WU station name
$WUdatastr              = 'http://fleurie-meteolive.fr/ECOWITT/PWS_DailyHistory.php';

while other users show the correct lines

$wustart 	= '01-08-2017';	  // Important the format is:   dd-mm-YYYY  for your first day of uploading data to WU.      !
$wuid		= 'IEDINBUR98';	// your WU station name
$WUdatastr      = 'https://swanston.maui.co.uk/pws/WXDailyHistory.php';

That is why you have errors in the first place:

Warning: Undefined variable $wustart in /htdocs/ECOWITT/wureports/startReports.php on line 15

Warning: Undefined variable $wuid in /htdocs/ECOWITT/wureports/startReports.php on line 98

Wim

I have no idea, need to look into that if things calm down here.

$wustart 	= '01-08-2021';	  // Important the format is:   dd-mm-YYYY  for your first day of uploading data to WU.      !
$wuid		= 'IFLEUR35';	// your WU station name
$WUdatastr      = 'https://swanston.maui.co.uk/pws/WXDailyHistory.php';

Good evening WIM,

I corrected the three lines and there is no more error message
On the other hand, the number of rainy days remains at 31

Could you send me back the last script cause I must have mixed versions

Thank you again for your help which solves many concerns

http://fleurie-meteolive.fr/ECOWITT/index.php?frame=Reports_at_WU

Cordially