***closed*** weather34 for WeatherDisplay (clientraw and WDapi)

Thank you, added future code for test and did not remove all before release :oops: A new version is attached.

One can check the files itself by using this script: https://micklehamweather.com/pwsWD/w34_module_test.php
Just use list contents and select “./jsondata/gov_aqi.txt” it shows all data (also in json).
Wim


gov_aqi_block.php.zip (3.1 KB)

Thanks Wim - it

[quote author=Cheffy link=topic=67468.msg542463#msg542463 date=1547890244]
Thanks Wim - it


gov_aqi_popup.php.zip (6.91 KB)

Moon rise and set appear to be shown an hour late: moon set in Edinburgh this morning was 0645, next moon rise is 1425.


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

Wim Thanks

http://southwestweather.com/w34wd/index.php

BTrip

Thanks also, please install the updates scripts from http://wd34.weather-template.com/
=> Updated scripts up to 2019-01-19 link http://wd34.weather-template.com/pwsWDupdate_2019-01-19.zip
Sorry, this is a first new version of the 2017 release and it needed people to test all those scripts in the last two weeks.

Wim

Wim
Thanks again updates installed.
http://southwestweather.com/w34wd/index.php

BTrip

First clock I see not moving from left to right and back. =D> :thumbright:
Did you use another type of font for that?

That really looks good, great job Wim =D>

Yes any monotype font will do.

font-family: "Lucida Console", Monaco, monospace;

On request of a user as it was indeed irritating using a normal font, Wim

Great stuff, Wim! Special thanks for the clock. . . but Moon info pop-up rise/set still not right. See moon2 from http://swanston.maui.co.uk/pws/

P.S. _list.pdf has a few |2018-01-19| dates - should these be |2019-01-19|?


Hi Wim,

I got a “NO Boltek file found”.
https://www.weerstation-assen.nl/actueel-weer2.php
The Boltek file is there.

Thanks!

Brgds,
Oebel

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

The moon block is now OK. The pop-up was not touched yet, it is not on the list either. Need more time for that one.

Wim

Hi Wim,

Here is the url: https://www.weerstation-assen.nl/pwsWD/index.php
It worked all the time, before I did this update from this template yesterday.

Brgds,
Oebel

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.

Wim

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.

Looking forward to the eclipse tonight. . .


moon3.JPG

Is there anyway to add snowfall?
Some of use lucky or unlucky peoples get the white stuff.

If WeatherDisplay supports it and it is the clientraw, OK
But otherwise, how would the a script on the webserver know that there is snow at your place?
Wim