Sorry I have another question, this maybe a bug or a lack of understanding on my part. Currently I have an AQI reading on my site of 99 - this is based on the nearest AQ station (for me it’s Footscray, Australia). If I go to the link for this station the AQI is actually 35 - see link below.
I have then checked the output for my AQI in the module_test page, I can see the reference of an AQI of 35, but nothing for 99. How is the 99 generated? Maybe I am wrong, but I assumed my site should be showing the same AQI as the source, which is 35.
There is an update on-line with all changed scripts: http://wd34.weather-template.com/
The moon-block.php and two new supporting scripts in the other/ folder could take care of it.
Wim
To check what is happening, the URL to the pwsWD/ folder is essential. At home I can inspect and find it in the HTML. When traveling with an iPad no way. So this embedded / I Frame??? script will have to wait till tomorrow, sorry
Wim
There were only minor changes to this script for checking if the file exists and has a minimal length a.s.o.
Your file seems not to be in ./demodata/ as that one is from 2018-12, so I can not check the length of your file
The message you have occurs when: the file-location is not set or the file is less then 10 characters length. Be aware that an URL to the file will not work on some webservers as the returned file-length is then incorrect.
[s]
The demo site display correct data, when it loads the file from the ./demodata/NSRealtime.txt file
I moved the file to the jsondata/ folder => works OK
And renamed the demodata one to be sure => works OK
When I make a typing error in the file location in easyweather I get your message.
So please check the typing. Otherwise PM me the easyweather password so I can check.[/s]
The setting used a full URL “http://adaddad.xx/nxdata.txt”
That should not be done as the checks for incomplete uploads fail in that case.
Always use relative address “…/nxdata.txt” when the file is in the root.
No problem! (Reminds me a bit of the old version I am still running that had a fine tune setting for moonrise/set in easyweathersetup, presumably to allow for daylight saving time!)
In the meantime I’ve temporarily added an hour offset in moon_popup.php so that moon block and moon popup rise/set agree. . . I’ll keep an eye on it.