HWS-template (WD34) beta test topic

Hi
beta version 1-3-19 gives error in MS edge as
Notice: Undefined offset: 1 in /pwsWDTEST/metar_popup.php on line 203
Notice: Undefined offset: 1 in /pwsWDTest/metar_popup.php on line 205

CheckWX appear to be moving the goal post again re there data output file changing

@ALL
The format of the JSON file from the METAR provider has changed again.
Sorry, this should not have been visible for the production version. Still it is.
For the beta version all errors are displayed by default.

As I am “off the grid” for at least 3 weeks after tomorrow I have very little time left to find a solution.

FOR NOW: Start easyweather and select nearly at the bottom at the question
“Where do we get our current conditions from?” => “Use Darksky for current conditions (needs API key).”
That way your main window will not load the METAR scripts.
And do not use the “nearby” pop-up for now until i have had a chance to find out why they removed the airport name and others from the .JSON

Wim

METAR CHANGES for pwsTEST

As other users already discovered, the layout changed again.

[ol]
[li]The airport-name is not available anymore / for now??.[/li]
[li]The date/time field layout changed from:
old: 01-03-2019 @ 07:20Z"
new: 2019-03-05T05:55:00.000Z[/li][/ol]

I attach a zip with the two changed scripts for the pwsTEST users.
First make a copy of the two scripts you are going to replace.
These two scripts are only tested with the latest (a few day old) beta release.

The updates for the pwsWD version is posted in the other topic.

Wim


pwsTEST.zip (9.8 KB)

Wim,
Working fine for my pwsTEST1.
Also worked on my nonbeta pws.
Tom

Hi
Total hours between total darkness to total daylight are over 24 hours in sun moon & space block.
Should it be 24 hours total.

Torjan


total darknes.JPG

Probably not quite exactly 24 hrs; but I do notice that the “total darkness” figures in the main Sun block are very different to those in the “Moon info” popup? (At the beta test sites and in production version here.)

This difference seemed to be an error. I will check when I am back home.

The total can only 24:00 hours when it is 24 hours dark or 24 hours daylight. Otherwise the darkness periode starts in one day and ends in another.

Wim

I question whether you really need the hours of darkness. If you show the length of day(light) the darkness is implied.

Only approximately unless, as Wim says, you have 24 hours’ day or night.

Are we confusing sunrise/sunset with civil, nautical or astronomical dawn/dusk somewhere? Original Sun block or pop-up showed times of civil dawn/dusk (elevation -6

Agreed, but what value does “hours of darkness” have?

None at all. . . except to enable the pretty graphic. :slight_smile:

Moon set getting a little confusing. . . in production here and Gelderland beta.


prodmoon.png

betamoon.png

Cloud cover in Gelderland beta Current Conditions is always in Dutch, whatever the selected language.


betaclouds.PNG

The Current Conditions block uses the 1 hour forecast from DarkSky.
That forecast is not reloaded in every language.
I will check when I have normal access again.

Wim

I see what you mean: it happens here in production, too. If I select Dutch the DS cloud cover line remains in English.

Sorry.

and

Reply #52: Moon set [times] getting a little confusing. . . in production here and Gelderland beta.

Any thoughts yet, Wim?

Beta is working great for me. One issue I have. Time is displayed in 24hr format despite being set for 12hr format.

Thanks for the great work Wim.

That is a good catch! Never considered that one.
But it is a bit more difficult one to solve at once. Needs some testing. And probably there should be a comma between the day and year also?
Tue Apr 2, 2019
06:22 PM

Need to postpone to the next beta and will be included officially in the July release.
Please add all other wishes for extensions you may have to this topic: *** closed*** HWS Template (WD34) Wish List

Wim

Didn’t need a comma in the previous version. . . why the change?


clock.png

The comma seems to be needed for the US version of the date
See here:

Month Day, Year
April 25, 2019

In the rest of the world it seems to be
Day Month Year
25 April 2019

Wim