WXSIM "EWN-style"

Hello,
I do not know why but until recently was working, now is no longer anything. I did not touch any files.
What may have happened?

https://www.meteosantangelo.it/wxsim1/forecast.php

Thank you

Thanks, Henkka! Finally it’s working. I have a test site here: http://runarweb.com/forecast_test.php It was the path that was the problem. You were right that I needed an absolute path for $path_to_lastret and $path_to_langfiles. They are now:

$path_to_langfiles = “/customers/0/a/0/runarweb.com/httpd.www/wxsim_ewn/wxsim/”;
$path_to_lastret = “/customers/0/a/0/runarweb.com/httpd.www/wxsim_ewn/wxsim/lastret.txt”;

After looking at it looks great. But I have some comments and questions:

  • In the Graphs section it’s difficult to see the precipitation amount when it rains several hours. The numbers overlap. Also there is no Y-axis for precipitation. Have you done any thinking about that?
  • Would it be possible to have the days at the X-axis, not only the time? It would make it easier to get an overview of each day.
  • I don’t quite get how the buttons on the bottom of the graps work? When I enter Graphs, Forecastgraph is marked and the graph is shown. Pressing Show whole forecastperiod shows that graph, but now both buttons are marked. Pressing Forecastgraph now nothing happens. Pressing Show whole forecastperiod switches between the 2 graph each second time.
  • Legends for Dewpoint and Feels Like are greyed out. Do you plan to show them?
  • Do you mean this to be a replacement for the 3-in-1 script? I don’t see 3-in-1 on your site anymore.

I just found out that I can click on Dewpoint and Feels Like to show them even if they are grayed out. Sorry!

In the Graphs section it's difficult to see the precipitation amount when it rains several hours. The numbers overlap. Also there is no Y-axis for precipitation. Have you done any thinking about that?

I know that. The “full” graph are not that good, i did the graph initially as daily as it gives more width per timestep and also fits better on narrow screens. Whole “EWN-forecast” design was made with mobile screens in mind.

Would it be possible to have the days at the X-axis, not only the time? It would make it easier to get an overview of each day.

It would if the days fits. The problem are narrow screens and how to (auto)detect if days fits or not

I don't quite get how the buttons on the bottom of the graps work? When I enter Graphs, Forecastgraph is marked and the graph is shown. Pressing Show whole forecastperiod shows that graph, but now both buttons are marked. Pressing Forecastgraph now nothing happens. Pressing Show whole forecastperiod switches between the 2 graph each second time.

The left button are actually a leftover from the orginal and could be removed from the WXSIM-version as it do nothing.

Legends for Dewpoint and Feels Like are greyed out. Do you plan to show them?

I see you figured them out :slight_smile: I left them hidden as default to keep the initial look clean.

Do you mean this to be a replacement for the 3-in-1 script? I don't see 3-in-1 on your site anymore.

Yes, i think so. Actually, my own WXSIM have had (and still have) problems with its accuracy with MAE’s well above 3C as worst, and it have came in mind a couple of times to scrape whole WXSIM from my site (and then discontinue my WXSIM-related scripts). So the interest about it haven’t been the best. But but…That haven’t happen yet :wink:

Hi guys,
i’ve an issue with main icon on wxsim ewn style script.
Main icon shows sunny with patches of fog but details icon shows rain.
The correct icon is rain because in lastret/plaintext there are amount of rain forecasted.

Short forecasts:

Details forecasts:

I’ve also attached lastret and plaintext files.
Any ideas?
Regards,

Alessandro


latest.txt (28.9 KB)

plaintext.txt (3.72 KB)

Nobody have this problem? … it seems rain icon doesn’t found correctly :frowning:

Alessandro

Sorry I must say I had a working forecast right from the box ! Only updatetime did not work.
Changed the whole paths to the (lastret)/datafiles and everything was oke.

Till I restarted the browser: no forecast(s) what ever I tried. Cookies?, settings?. Did a whole new instalation, suggestions here on the forum, etc but no luck

see att. + lastret.txt

Can I get an other suggestion/solution please

thanx so far !


lastret.txt (66.2 KB)

