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

The previous post recommends: “You set the link to “…/webcam/image.jpg” which is 100% correct”
This is what I have done by specifying …/webcam/aad-axis-01.jpg , but on an “X weathercam” is shown in rectangle for Live Web Cam

ls -l webcam
total 156
-rw------- 1 weather weather 158374 Jan 17 09:26 aad-axis-01.jpg


After posting the previous message I discovered my error: owner user and group was incorrect.
Now it is working

It’s working now. Thank you

Hi Wim,

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.

The link to my site is,

https://micklehamweather.com/pwsWD/

Thanks,
Neil


Capture AQ 2.PNG

Capture AQ.PNG

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