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

Problem in earthquake block: magnitude 5.1 in red is not easily legible in orange circle. See snip Earthquake, viewed in Chrome.

A little later it’s OK - see Earthquake2 - for magnitude <5?


Earthquake.JPG

Earthquake2.JPG

:smiley: Thank you, that is a nice catch.
I will have to test all combinations for back-ground- and text-color.
Wim

how to get the :
DarkSkyForecast
script to include it in:
w34 frames.php
Thank you

The only thing you can include is an url. So you have to go tot their site, choose settings for lang and untis a.s.o., copy from the address line, example How Dark Sky users can use the Apple Weather app - Apple Support
Then put that in the frames script.

Or use a link of your other website such as this forecast:
http://www.meteotorrelavega.com/weather28/index.php?p=wsWxsimPrintFull&lang=en&ipad

Wim

Another one I’ve noticed is the small “Indoor temp” bubble in the main temp block, where white lettering of that small size doesn’t show up well on some of the background colours.

[I have actually modified mine to show extratemp1 from the garden instead of indoor temp, and set the background to be blue for any temp. Blame Google Translate for any bad translations of “Garden”!]

Thank you Wim

IMPORTANT
Please do not mail / PM BrianUnderdown about this version. This WD version of the HWS-template is based on a november 2017 version. Plus I changed the logic of the PHP code (not the CSS / SVG) and how blocks are addressed and loaded.
It took 1 1/2 month all my spare time, and I am retired.

So for Brian this code is totally different from his new code. He does not want to offend people who ask him about this version. But he really can not give the answers needed.

The whole idea is to have different versions and each version has another person responsible for maintenance and support.
If you want to mail to Brian buy a Meteobridge first and discuss that version.

BUT do not compare versions. There is really not much code left of the 2017 version I started with.
Do not ask him to port a block from the MB version to the Wd version. Ask me.

Brian asked me to remove all links (URL’s) to weather34 from the code, and that is the first thing I will do tomorrow.

Wim

f I put this page in the browser:
http://www.meteotorrelavega.com/weather28/index.php?p=wsWxsimPrintFull&lang=en&ipad
I get it right
but if I execute it through:
http://www.meteotorrelavega.com/pwsWD/w34_start_frame.php?frame=WXSIM
I get the whole full page of weather 28
any suggestions
Thank you

Thanks for that info. Another piece of my puzzle figured out :oops:

When there is a problem like this, you could have made a typing error, or your keybord is “kaput”
This is the link used, there is an extra p at the end
http://www.meteotorrelavega.com/weather28/index.php?p=wsWxsimPrintFull&amp;lang=es&amp;ipadsp

Wim

Thanks…if I already owned carp I would try it, but I don’t…

Helo Wim
Noticed the wind data refresh is about 30 seconds. How can i decrease the clientraw refresh interval?

Thanks.

http://www.llanelliweather.co.uk

Is that not set in WD?

Also when i click on nearby on current conditions i get lots of warning messages...

Working OK here for EGFF.

Thanks Bitsostring

Just checked the local and now working???
Strange.

In the old weather 34 software there was an option to alter the refresh rate. Wait for Wim to see the question

Thanks

There is a setting, BUT it is not user configurable.
Be aware that playing around with reload settings will increase the load of you server.
http://wd34.weather-template.com/pwsWD/w34_module_test.php => test wind_gust_block.php

wind_gust_block.php (25) include_once =>w34_livedata.php => loads the clientraw or WDapi data
w34_livedata.php (28) include_once =>w34_settings.php
w34_settings.php (31) include =>w34_settings1.php
w34_livedata.php (32) include_once =>w34_shared.php => loads convert functions and multiple SVG icons
wind_gust_block.php (29) include_once =>w34_common.php => loads the language file

All other blocks are loaded in the same way and have to load all those supporting scripts/files also
All this to get the “realtime” data in the correct unit and the words translated to the correct language

So if you have a normal hosting account do not set the refresh-times to short.

I will move the default refresh-times settings to easyweather in April.
For now check the w34_blocks.php which contains the headings, pop-ups and refresh-time for each block used.

Wim

I assume my server php version is the problem…but this doesn’t appear to affect anything…yet. Should I be concerned?

[i]Warning: date(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/trave147/public_html/pwsWD/w34_easyweathersetup.php on line 106

weather34 EASY SETUP for WeatherDisplay

Back to the main page

Enter your password for the “Setup Screen” below

Info: Your current PHP version is : 5.5.38
PHP 7+ is advised for this template but it will run also with PHP 5.6.3 or higher[/i]

Thanks, I will remove that one also in the April version.
Wim

Just checked the conversion factor for my old w34 (V.3.4-X5(d)) page too: it was showing 110.6 mi instead of 59.8!

In the alerts.weather.gov version, would it be possible to have the ability to add multiple codes i.e. CAZ095 (Kern County Mountains) and CAC029 (Kern County) which is roughly the same area except the zone code CAZ095 could take in a larger area and parts of several counties? The reason being able to add multiple codes is that the NWS could issue an alert either for the zone or county depending on the type of alert and affected area. Another good example of this is in Kansas where the counties and zones are the same area.

Current Watches, Warnings and Advisories for Wyandotte (KSZ104) Kansas Issued by the National Weather Service (Wyandotte)
Current Watches, Warnings and Advisories for Wyandotte (KSC209) Kansas Issued by the National Weather Service (Wyandotte)

Hello Wim

Trying to add my links on the extras field.
I have added one of my own but nothing is appearing.The other links that were there are working ok.
Can you see any issue with the data i have entered ?

these are examples, please use your own ones

$frame = ‘Latest North Atlantic Synoptic Chart’;
$frm_ttls[$frame] = lang(‘Latest North Atlantic Synoptic Chart’); // name in menu
$frm_src[$frame] = ‘https://ocean.weather.gov/A_sfc_full_ocean_color.png’.$used_lang;
$frm_hgth[$frame] = 946; // name in menu

$frame = ‘BNLWN_mesonet’;
$frm_ttls[$frame] = lang(‘Benelux Weather Network’); // name in menu
$frm_src[$frame] = ‘http://www.beneluxweather.net/mesonet-map/mesonet-map.php?lang=’.$used_lang;
$frm_hgth[$frame] = 1366; // name in menu

$frame = ‘EWN_mesonet’;
$frm_ttls[$frame] = lang(‘European Weather Network’); // name in menu
$frm_src[$frame] = ‘https://www.weerstation-herent.be/ewn/stations.php?lang=’.$used_lang;
$frm_hgth[$frame] = 1500; // name in menu

Thanks
Steve