Hi,
It seems that “nordicweather.net” is down.
As a result I just realised that my “wxsim_2017.css” was referencing “//static.nordicweather.net/fonts/” so the icons do not display.
I already had the “//mylocalwebsite/wxsim/fonts/ubuntu*” files so just referenced them to local and then downloaded the :
/*!

  • Weather Icons 2.0.8
  • Updated September 19, 2015
  • Maintained at http://erikflowers.github.io/weather-icons
    */
    and did same with them “//mylocalwebsite/wxsim/fonts/weathericons-regular-webfont” all works fine now, I noticed many other users have not done this, so just a heads up.
    Kind Regards,

Thx! :slight_smile:

Is there any possibility to display an additional warning triangle, whenever the forecast indicates to severe weather conditions?

Hi,
As I have no live website, just thought I would share my mods.
WXSIM “EWN-style” incorporated into Meteotemplate as a Block as i have to use Lastret.txt due to DST issues with Latest.csv.
Image 1: More Button closed
Image 2: More Button open
Thanks Henkka and Jachym.
regards,


Hi if you are like me and prefer to see the Snow Cast highlighted in Blue on the “Overview” see code addition below;

The code provided already allows for this in the initial files, however all that is missing is a setting in the config.php

Add a new line in config.php : $snow1color = true;

that’s it…


Guys,

I’m having a problem with addition spacing being added in the top part of the table. http://www.bearsbythesea.co.uk/wxsimforecast2.php

I have used one of my standard templates and just used include (‘wxsim/forecast.php’); in order to ensure the paths are correct (all my web page address are in the root folder).

I’m guessing its a template issue, but I cant work out why it is doing this?

Andy pointers as to whats wrong?

Many thanks

Andy

By using that stand-alone script inside your template page there are two sets of head and body definitions.
You can check yourself by (example with Chrome browser) right-click select show source.
This is the end of your menu html directly followed by an extra <html head and body tags.


      </div><!-- end leftSidebar -->
</div><!-- end doNotPrint -->	
<!-- end of menubar -->
 
  <!DOCTYPE HTML>
