Have had a problem getting the YrNo full page PDF forecast loading over the last few days, and after looking at their site it seems they have changed over to a new one from the 1st Dec 2020.
I found a link to the ‘Old Site’ and had to change the following line in PWS_frames:
All links like the old ones are replaced with a new one without a understandable location, sadly the new link we can not use as there is no way yet to understand the new numerical code f.i. 2-2792482 for the old Belgium/Flanders/Leuven/
I have no idea why your link is not changing to the new format automatically.
If you prefer the old look, you could use the “retro” and not the “www” one. Nice find =D>
I myself have to wait, see and test until January when they move everything to the new format.
Wim
P.S. A few moths ago the yr.no scripts already switched to using the new 2021 data format. Could you please post the link to your website so i can check?
Many thanks for looking into this problem which may be something in my set up, as it doesn’t work within the program if I include the ‘WWW’ in the address within PWS_frames.php (but does if typed in direct
using Microsoft Edge) and I just get the following error message - used to work fine on the old site.
Thanks for finding the work-around then.
Others will face this problem maybe also as I expect a check by yr.no if the request is legitimate (in their eyes)
I will change the subject of your (first) post so that it may attract other solution seekers also.
Went to the Yr.No site and did a search for my location - after choosing the correct location a forecast page is displayed with the number being shown.
Seems to be working fine, and gave me a couple of choices for forecast area here.
#
# this one is optionally used if use yrno as forecast
#
if ( $fct_yrno_block_used == true) {
$frame = 'yrnoPP';
$frm_ttls[$frame] = 'YrNo Forecast'; // name in menu
$frm_src[$frame] = 'https://www.yr.no/place/'.$yrno_area.'/forecast.pdf';
$frm_frme[$frame] = true;
$frm_hgth[$frame] = 1500;}
and then had to enter /United_Kingdom/England/Long_Sutton~7301777/ in the setup and it now works perfectly.
Although I might go back to the Wunderground forecast as the top left block just says “Have A Nice Day” (and I assume warnings) instead of a mini forecast
My YrNo Forecast page accessed from the menu is no longer working, and I am wondering whether they might have changed their url structure.
In the setup it states: -
“Go to yr.no website and search for a city nearby your location.
The browser line will show AFTER https://www.yr.no/place/
the area description. For my area it is Belgium/Flanders/Leuven/”
Entering “Great%20Britain/England/Dorset/Wimborne%20Minster/” into the settings returns a “Something went wrong” error when the page is opened. However when I enter Wimborne Minster into the “Search for a location…” box displays the page correctly.
I have noticed this on other pages I have looked at too.
= = =
The setting for yr.no is not used anymore in this case.
Probably it also works (in most cases) without the country city name as the yr.no server adds the missing parts. https://www.yr.no/en/print/forecast/2-2633863/
I get an error when I select full screen weather forecast from Yr - “This page is closed”
Landing page informs about hitting a legacy forecast that is no longer in use.
Should I just disable full page menu option under Weather forecast block or is there some updates that I’m missing?
It was the link to the discussion in that page were the solution is. http://discourse.weather-watch.com/p/547771
Topic labelled YrNo changed their full page forecast link → Solution here
But there are multiple references to this “solution” all scattered around , all with the same recipe for a solutioin.
Cause: Yr.No is/was gradually changing the old-link → temporary “retri”-link → new link with a city number.
These discussion and the latest version of PWS_frames.php have both the old retro and the number link as examples
if ( $fct_yrno_block_used == true) {
$frame = 'yrnoPP';
$frm_ttls[$frame] = 'YrNo Forecast'; // name in menu
$frm_src[$frame] = 'https://retro.yr.no/place/'.$yrno_area.'/forecast.pdf'; #### 2021-03-27
$frm_frme[$frame] = true; #https://www.yr.no/en/print/forecast/2-2792482/Belgium/Flanders/Flemish%20Brabant/Leuven
$frm_hgth[$frame] = 1500;}
The only change i can do, is remopve the link from the PWS_frames script, I doubt that is necessary.
As described, in all the posts, you yourself have to find that number.
Wim
P.s. I will merge your question into the other topic later today