cloudy cloudy

Author Topic: WXSIM "EWN-style"  (Read 25833 times)

0 Members and 1 Guest are viewing this topic.

Offline PeeGee

  • Posts: 17
  • Leudal, Netherlands
  • OS/Browser:
  • Win NT 10.0
  • Firefox 63.0
    • Meteo Leudal Limburg
Re: WXSIM "EWN-style"
« Reply #165 on: December 07, 2018, 12:22:27 PM »
 Hi all,
 @Henkka thanks for the nice script  :D
The following occurs in the table see the column precipitation.
The precipitation value is in some lines with 14 digits after the point see photo. Can I solve it somewhere?

Link to the WXsim forecast: http://www.leudalweer.nl/wxsimnew/forecast.php
 
Thanks for your advice.

Peter.
    

Offline bussez

  • Posts: 13
  • OS/Browser:
  • Android 7.0
  • Chrome 71.0.3578.99
Re: WXSIM "EWN-style"
« Reply #166 on: January 15, 2019, 11:00:25 AM »
I have problems with this script could you help?
Link forecast.php
www.meteostroncone.info/forecast.php
www.meteostroncone.info/short.php
www.meteostroncone.info/graph.php
Thanke you!!

Offline hrvistaweather

  • Posts: 286
  • Tasmania
  • OS/Browser:
  • Win NT 10.0
  • Chrome 73.0.3683.103
Re: WXSIM "EWN-style"
« Reply #167 on: May 01, 2019, 11:12:40 PM »
Hi,
With regards the multiple decimals in 'pre' ((prec)precipitation) on some lines.
It bugged me for ages so found a fix : In "wxsim_frc_2017.js" around line ("198").

Replace :
Code: [Select]
if(item.prec>0&&item.prec<1){pre=item.prec;}else{pre=Math.round(item.prec);}

With :

Code: [Select]
if(item.prec>0&&item.prec<1){pre=item.prec.toFixed(1);}else{pre=item.prec.toFixed(1);}

And I do prefer to see the decimal point value rather than rounded to none.

Kind Regards,
« Last Edit: May 02, 2019, 05:06:12 AM by hrvistaweather »
Tony

Offline PeeGee

  • Posts: 17
  • Leudal, Netherlands
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Meteo Leudal Limburg
Re: WXSIM "EWN-style"
« Reply #168 on: May 02, 2019, 05:06:05 PM »
Hi Tony,

It's been a while since I have asked the question on this forum.
So you can see that there is ever an answer to your question. :lol:
Fine is it that I get an answer from someone who lives 16.832 km away from me.
Thanks for your help Tony. It works! :D
 
Greetings from the Netherlands,

Peter.
    

Offline hrvistaweather

  • Posts: 286
  • Tasmania
  • OS/Browser:
  • Win NT 10.0
  • Chrome 73.0.3683.103
Re: WXSIM "EWN-style"
« Reply #169 on: May 02, 2019, 09:55:08 PM »
Hi Peter,
 :lol: I'm glad it worked for you.
Kind regards from the Apple Isle Tasmania.
Tony

 

cumulus