<html><head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<link href="//static.nordicweather.net/css/leaflet-0.7.3.min.css" rel="stylesheet"/>
<link href="//static.nordicweather.net/css/bootstrap_ewn.css?2017.03" rel="stylesheet"/>
<link rel="stylesheet" href="css/wxsim_2017.css?2017.03" />
<link rel="stylesheet" href="css/weather-icons.min.css?2017.03" /> <style>
body {background: #fff;color: #555555;font-family: "Ubuntu","Lucida Grande",Verdana,Helvetica,sans-serif;font-size: 13px;font-weight:300;line-height:1.25em;margin:0}
:focus {outline:0}

I think for less a browser is confused and does not know what you want.

Solution:
Us an iFrame and use this url http://www.bearsbythesea.co.uk/wxsim/forecast.php as the link in the iframe.
Than both your saratoga page and the wxsim page are handled indepently and both will display correctly.

Wim

P.S. The blank lines come from this directive somewhere in the EWN code

<div style="clear:both"></div>

If used inside a template page it forces the remaining html to start below the menu.
It should read

<div style="clear:right"></div>

when used in a Saratoga template.
But as I do not have the script itself, I do not know where that html code is located.
And there can be multiple other influences between Saratoga CSS and EWN css, Better use an iframe in these cases.

Thank you Wim. Followed your advice and used an iframe. Working now :grinning:

hi
I’ve a problem about transltaion from english to italian.
I’ve tried many settings but teh problem persists.
I’m using PHP 5.6.3
Below is reported a part of config.php
Have you any ideas
Thanks in advance

$wxsimlocation = "Genova Molassana"; # Your location $latitude = 44.46; $longitude = 8.97; $tzabb = "Europe/Rome"; $datestyle = "d.m.Y"; $timeFormat = "d.m.Y H:i"; # Timeformat $updatehrs = array(3,5,8,11,14,17,20); # Hours when wxsim runs $updateminute = 47; # minutes past full hour for upload time $jqueryload = true; # Should we load JQuery? (Set to false if your site loads it by default) $bootstrapload = true; # Should we load Bootstrap? (Set to false if your site loads it by default) $mainwidth = "100%"; // Use 100% for responsivity

$path_to_langfiles = “lang/”;
$path_to_lastret = “lastret.txt”;
$path_to_dataphp = “./wxsim/”;
$path_to_js = “…/wxsim/js/”;
$path_to_css = “…/wxsim/css/”;

$wxsimversion = 2017.03; # internal version

this is the link of the page; http://www.meteo-molassana.info/wxtest1/wxsim/forecast.php

Afasol3

Hi
I’ve solved the previous problem (added $lang=“it”; into the config.php ) but now have a new problem about precipitation.
Forecast precipitation for Wednesday is over 60mm but no value appears (NaN) and no mention is reported into the description section. (see attachment).
Have you any suggestion?
Thanks in advance
Afasol3


Hi Afasol,
i’ve already wrote to developer but i have no answer yet.
I’ve the same issue when rain forecasted is >50mm

https://i.imgur.com/9BvbcTR.png

Cheers,

Alessandro

Hello,

For several weeks I have been trying to configure the EWN forecast version for Wxim, but it does not work for me !!

I’m giving it a lot of thought and I can not find the solution, could someone help me, please?

The forecast page looks like this: http://meteohila2.esy.es/wxsim1/forecast.php

nothing appears!

I have installed the WXSIM folder in the root and I had to rename it with WXSIM1, since I have another folder with the same name

Next I indicate the link of my txt files:
[ http://meteohila2.esy.es/pronostico%20mxsim/lastret.txt](http:// http://meteohila2.esy.es/pronostico%20mxsim/lastret.txt)
http://meteohila2.esy.es/pronostico%20mxsim/plaintext.txt

Here I indicate my configuration of the config file:

$ wxsimlocation = “Xert, Valenciana”; # Your location
$ latitude = 40.52;
$ longitude = 0.15;
$ tzabb = “Europe / Madrid”;
$ datestyle = “d.m.Y”;
$ timeFormat = “d.m.Y H: i”; # Timeformat
$ updatehrs = array (5,10,15,20); # Hours when wxsim runs
$ updateminute = 14; # minutes past full time for upload time
$ jqueryload = true; # Should we load JQuery? (Set to false if your site loads it by default)
$ bootstrapload = true; # Should we load Bootstrap? (Set to false if your site loads it by default)
$ mainwidth = “100%”; // Use 100% for responsivity

$ path_to_langfiles = “wxsim / lang /”;
$ path_to_lastret = “/ home / u291478535 / public_html / forecast mxsim / lastret.txt”;
$ path_to_dataphp = “/ home / u291478535 / public_html / wxsim1 / wxsim”;
$ path_to_js = “js /”;
$ path_to_css = “css /”;

$ wxsimversion = 2017.03; # internal version

$ adblock = ‘’; # Box for showing ads on forecast front-tab.

IMPORTANT! Units in use, temperature, precip, wind, pressure, snowdepth, visibility

$ uoms = array (‘C’, ‘mm’, ‘kmh’, ‘hPa’, ‘cm’, ‘km’);

$ uoms = array (‘C’, ‘mm’, ‘km / h’, ‘hPa’, ‘cm’, ‘km’);

$ uoms = array (‘F’, ‘in’, ‘mph’, ‘inHg’, ‘in’, ‘my’);

Experimental POP-multiplier (POP in lastret * this value = POP).

Seems POP in lastret have low values ​​between 0 and 10. For “better” value of we multiple it with this value.

Change if needed.

$ popmulti = 10;

I do not understand too much about configurations, but I think the links in the files are fine …

Can you review it for me?

Next I indicate my url of the file data.php, where the errors can be observed:
http://meteohila2.esy.es/wxsim1/wxsim/data.php

thanks in advance,

Hi hila,

Please remove the spaces in the path of those lines. I just reproduced the cycling error, when I added spaces to path_to_js. Maybe that could be part of the problem.

EDIT: I also just noticed that your lastret time settings are ending on xx:58 and xx:28. I think that wxsim expects the time settings xx:00 and xx:30, to process futher with the script. But that is easy to fix. Please add in the data.php on the line 80

||is_substr($t,':00:58')||is_substr($t,':28'))

Maybe it will also work when you just add the first part with :00:58 or the :28 part, it