Hello,
I installed your Forecast scripts, but how do I set the Italian language? I put the file in the "lang" folder, set in the php file: lang: "it" but it doesn't translate it for me, why?
Thank you
# ----------------------------------------------
# language settings
#-----------------------------------------------
$ws_langs_supported = array ('en', 'nl', 'fr', 'de');
Change to# ----------------------------------------------
# language settings
#-----------------------------------------------
$ws_langs_supported = array ('en', 'nl', 'fr', 'de','it');
Hi, Wim excellent script thanks. [tup]Thanks for the compliment.
It could be an idea to make a yr.no script (which in my opinion is one of the most reliable) for mobile devices by putting only 3 forecasts on one line then on the line under other 3 forecasts.
Wonderful work on this Wim. And, thanks for your support on the Weather34 templates, too.i am on vacation with insufficient internet. There is a setting to switch off testing/debug and that will also remove the lat-Lon numerals.
The one question I have is related to the DarkSky forecasts when used within Ken's Saratoga templates. I've followed your setup instructions and it seems to be working fine, with the exception of template width issue (looking forward to responsive templates for everything) but under the forecast header appears..."Forecast data created at Monday Jan 27 2020 - 9:26am For Station Xetc, etc." I get my Lat/Long location added on. I really don't want the GPS location of my station shown. Is there something wrong with the way I've set this up, or is there a simple way to turn this off or comment it out?
Thanks
Tim
Thanks Wim. I might be looking in the wrong place. Haven't managed to turn off the testing switch, so still seeing lat/lon.The settings files, such as _metric_settings.php contain the setting to switch all errors (and other debug code) off when you are finished testing.
Tim
weatherola.com
#-----------------------------------------------
# for ALL websites using metric units
#
#-----------------------------------------------
# # # Here you have to make the changes # # #
# # # for stand-alone use # # #
#-----------------------------------------------
# error messages on or off
# always set to false for production versions
#
$ws_errors = false; # false when ready testing
#-----------------------------------------------
I posted this question to the wrong forum earlier.
I'm trying to run the Wunderground colored table history script. When I run the script, I get this error:
ERROR: no data for http://change_to_your-site_in_wsReports1part.php/WXDailyHistory.php?ID=KNCMOREH2&month=01&day=01&year=2016&format=1&graphspan=year
I have been running Weather Underground for my site KNCMOREH2 for several years now.
Any help is appreciated,
Chris
Hello weather enthusiasts and Leuven users
After spending time with other templates, I decided to do a fresh Leuven installation, because it’s still a fantastic template - I really like how customizable it is. So thanks to Win for keeping it alive.
However I need some help, because I’m struggling with some errors while debugging.
Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186
Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186
Notice: Undefined index: weatherDescDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 189
Thanks in advance and happy windy Sunday
Sent from my iPad using Tapatalk
Hello weather enthusiasts and Leuven users
After spending time with other templates, I decided to do a fresh Leuven installation, because it’s still a fantastic template - I really like how customizable it is. So thanks to Win for keeping it alive.
However I need some help, because I’m struggling with some errors while debugging.
Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186
Notice: Undefined index: iconDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 186
Notice: Undefined index: weatherDescDtl in /var/www/vejrstationen.dk/public_html/weather28/wsmetno3/metnoGenerateHtml.php on line 189
Thanks in advance and happy windy Sunday
Sent from my iPad using Tapatalk
The link to the page: https://www.vejrstationen.dk/weather28/index.php?p=ws_metno_page&lang=en
Thanks for bringing these "notices", not "errors" to my attention. I knew there were some changes scheduled in the 1.9 API.
I do not get these notices myself, but it seems that the time is right to start debugging.
I will use your settings for that "Data for latitude=55.899269 - longitude= 8.516578"
@ALL When switching debug to false in your settings, the notices will not be shown, nor appear in in the logs.
These are not "errors", it are "notices" to the script author that the scripts need to be enhanced.
When in debug mode the scripts print all possible messages "notice", 'warning", "error" and "fatal"
Wim
@ALL When switching debug to false in your settings, the notices will not be shown, nor appear in in the logs.Thanks for clearing this out Wim [tup]
. . . shortened . . .
Wim
I’m ignoring the message then, and moving on to production.
Looks like Yrno forecast is also changed.
Not sure if there is already a topic about.
The Leuven support forum is not readable for me anymore.
The xml has changed.
Well something to do I guess.
NB!!! Since we have no other options to contact our users of forecast.xml, we have decided to use this method to get your attention to some major changes with our API
In the first quarter next year, forecast.xml and forecast_hour_by_hour.xml will be discontinued in favour of a newer JSON API.
Vi encourage you already now to switch to the new API.
There are a lot of changes, and you can read all the technical details in our new developer portal https://developer.yr.no
Hi Wim,
thanks for the info about the warning concerning the yr.no script - much appreciated. I have just noticed this myself and are now trying to change the script to metno. The scripts have changed quite a bit but managed - thanks to the readme file - to set it up. Nevertheless I must have made a mistake somewhere as I am not able to get it working ("invalid forecast data retrieved, check the html for errors"). Any ideas what I might have missed? I am a bit confused with point 7. in the stand-alone tab.
Thanks for your time (and this awesome scripts) and best regards,
Markus
. . .Nevertheless I must have made a mistake somewhere as I am not able to get it working ("invalid forecast data retrieved, check the html for errors").Well, next time I will not even look and invest my precious spare time if you do not include an accessible link with your post.
. . .
No data was retrieved for http://www.temis.nl/uvradiation/nrt/uvindex.php?lon=137.86&lat=36.7
no forecast data can be retrieved, check the html for errors
thanks for the info about the warning concerning the yr.no script - much appreciated.
...
The scripts have changed quite a bit but managed - thanks to the readme file
You should have posted the complete message which appeared before the complete forecast. You gave me the impression that there was no forecast at all.I am sorry for the troubles but all I saw was the error message: "invalid forecast data retrieved, check the html for errors".
Hi Wim,
comparing the output (forecasts) from met.no to yr.no shows that they are quite different. Somehow the forecasts in met.no don't line up with the times (e.g. this morning shows the afternoon forecast and so on). I don't know how to explain it in an understandable language and I have therefore attached a pdf comparing the to forecasts.
I remember that a long time ago when I first came across your scripts I installed the metno scripts and then switched to yrno for that same reason. As the yrno scripts are going to not be continued I have to find out the problem so I can switch to metno in due time.
I have send you a pm with the link to the yrno scripts if needed.
Thank you and have a nice weekend.
. . .All links to the correct support topics => https://support.leuven-template.eu/
Installed leuven template on my website.
. .
require_once 'lib/Util.php';
Util::checkShowSource(__FILE__);
The last data on your website Last updated: : 02-06-2015 18:18 => 18:19/home/edgarnuum/domains/hotserv.eq.ee/public_html/nautical/weatherpro/startHere.php
startHere.php (v2.8): This small program test your web server settings if they prohibit installing the Leuven-template.
You only need to run this program in step3 of the install procedure.
good evening wilm I use your forecast script with the yr.no forecasts on my site www.meteolimoux.fr it is a file that I had downloaded 2 or 3 years ago I think. for the moment the forecasts yn.ro still works but according to the information it will stop working so I would like to switch to another forecasting system similar to yn.ro met.no seems to me very good, I have to modify something thing in the wsfct4 file? I ask this question because I do not want to make a false manipulation before starting thank you in advance [tup] [tup]
yes indeed it works well the only thing is that I did not touch anything at the level of the geolocation for the reception of the weather data of my village.
for the yn.ro I remember having informed something but I do not know where else on the script at the bottom right one can see it
Forecasts created on: 24-02-2021 02:19 (France / Languedoc-Roussillon / Limoux-Flassian% 20Railway% 20Station /
For the met.no script there is marked Forecast created on 02-24-2021 09:17 (43.07181 2.21743) also at the bottom right
What do you think
ERROR module yrnoCreateArr.php (87): Unable to retrieve xml for http://www.yr.no/place/Austria/Upper_Austria/Rindlberg//varsel.xml
ERROR module yrnoGenerateHtml.php (39): No data retrieved - forecast not possible
The adress is working and including forecast datas, but "No data retrieved??"Hi Wim, could you please help me again with a problem at YR since few days?
Following error on my site:Code: [Select]ERROR module yrnoCreateArr.php (87): Unable to retrieve xml for http://www.yr.no/place/Austria/Upper_Austria/Rindlberg//varsel.xml
The adress is working and including forecast datas, but "No data retrieved??"
ERROR module yrnoGenerateHtml.php (39): No data retrieved - forecast not possible
lg
martin
http://www.hildner.at/weather28
BTW: I started already using meteotemplate but not much time in the moment to configure.... So if theres a solution it would be great ...
<!-- NB!!! Since we have no other options to contact our users of forecast.xml, we have decided to use this method to get your attention to some major changes with our API -->
<!-- This summer, forecast.xml and forecast_hour_by_hour.xml will be discontinued in favour of a newer JSON API. An exactly date is not set yet. -->
<!-- Vi encourage you already now to switch to the new API. -->
<!-- There are a lot of changes, and you can read all the technical details in our new developer portal https://developer.yr.no -->
Tnx for your help =D> \:D/.
I checked the data only about forecast info, sorry :roll:
Where can i change the setting that met.no is shown on the startpage (not yr) ?
Sorry for the questions but your template is running so stable [tup] that nothing is to do long time, and so its difficult if something to change :-)
lg
martin
# Default forecast on the start-page
$SITE["fctOrg"] = "metno"; # wxsim = WXSIM needs extra program = all | yrno = Yrno needs area code = all | metno = MetNo = all | yowindow = YoWindow gadget = all | noaa = NOAA = america | ec = Environment Canada = canada | hwa = Het Weer Actueel - alleen voor leden = europe
api.met.no/weatherapi/locationforecast/1.9/to:
api.met.no/weatherapi/locationforecast/2.0/classic/
Hi Wim, hope this message finds you well.
From 1st of March the met.no forecast stopped working. I remembered our conversation about version 1.9 and checked the metno api and they moved to version 2.0. But just changing the version number didn't work, had to add /classic/ and all is working fine again.
Changed line 50 in wsIncMetnoCreate.php:
from;Quoteapi.met.no/weatherapi/locationforecast/1.9/to:Quoteapi.met.no/weatherapi/locationforecast/2.0/classic/
Hope this info is useful for others as well.
Thanks for this amazing script!
$ws_metno_url = 'https://api.met.no/weatherapi/locationforecast/2.0/classic/?lat='.$yourLatitude.'&lon='.$yourLongitude
$ws_uv_url = 'https://www.temis.nl/uvradiation/nrt/uvindex.php?lon='.$wsUvLongitude.'&lat='.$wsUvLatitude;
Hello.
I am trying to test the latest V4 version for my predictions.
I wish I could create a menu at the top of the forecast with a choice of other cities for my visitors.
Simply have a drop-down menu.
Thank you for telling me how to have from the same page the possibility of accessing forecasts from other places.
Here is my test page: http://test.meteo01.fr/ws/wsFctMetnoPage4.php
Fabrice
Hello.
Thank you for your reply.
I will see how I can create this drop down menu for my personal needs.
Because I found this example using your version V 3.5 on this site: http://www.meteonarbonne.fr/index.php?p=51-2&lang=fr
ok thanks.
I am also trying to remove in the forecast table the mention of the force of the Beaufort wind (example 2, 3 ...) or even remove the mention of the breeze. What should be deleted for all of this ?.
Thank you.
Hi
Could I please have help to fix this problem All was good until yesterday. I have not changed any script. My website is: https://www.kstwx.net/wxnorwayfcst.php. The first attachment is a screenshot from my desktop whilst the second is what appeared on my iPad today. Yesterday both appeared on my desktop (Win 10).
Thanks
Keith
<item nr = "wsForecast"This not working, the menu-button "Vooruitzicht" (translated) keeps pointing to the old target:
caption = "Forecast"
link = "wsfct4/wsFctMetnoPage4.php"
gizmo = "1"
/>
Hello,This is a thread for the stand-alone (+Saratoga) forecast scripts.
I noticed my forecast page was not working anymore. Thanks to this thread a found the cause.
But there is a problem in the solution. The script is working, even stand-alone without enclosing html:
https://weerstationberlare.be/wsfct4/wsFctMetnoPage4.php (https://weerstationberlare.be/wsfct4/wsFctMetnoPage4.php)
I adapted the file wsMenuData.xml for it:Quote<item nr = "wsForecast"This not working, the menu-button "Vooruitzicht" (translated) keeps pointing to the old target:
caption = "Forecast"
link = "wsfct4/wsFctMetnoPage4.php"
gizmo = "1"
/>
https://weerstationberlare.be/ (https://weerstationberlare.be/)
Is there something else I have to activate ? It doesn't seems a cache problem.
Warning: include_once(./ws_set_environment.php): failed to open stream: No such file or directory in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 144
Warning: include_once(): Failed opening './ws_set_environment.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 144
Warning: include(./_metric_settings.php): failed to open stream: No such file or directory in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 146
Warning: include(): Failed opening './_metric_settings.php' for inclusion (include_path='.:/opt/alt/php70/usr/share/pear') in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 146
Fatal error: Uncaught Error: Call to undefined function ws_debug_times() in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php:152 Stack trace: #0 /home/uitber1q/weerstation/index.php(331): include() #1 {main} thrown in /home/uitber1q/weerstation/wsfct4/wsFctMetnoPage4.php on line 152
It is a lot more work to use the stand-alone scripts. https://weerstationberlare.be/wsfct4/readme.htmlhello everyone today all of the forecast scripts have stopped working. i thought the met.no is going to keep working that seems to have shut down as well. What gives on your side. Good day to youHi @lacouste,
i havz that on all yr met no ect.....
no forecast data can be retrieved, check the html for errors
This service will be retired on February 1st, 2022. Please go to https://developer.yr.no/doc/guides/getting-started-from-forecast-xml/ to get started with our new API. This service will have random interuptions until the final end of life date February 1st, 2022.
hello kim I am also confused because as you announced yn.ro had to stop working so for that no problem on the other hand in my wsfct4 folder the rest of the programs no longer work also I still have error messagesI think you maybe have an old download?
for http://meteolimoux.fr/wsfct4/wsFctDarksPage4.php
I have This scripts needs an API-key, please check the docs
for metno http://meteolimoux.fr/wsfct4/wsFctMetnoPage4.php I have no forecast data can be retrieved, check the html for errors
for http://meteolimoux.fr/wsfct4/wsFctWuPage4.php I have This scripts needs an API-key, please check the docs
for http://meteolimoux.fr/wsfct4/wsFctWxsimPPage.php I have Error input file not found, cache file not found either => ../ complaintxt.txt
Scripts failed, check html for problems
for yahoo I have No data was retrieved for https://query.yahooapis.com/v1/public/yql?q=select+*+from+weather.forecast+where+woeid+in+(SELECT+woeid+FROM+geo .places + WHERE + text = "(43.071812,2.217438)") + & format = json
no forecast data can be retrieved, check the html for errors
all the programs no longer work in my folder
hi wilm i made the modification on line 50 but i get this error messageI think the message (in red) is very clear.
unknown error Warning: file_put_contents(./cache/wsIncMetnoHtml4_c_mm_kmh_hpa_cm_km_43-071812_2-217438.arr): failed to open stream: No such file or directory in /customers/5/5/d/meteolimoux.fr/httpd.www/wsfct4/ws_set_environment.php on line 181
ws_save_cache: ERROR Could not save data to cache (./cache/wsIncMetnoHtml4_c_mm_kmh_hpa_cm_km_43-071812_2-217438.arr).
Please make sure your cache directory exists and is writable.
Program ends
I just looked I downloaded the folder on 08/02/2018 I don't have a cache file in the meteolimoux.fr / wsfct4 / subfolderYou need a cache folder inside the wsfct4/ folder.
I have img, js, lang, other, pp, saratoga root, on the other hand I have a cache file in the img folder
https://filemanager.one.com/#matthieu.coustal@wanadoo.fr/meteolimoux.fr/files/wsfct4/img/cache/
ok can I simply create it manually in my manger file from my web folder?Yes, I hope so.
Hello. I have used the Leuven template for many years. I have not done any changes in the script for a long time. A few days ago the script stopped working. Only a completely empty, grey page appears when typing the url: www.uranusweather.comHi Rob,
I hope for some help to fix this.
Best wishes :-)
Rob
Parse error: syntax error, unexpected token "-",
expecting "]" in /customers/a/6/7/uranusweather.com/httpd.www/weather2/wsAjaxDataLoad_v3.php on line 451
The error is a "parse error" and signals the script contains invalid PHP, and all further processing stops after a parse error.#[forecast-text]
to# [forecast-text]
Adding that extra space between the # and the rest of the comment removes the parsing error.Hello. I have used the Leuven template for many years. I have not done any changes in the script for a long time. A few days ago the script stopped working. Only a completely empty, grey page appears when typing the url: www.uranusweather.comHi Rob,
I hope for some help to fix this.
Best wishes :-)
Rob
PHP-version:
Checking with info.php => your provider or you yourself changed your website to using PHP Version 8.0.12
That is a big change from 5.6 or 7.4 for which the template was tested.
And you will probably run into far more errors, if you continue to use PHP 8.0.xx versions for this template.
This topic you posted this question is for the Leuven-Forecast scripts discussion but your problem is in the Leuven-Template.
Next time, post your questions in the template topic https://www.wxforum.net/index.php?topic=36504.0
Debug:
Running your website with "?debug=yes" shows the error is in wsAjaxDataLoad_v3.phpCode: [Select]Parse error: syntax error, unexpected token "-",
The error is a "parse error" and signals the script contains invalid PHP, and all further processing stops after a parse error.
expecting "]" in /customers/a/6/7/uranusweather.com/httpd.www/weather2/wsAjaxDataLoad_v3.php on line 451
So indeed you will have an empty grey page.
Script-source:
Listing the script with https://www.uranusweather.com/weather2/printScript.php?echo=wsAjaxDataLoad_v3.php
Line 451 is a comment line in your version and should not be parsed at all.
Seems a problem with the PHP-parser to me, not with the script.
Solution:
I copied your script and tested it with PHP 8.0.12 at my test-site => same error.
Change line 451 of your weather2/wsAjaxDataLoad_v3.php fromCode: [Select]#[forecast-text]
toCode: [Select]# [forecast-text]
Adding that extra space between the # and the rest of the comment removes the parsing error.
Wim
Hello,
I installed your Forecast scripts, but how do I set the Italian language? I put the file in the "lang" folder, set in the php file: lang: "it" but it doesn't translate it for me, why?
Thank you
@ALL PLEASE ALWAYS INCLUDE THE URL TO YOUR WEBSITE / SCRIPT
As from now, no answers if you do not include the links.
@metosa
I will use the Italian language as example, but it works the same for most western languages
To install 1 extra language, follow these stepsThat array to change is below the warnings about knowing what you are doing. Be careful.
- In the wsfct4/lang/ folder copy one of the current language files f.i. fctlanguage-en.txt and change the name to fctlanguage-it.txt
- DO NOT COPY any other language file you may have, use only a copy of an existing file in the lang folder
- Carefully change all texts at the right to Italian
- Change the allowed languages around line 250 in your settings file , in this case _metric_settings.php to contain your new language
Code: [Select]# ----------------------------------------------
Change to
# language settings
#-----------------------------------------------
$ws_langs_supported = array ('en', 'nl', 'fr', 'de');Code: [Select]# ----------------------------------------------
# language settings
#-----------------------------------------------
$ws_langs_supported = array ('en', 'nl', 'fr', 'de','it');
Wim
Hello,
After I noticed that my OLD YrNo on my webpage is no longer functional I download your new script and to add MetNo instead.
First on my local web http://127.0.0.1 for example test it is working HOWEVER when I uploaded to my hosting site it only shows this (see attached image), I only changed the file names which are easy for me to remember inside folder where I put it but the scripts are still same intact.
http://www.pimohweather.com/YRNO.php
it supposed to be this (see the second image)
is there part on the script that dissallows to viewed on hosting site? please let me know.
regards
-Mike-
Hello,
After I noticed that my OLD YrNo on my webpage is no longer functional I download your new script and to add MetNo instead.
First on my local web http://127.0.0.1 for example test it is working HOWEVER when I uploaded to my hosting site it only shows this (see attached image), I only changed the file names which are easy for me to remember inside folder where I put it but the scripts are still same intact.
http://www.pimohweather.com/YRNO.php
it supposed to be this (see the second image)
is there part on the script that dissallows to viewed on hosting site? please let me know.
regards
-Mike-
PLEASE always give a correct link to the real page with the error.
The link you supplied runs the forecast in a frame. So you waste support time to let me scan the html to find the real forecast page used => http://www.pimohweather.com/WXYRMO/MetNo/wsMetNopage4.php
A 404 error comes from your webserver not from your website or scripts.
It simple tells you there is either a typing error in the pagename you typed
=> often capital letters and small letters really are important on a website
==> http://www.pimohweather.com/WXYRMO/MetNo/wsMetNopage4.php does not exist
The http://www.pimohweather.com/WXYRMO/MetNo/wsMetNoPage4.php does exists,
=> it can find 3 other scripts
=> but fails as the wsMetNoHtml.php script is missing.
Why is it important for you to change script-names?
The start-page from which you can easily test all scripts. can not find the script either
http://www.pimohweather.com/WXYRMO/MetNo/ clicking on the links, f.i. WU, will give a correct installation error
Clicking on the metno link will give the 404 error for http://www.pimohweather.com/WXYRMO/MetNo/wsFctMetnoPage4.php
That changing script names makes finding errors and giving support far more difficult than necessary.
And changing filenames without adapting the scripts which load the files is really not a good idea, to say it polite.
Wim
Hi,
I had the unpleasant surprise to find some weird code inserted in forecast template, with links to freaky/ads/porn websites.
Here is an example:
":root topadblock, :root span[id^="ezoic-pub-ad-placeholder-"], :root img[alt^="f**kbook"], :root iframe[src*="mellowads.com"], :root div[style^="padding: 5px 15px !important"] > [style^="width: 100% !important; cursor: pointer !important;"], :root div[id^="zergnet-widget"], :root div[id^="traffective-ad-"], :root div[id^="taboola-stream-"], :root div[id^="sticky_ad_"], :root div[id^="rc-widget-"], :root div[id^="q1-adset-"], :root div[id^="proadszone-"], :root div[id^="lazyad-"], :root div[id^="gtm-ad-"], :root div[id^="ezoic-pub-ad-"], :root div[id^="dmRosAdWrapper"], :root div[id^="div-gpt-"], :root div[id^="div-adtech-ad-"], :root div[id^="dfp-slot-"], :root div[id^="dfp-ad-"], :root .......+ a long similar list + { display: none !important; }
What is this all about?
Hi,
I had the unpleasant surprise to find some weird code inserted in forecast template, with links to freaky/ads/porn websites.
Here is an example:
":root topadblock, :root span[id^="ezoic-pub-ad-placeholder-"], :root img[alt^="f**kbook"], :root iframe[src*="mellowads.com"], :root div[style^="padding: 5px 15px !important"] > [style^="width: 100% !important; cursor: pointer !important;"], :root div[id^="zergnet-widget"], :root div[id^="traffective-ad-"], :root div[id^="taboola-stream-"], :root div[id^="sticky_ad_"], :root div[id^="rc-widget-"], :root div[id^="q1-adset-"], :root div[id^="proadszone-"], :root div[id^="lazyad-"], :root div[id^="gtm-ad-"], :root div[id^="ezoic-pub-ad-"], :root div[id^="dmRosAdWrapper"], :root div[id^="div-gpt-"], :root div[id^="div-adtech-ad-"], :root div[id^="dfp-slot-"], :root div[id^="dfp-ad-"], :root .......+ a long similar list + { display: none !important; }
What is this all about?
I have to be grateful for the man who worked on this wonder-weather-template, I have been searching for a replacement since yr.no let us down. Thank you, sir!
For two days I crawl to forum, and support, and answers, to really get how this work, and it works just fine. Perhaps I didn't understand exactly ](*,) some things, some of them being talked over here before, so excuse me if I an redundant ](*,), but I encounter some issue on METNO compact page.
For the "6 hours forecast" tab that I only want to use it shows the forecast starting the next day (+24 hours). For instance, now is saturday 11 pm, on this tab appears the sunday evening forecast. All the other tabs show saturday weather forecast. Is it how is supposed to be or did I do something wrong?
Also, is there a setting to fully show this page (100% height), without the slider?
Hi
After update my webserver to php 8.1.1 I got this error
Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /var/www/Apache_html/vejr/wsIncMetnoHtml4.php:554 Stack trace: #0 /var/www/Apache_html/vejr/wsIncMetnoHtml4.php(554): round() #1 /var/www/Apache_html/vejr/index.php(187): include_once('...') #2 {main} thrown in /var/www/Apache_html/vejr/wsIncMetnoHtml4.php on line 554
this is in line 554 : { $ws_dtl_html .= PHP_EOL.'<td>'.round ($arr['clouds']).' %</td>';}
wsIncMetnoHtml4.php
can someone help to get i working with php 8
cbni
{ $ws_dtl_html .= PHP_EOL.'<td>'.round ( (int) $arr['clouds']).' %</td>';}
I have to be grateful for the man who worked on this wonder-weather-template, I have been searching for a replacement since yr.no let us down. Thank you, sir!
For two days I crawl to forum, and support, and answers, to really get how this work, and it works just fine. Perhaps I didn't understand exactly ](*,) some things, some of them being talked over here before, so excuse me if I an redundant ](*,), but I encounter some issue on METNO compact page.
For the "6 hours forecast" tab that I only want to use it shows the forecast starting the next day (+24 hours). For instance, now is saturday 11 pm, on this tab appears the sunday evening forecast. All the other tabs show saturday weather forecast. Is it how is supposed to be or did I do something wrong?
Also, is there a setting to fully show this page (100% height), without the slider?
Sadly all humans who try to give answers on this forum are not clairvoyant.
One needs a link also called an URL to your website and the script to check what is causing your problems.
With that link one can inspect the HTML source, check the latitude / longitude used, inspect the returned data from met.no, and so on.
You were asked for that already two times after your previous post.
You do not owe the author of the scripts anything, nor the other persons answering your questions.
To be honest, it is common courtesy to give that information needed when asked for by the people who spent their free time to help you solve your problems.
I think it should be useful to mention in the firt post of this thread, for those who have issues, to mandatory include a link to the page with problems.
Well, the problem seems to be gone (weather forecast shown starting + 24 h). Perhaps I changed some data in parameters page, that was saved in cache. Today everything goes well :grin:
Could you help on the second issue, with the slider - removing slider on forecast 6 hours page, because the browser/smartphone has it's own slider - in order to show 100% page height? Could that be possible? This has nothing to do with a certain personal page, but with the general script
I had the unpleasant surprise to find some weird code inserted in forecast template, with links to freaky/ads/porn websites.
Here is an example:
...
What is this all about?
Hi
After update my webserver to php 8.1.1 I got this error
Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /var/www/Apache_html/vejr/wsIncMetnoHtml4.php:554 Stack trace: #0 /var/www/Apache_html/vejr/wsIncMetnoHtml4.php(554): round() #1 /var/www/Apache_html/vejr/index.php(187): include_once('...') #2 {main} thrown in /var/www/Apache_html/vejr/wsIncMetnoHtml4.php on line 554
this is in line 554 : { $ws_dtl_html .= PHP_EOL.'<td>'.round ($arr['clouds']).' %</td>';}
wsIncMetnoHtml4.php
can someone help to get i working with php 8
cbni
Seems that the scripts need to be checked again for 8.1.1 problems.
This error-line should read:Code: [Select]{ $ws_dtl_html .= PHP_EOL.'<td>'.round ( (int) $arr['clouds']).' %</td>';}
But in the "latest" download version that that is line 551
Strange?
Wim
I think it should be useful to mention in the firt post of this thread, for those who have issues, to mandatory include a link to the page with problems.
Well, the problem seems to be gone (weather forecast shown starting + 24 h). Perhaps I changed some data in parameters page, that was saved in cache. Today everything goes well :grin:
Could you help on the second issue, with the slider - removing slider on forecast 6 hours page, because the browser/smartphone has it's own slider - in order to show 100% page height? Could that be possible? This has nothing to do with a certain personal page, but with the general script
The moment I see a correct URL, I will check what is happening.
In your first post you insinuated that the scripts were inserting links to porno.QuoteI had the unpleasant surprise to find some weird code inserted in forecast template, with links to freaky/ads/porn websites.
Here is an example:
...
What is this all about?
Without testing the demo site and without remembering you installed malware yourself.
If you want support from the author of these scripts, you either include correct links, or wait forever.
Wim
. . . shortened
It remains the other problem that I see, it is about a day repeating in the table - please see the attachment.
I followed this issue for more days and here is what I found: during the morning and the day, everything is ok. In the evening, when there are only two intervals left, the name of the day changes with the name of the next day, although the weather data is ok.
. . .
$ws_tbl_html .= ws_fct_dateline ($arr['intdate'], 'mtb_head', $ws_table_cols);
change to if ($arr['part'] <> 'M' ) {$time = $arr['intdate'] - 12*3600;} else {$time = $arr['intdate'];}
$ws_tbl_html .= ws_fct_dateline ($time, 'mtb_head', $ws_table_cols);
Thank you for the very fast answer and solution.
I made the change, now the day name is ok in the "Forecast 6 hours interval", although the next day (Friday) starts at 8 in the morning.
Now the problem moved to the next tab, "Forecast details", where is appears Friday for the last hour of Thursday.
#
# page mobi = 11 - forecast -----------------------------------
#
elseif ($mobi == 11) {
include('wsFctMetnoSmall4.php');
}
#
I want to replace the yrno-script by a metno-script in my Leuven-template website.
Is this somewhere documented ? It is not working for me, I have not much knowledge of php etc.
https://weerstationberlare.be/index.php?mobi=11 (https://weerstationberlare.be/index.php?mobi=11)
What have I done yet:How can I do more debugging ?
- I copied the file _metric_settings.php to the map /mobi and customised it. Is this last necessary in a Leuven Leuven-template site ?
- I copied the file wsFctMetnoSmall4.php to the map /mobi and customised it. I changed the setting "$needs_html = false;"
- In the file mobi.php I modified the call to the yrno-script.
Quote#
# page mobi = 11 - forecast -----------------------------------
#
elseif ($mobi == 11) {
include('wsFctMetnoSmall4.php');
}
#
Thank you for any help.
I found this page of donators:
https://support.leuven-template.eu/userlistScripts.php (https://support.leuven-template.eu/userlistScripts.php)
How can I get on this list ? How to make a donation for the use of the scripts ?
Regards,
Mark
When you click on the link you can "send" a donation where there is ample room to type whatever reason you have to donate, f.i. Leuven-Template or Purpleair-scriptPlease remember, "If it is a hobby for both of us, it should be fun for both of us also"
If I helped you building and enhancing your website, feel free to donate at . .link . . .
. . .don't know if this is a Pad problem
I see this
The WXSIM forecast ../../plaintext.txt is not currently available.
Notice: Undefined variable: WXSIMday in /home/xxxxx/domains/weerstation-woerden.nl/public_html/wsfct4/wsIncWxsimPCreate.php on line 77
Warning: count(): Parameter must be an array or an object that implements Countable in /home/xxxxx/domains/weerstation-woerden.nl/public_html/wsfct4/wsIncWxsimPCreate.php on line 77
Notice: Undefined offset: 0 in /home/xxxxx/domains/weerstation-woerden.nl/public_html/wsfct4/wsIncWxsimPHtml4.php on line 255
Notice: Trying to access array offset on value of type null in /home/deb57018/domains/weerstation-woerden.nl/public_html/wsfct4/wsIncWxsimPHtml4.php on line 255
. . .
$ws_script_dir = './';
but is changed to $ws_script_dir = './wsfct4';
and is missing the / at the end$ws_script_dir = './wsfct4/';
Thanks for the help Wim
For now the page https://www.weerstation-woerden.nl/wsfct4/wsFctWxsimDPage.php works ok
but still have that problem with the https://www.weerstation-woerden.nl/wx_lvn_wxsimD.php page
yes I know that very strange
I see if I reload the page wsfct4/wsFctWxsimDPage.php that the cache folder into the wsfct4 folder update with some files
if Ireload the wx_lvn_wxsimD.php page i see no update into the cache folder wsfct4 and into the root
greetings Gert
$plaintextFile = '../../plaintext.txt'; ###### // location of the WXSIM plaintext.txt
IMHO for a Saratoga-Template installed in the root, it should read$plaintextFile = './plaintext.txt'; // location of the WXSIM plaintext.txt
Good evening Wim from today on Metno forecasts this problem comes out,
What could it be? :roll: :roll:
Notice: Undefined index: symbol_url in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 409
Notice: Undefined index: desc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 412
Notice: Undefined index: precip_clc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 417
Notice: Undefined index: symbol_url in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 622
Notice: Undefined index: desc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 624
Notice: Undefined index: precip_clc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 628
Notice: Undefined index: symbol_lnk in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 704
Notice: Undefined index: precip_clc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 711
Link e questo https://www.pomeziameteo.it/prev_Metno.php
Good evening Wim from today on Metno forecasts this problem comes out,Hello. I had a problem a few days ago too.
What could it be? :roll: :roll:
Notice: Undefined index: symbol_url in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 409
Notice: Undefined index: desc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 412
Notice: Undefined index: precip_clc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 417
Notice: Undefined index: symbol_url in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 622
Notice: Undefined index: desc in /web/htdocs/www.pomeziameteo.it/home/wsfct4/wsIncMetnoHtml4.php on line 624
. . . . . . shortened
Link e questo https://www.pomeziameteo.it/prev_Metno.php
Every evening during the 1-7 p.m. period and around 6 p.m., these error messages appear.
Then it works normally again and the errors are again present around 11 p.m.
Also, the current weather icon disappears as shown in my image.
. . . shortened
$ws_errors = true; # false when ready testing
After testing you better change that to$ws_errors = false; # false when ready testing
Hello,
I was wondering if anyone knows how to get the $yourEcArea number to put into the _ca_settings.php file. I am not able to see where the file is. I do see that there is a 3 digit number that can be used. Here is the line in the file $yourEcArea = "s0000646"; #<name code="s0000646" lat="42.30N" lon="82.99W">Windsor</name>
I am not sure where to get the number from.
I did do a search of this forum and did not come up with anything. The weather is currently set for Windsor, ON and I need it to be Brantford, ON weather. There is quite a difference from Windsor to Brantford in weather.
If someone could shed some light on this I would be greatful.
The scripts that you have provided have been really great. I am currently using the wxsim script now and wanted to put the Environment Canada one on to for comparison.
Thanks
Gary
I have downloaded the version 4 forecast scripts https://www.weerstation-herent.be/wsfct4/ now how do I install them What are the steps?
$dateOnlyFormat = $SITE['dateOnlyFormat'];
$SITE['timeOnlyFormat'] = 'g:ia'; // USA format h:mm[am|pm\
//$SITE['timeOnlyFormat'] = 'H:i'; // Euro format hh:mm (hh=00..23);
$SITE['dateOnlyFormat'] = 'd-M-Y'; // for 31-Mar-2008 or 'j/n/Y' for Euro format
in Settings.php for USA templates.
$SITE['timeFormat'] = 'D, d-M-Y g:ia T'; // Day, 31-Mar-2006 6:35pm Tz (USA Style)
//$SITE['timeFormat'] = 'm/d/Y g:ia'; // USA format 03/31/2006 14:03
//$SITE['timeFormat'] = 'd/m/Y H:i'; // Euro format 31/03/2006 14:03
//$SITE['timeFormat'] = 'Y-m-d H:i'; // ISO format 2006-03-31 14:03
$SITE['timeOnlyFormat'] = 'g:ia'; // USA format h:mm[am|pm\
//$SITE['timeOnlyFormat'] = 'H:i'; // Euro format hh:mm (hh=00..23);
//$SITE['dateOnlyFormat'] = 'd-M-Y'; // for 31-Mar-2008 or 'j/n/Y' for Euro format
My Settings.php is the current version and isThe two // should be removed from the last line. Those // makes that line a comment. It should look like thisCode: [Select]$SITE['timeFormat'] = 'D, d-M-Y g:ia T'; // Day, 31-Mar-2006 6:35pm Tz (USA Style)
//$SITE['timeFormat'] = 'm/d/Y g:ia'; // USA format 03/31/2006 14:03
//$SITE['timeFormat'] = 'd/m/Y H:i'; // Euro format 31/03/2006 14:03
//$SITE['timeFormat'] = 'Y-m-d H:i'; // ISO format 2006-03-31 14:03
$SITE['timeOnlyFormat'] = 'g:ia'; // USA format h:mm[am|pm\
//$SITE['timeOnlyFormat'] = 'H:i'; // Euro format hh:mm (hh=00..23);
//$SITE['dateOnlyFormat'] = 'd-M-Y'; // for 31-Mar-2008 or 'j/n/Y' for Euro format
$SITE['dateOnlyFormat'] = 'd-M-Y'; // for 31-Mar-2008 or 'j/n/Y' for Euro format
Hi,
I am using the forecast in my saratoga template.
Unfortunately, the graph won't load anymore since a couple of days.
I noticed my php version changed to 8.1.17 (was 8.1.16) maybe that's why.
Forecast (https://www.westland-depoel.nl/vantagevue/ws/wx_lvn_metno.php)
TIA
. . .This is one of the numerous very small changes, also the thick lines, non-curved graphs a.s.o.
My days are a bit off underneath the graph.
I recall this was the case also in the previous version.
Is there a way to fix this.Yes, go to the previous release as described on the weewx-belchertown github pages.
My page below is generating a deprecated error. I am running PHP 8.2.1.
https://www.goblesweather.com/wx_lvn_wxsimD.php (https://www.goblesweather.com/wx_lvn_wxsimD.php)
Here is the error.
Deprecated: Function utf8_decode() is deprecated in /home/goblesweather/www/www/wsIncWxsimDHtml4.php on line 815
Thanks,
Chuck
<?php # ini_set('display_errors', 'On'); error_reporting(E_ALL); $ws_lang_missing = $ws_errors = $wsDebug = true; #echo '<!-- debug on -->'.PHP_EOL;
Could you please substitute English for the Dutch words as shown in the screenshot.
[ You are not allowed to view attachments ]
Thanks
Keith
langlookup|Windspeed|Windsnelheid|
Change that line to whatever text you want.langlookup|Windspeed|Windspeed|
When changing wsfct4/ files, use a decent script/code editor. Do not use MS-word or similar document editor.$use_old_version='10.3.3/';
$ws_mgraph_html .='<script src="https://code.highcharts.com/'.$use_old_version.'highcharts.js"></script>
Or download attached zip of the 4 scripts with the highchart changesNo data was retrieved for https://api.met.no/weatherapi/locationforecast/2.0/classic/?lat=50.0636&lon=18.2821
no forecast data can be retrieved, check the html for errors
Hi,There are two advices in the error message
I'm using the latest script pack that Wim has provided. Until a few days ago everything was working fine. Now the script returns me this information. Note that I did not change anything in the code.Code: [Select]No data was retrieved for https://api.met.no/weatherapi/locationforecast/2.0/classic/?lat=50.0636&lon=18.2821
no forecast data can be retrieved, check the html for errors
Maybe it's my hosting fault? Recently I had the impression that their network drive crashed and they were making a backup. However, all other scripts (from other authors) work. :???:
1. No data was retrieved for "link"
When you copy the link to your browser, the correct xml data is returned.
2. check the html for errors
What is the link to your website and to the forecast page so I can check the generated html?
The link to your website (from the globe in your avatar) is https://pogodarybnik.pl/ but that one does not work. ERR_CONNECTION_TIMED_OUT
I just installed the forecast script and have it up and running. However, I am running into a weird width issue where it appears one the forecast scripts is overriding my page width settings. Using the Saratoga templates, all my pages are set to 1250px. However, the forecast script seems to be setting the page width to 1000px and thus the forecast doesn't fit within the main-copy. I have tried modifying every width setting in the forecast scripts I could find but can't seem to find where it is setting that 1000px page width from. If you visit the link below, then compare the page width to any other page on my site, you can see the difference.
Link to forecast page: https://thorntonweather.com/wx_lvn_noaaD.php
Any help would be greatly appreciated.
Tony
$wsPageSize = 1000; // in pixels
to$wsPageSize = 1250; // in pixels
$mtb_styles['#page'] = 'width: 1250px';
I am having the same problem.
Did you find a solution yet?
Hi
My page is messing the weekdays
https://vejr.bloknet.dk/vejr_forcast/wsFctMetnoSmall4.php
I can't find out why
I have a page on another server and here is the weekday, can it be something with php ver.?
CB
I am having the same problem.Thanks for posting about this.
Did you find a solution yet?
$ws_mgraph_html .='<script src="https://code.highcharts.com/highcharts.js"></script>
change it to load a previous version$ws_mgraph_html .='<script src="https://code.highcharts.com/11.2/highcharts.js"></script>
Hi
My page is messing the weekdays
https://vejr.bloknet.dk/vejr_forcast/wsFctMetnoSmall4.php
I can't find out why
I have a page on another server and here is the weekday, can it be something with php ver.?
CBI am having the same problem.Thanks for posting about this.
Did you find a solution yet?
I am working on it since early this morning, but no "correct' solution yet.
It seems there are two problems occurring / noticed today.
A minor problem with the met.no data. But it was not noticed before as long as debug mode remains off.
The missing bottom part of the graphs with the week-days occurred with the latest high-charts version
-> Highcharts JS v11.3.0 (2024-01-10)
It is a .0 version but also two weeks old.
If there is a problem in the .js code, someone would have found it.
Moving back to an older version, removes this problem until I can find what to change in my high-charts code.
Line 874 in script wsIncMetnoHtml4.php version 4.12 2023-05-01 reads nowCode: [Select]$ws_mgraph_html .='<script src="https://code.highcharts.com/highcharts.js"></script>
change it to load a previous versionCode: [Select]$ws_mgraph_html .='<script src="https://code.highcharts.com/11.2/highcharts.js"></script>
Succes,
Wim
Changed this also in fct_yrno_popup.php on pwsDashboard.
I have been investigating but I have not found, or rather I have not known, that the default option when loading the script is the icons option. By default it starts me in forecast.The "default option" is set by adding class tabbertabdefault to the "block / tab" you want to show on top of the other tabs.
Thank you
{ echo '<div class="tabbertab tabbertabdefault" title="'.ws_translate ($wxsim_icons_tab_text).'">'.PHP_EOL;
Warning: Use of undefined constant Sevilla - assumed 'Sevilla' (this will throw an Error in a future version of PHP) in /home/meteosan/www/wsfct4/wsFctWxsimDPage.php on line 253Caused by a typing error. Change that line from
<meta name = " Keywords" content="weather, forecast '.' '.Sevilla.'" />
to<meta name = " Keywords" content="weather, forecast, Sevilla" />
Could you please tell me if there is any fix that I can apply to stop these errors occurringHi Keith,
and hence have no errors reported when the Norway forecast is accessed my website?Script: _metric_settings.php
Hi Keith,Could you please tell me if there is any fix that I can apply to stop these errors occurringHi Keith,
Thanks for the zip.
There are very strange errors, I have to investigate today how and what is causing this.
Hi WimThere are two causes for this warning:
This appeared when checking my website this morning:
Also since updating the wsIncMetnoHtml4.php script as requested, the times of "forecast data created at" and "next update" at page top right as well as the "forecast data created at &c" at bottom right do not appear.As we switched off the test-mode, the date/times are not shown according to the settings.
#-----------------------------------------------
# some yes / no settings
#-----------------------------------------------
# true = display loading time of this forecast
# false = do not display time info
$metno_times = false;