Second beta version April release ready for download.
Read more at and download from http://wd34.weather-template.com/beta.php
Do not update the beta releases, just remove old folder and test the new one from scratch, thanks
Wim
Second beta version April release ready for download.
Read more at and download from http://wd34.weather-template.com/beta.php
Do not update the beta releases, just remove old folder and test the new one from scratch, thanks
Wim
I just installed the second beta.
I came across this error in forecastWXSIMdaily_popup.php
https://weatheryyc.com/pwsTEST
Thanks, I do not have any test-files with low temperatures.
Can you give me the link to your plaintext.txt so I can copy a few to test with?
Attached an updated script,
Wim
forecastWXSIMdaily_popup.php.zip (4.07 KB)
The new script seems to work
Thanks Wim, it works.
Also installed the second beta and everything works.
Wim, one question and one comment - for the latest released beat version of the templates.
The question: Why is there a white ‘X’ on the left site of the web cam image - that would be the at line 41 of the ‘webcam_popup.php’ script.
The comment: If I try to run the ‘webcam_popup.php’ without a link to the web cam, the ‘uninitialized’ variable ‘$webcam_img’ at line 3 will produce ‘Undefined variable…’ notice. May I suggest to prevent such notice that the 'include ‘w34_settings.php’ at line 25 be moved before line 3.
Just trying to make the code of the templates as error free as possible … even when those errors are/might be hidden behind another screen or image…
Oh, another comment: Why can some pop-up screens be close by just clicking outside those pop-up screens whereas some newer pop-up screens need to be clicked on the ’ X Close’ on the top left corner. Should there not be a consistency/sameness/uniformity on how the pop-up screens are closed! :?
The large X (and the word "close’) are added bacause a few commented that there should always be a “X close” type message.
I thought that everybody knew that clicking outside a pop-up would remove it, but . . .
The comment: If I try to run the ‘webcam_popup.php’ without a link to the web cam, the ‘uninitialized’ variable ‘$webcam_img’ at line 3 will produce ‘Undefined variable…’ notice. May I suggest to prevent such notice that the ‘include ‘w34_settings.php’ at line 25 be moved before line 3.I changed that already, please try this version.
Just trying to make the code of the templates as error free as possible … even when those errors are/might be hidden behind another screen or image…All pop-ups can always be closed by clicking outside the pop-up. No code change there.
Oh, another comment: Why can some pop-up screens be close by just clicking outside those pop-up screens whereas some newer pop-up screens need to be clicked on the ’ X Close’ on the top left corner. Should there not be a consistency/sameness/uniformity on how the pop-up screens are closed! :?
@all always check the latest version on http://wd34.weather-template.com/pwsTEST/
You can also check the source of (nearly) any script by adding ?sce=view
http://wd34.weather-template.com/pwsTEST/webcam_popup.php?sce=view
webcam_popup.php.zip (1.76 KB)
Current conditions says “Mostly Cloudy” but icon shows rain
I have been running the beta for two days now.
The WxSim forecast works on the 5 and 11 AM forecasts but hasn’t worked on the 5 PM forecast. I get the message ‘wxsim file not ready’. When I use the wxsimPP/_test.php I do get the WxSim forecast.
Also it doesn’t show the graphs using the database (it does in the non-beta version). It will graph using WU.
Can be seen here: https://www.shermanctweather.org/pwsTEST/
Tom
#-o The converted plaintext.txt /jsondata/wxsimpp_en.arr has only 7 day-parts is that correct or is the file incomplete?
The scripts check if there are at least 8 dayparts.
If your files have only 7day- in the same wayparts, change line 39 in forecastWXSIMblock.php to
if (!isset ($arr_pp) || count ($arr_pp) < 6 ) {echo ‘wxsim file not ready’; return;}
The pop-ups should also be changed, but that is for tomorrow as i live in CET
Wim
I could not reproduce as when i checked the text and icon are the same.
I will check daytime tomorrow as it is 00:40 CET here.
wim
Wim,
Changing that line fixed the WxSim forecast.
Tom
Maybe this is just one time strange glitch. I will watch it to see if it happens again
Added the “new” WeatherUnderground forecast to be included in the upcoming release. http://wd34.weather-template.com/pwsTEST/
The new API-keys are not yet available (only a few developers got one) until all problems are ironed out in the “how to obtain your key” process. As soon as one has got the e-mail and generated a NEW WU-api-key, sent me a PM for the download.
Based on the mails from WU it will be early next week until a new beta will be available to all.
Small problems with the WU data:
[ol][li]Missing description of some fields, f.i. iconCodeExtend[/li]
[li]The 3 temperature fields: temperature temperatureHeatIndex temperatureWindChill seems to be unrelated to each other, example for a night and the following day in Celsius :
temp 0 heat 7 chill -1
temp 13 heat 12 chill -1[/li]
[/ol]
Need to study the documentation if the explanation is hidden somewhere.
With the API-key one can also download 7 days of history, in JSON format. Could be used for the graphs also, but seems to have no advantages yet compared to the .CSV downloads from WU.
Wim
The METAR-data layout changed, the humidity field is now an array.
Attached new version ONLY for the beta test pwsTEST, not to be used for the normal pwsWD version.
Wim
metar_load_funct.php.zip (3.66 KB)
I generated a [color=blue]XREF ( Cross Reference list )[/color] of the weather-icons versus the scripts they are used and the descriptions from those scripts.
That should help to find the wrong icons < > description in the future.
The forecast/current-condition scripts used have also their individual files
[ul]
[li]DS → [color=blue]DarkSky[/color][/li]
[li]EC → [color=blue] Environment Canada[/color][/li]
[li]MT → [color=blue]Metar[/color][/li]
[li]PP → [color=blue]WXSIM plaintext parser[/color].[/li]
[li]WD → [color=blue]WeatherDisplay[/color][/li]
[li]WU → [color=blue]WeatherUnderground[/color][/li][/ul]
The XREF-pdf uses the original weather34 icons. The individual pdf’s use another set of icons I am currently testing with.
Wim
I have an error occasionally with metar_load_funct.php as per pic attached…
regards
Tim
http://weather.skybase.net/pwsTEST/index.php
3 messages up in this topic, they changed the layout of the JSON. New script is there.