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.
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]
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.
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 = ‘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
But even then it will not display, check in your browser: right-click => inspect => console Refused to display ‘https://ocean.weather.gov/A_sfc_full_ocean_color.png’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’
So you are not allowed to display those images in an iframe.
More and more websites do that as they do not want their content “copied”
Google is your best friend => “Embed tag was never endorsed by the W3C so it’s invalid code, although some browsers support it.”
Safari is the engine on the iPad and more strict than others. Chrome on the iPad uses the Safari engine also.
When you redo your site with iframe it will work on all platforms.
Wim
Thx for the update of this nice layout.
I have it up and go, but i se on the right side on the current condition and push the link on “nearby” i get (EEBR , Brussel)
Wim, is there a way to force a page refresh when the page is loaded - I know I can click on the refresh button of my browser, but I would prefer to click on the link to my page and have that page loaded with fresh/up-to-date weather data (skipping any cache data).
As all data comes from PHP the browser cache will not be used for data as with html.
The server caches the data loaded from external sites. But those are not refreshed when reloading the page.
Actions when loading the page (as it is functioning now)
Frame of the page with empty boxes is sent back to to the requesting browser
The “update script” is loaded and it starts re-loading obsolete data form external sources (DarkSky, AQ, a.s.o.)
All blocks are loaded one by one and they use the available data on the server, the blocks do not reload data themselves
All blocks refresh their data at different intervals after they are loaded
Often one uses a cron-job so that all data on the server is always valid and step 2 just checks and find all data is OK.