cloudy cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,682
  • 150 mls Candeglia (Pt), Tuscany, Italy
  • OS/Browser:
  • Win NT 10.0
  • Chrome 56.0.2924.87
    • Meteopistoia.it
Re: WXSIM "EWN-style"
« Reply #30 on: February 15, 2017, 01:59:40 PM »
Ok, and how can you solve? It's possible configure the file "config.php" to be able to put km/h defalut?
Thank you

No, you can't configure config.php to do that.
You should un-checked "cookies and other data..." in navigation data menu on chrome browser ;)
Cheers,



Alessandro

Offline hcorrin

  • Posts: 1,180
  • Ballaugh Isle of Man GB
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Ballaugh Weather
Re: WXSIM "EWN-style"
« Reply #31 on: February 15, 2017, 03:03:01 PM »
Hi
tried $path_to_langfiles = "lang/";   the button still work

their is not a lang folder in the wxsim folder only lang info is in the config file it's self

the lastret.txt is in the root folder  http://ballaugh.no-ip.biz:2082/lastret.txt

the local server is a synology 214  with web server and the root folder I load into is called web

I tried        $path_to_lastret = "http://ballaugh.no-ip.biz:2082/lastret.txt";
also   $path_to_lastret = "http://ballaugh.no-ip.biz:2082/web/lastret.txt"; neither changed the top updated time from 01.01.1970 01:00 to the correct value
only $path_to_lastret = "../lastret.txt";  works and gives the correct date and time for the last updated lastret.txt file in the root folder

Harold

Offline weatherc

  • Posts: 1,977
  • Salo, Finland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 51.0
    • Weatherstation Salo,FI
Re: WXSIM "EWN-style"
« Reply #32 on: February 15, 2017, 08:39:32 PM »
Thanks, here ya go, knowing me, it will be a rookie mistake ;) but this does work for your
other scripts :)

It showed 9 days on my dev-version.  :)

Offline weatherc

  • Posts: 1,977
  • Salo, Finland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 51.0
    • Weatherstation Salo,FI
Re: WXSIM "EWN-style"
« Reply #33 on: February 15, 2017, 09:19:07 PM »
Feel free to test the updated zip :)

- Default units should be read from $uoms
- Possibility to set rain-unit from the unit-gear

// Henkka

Offline SteveFitz1

  • Posts: 141
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
    • Tyler Texas Weather
Re: WXSIM "EWN-style"
« Reply #34 on: February 15, 2017, 10:16:58 PM »
Henkka, this is great. All the units are now working as defined by $UOM. Thanks for doing this.

There does appear to be one issue. For the last several days at the end of the Carousel Forecast, it is showing 14-plus inches of rain. This is far greater than it should be or what lastret.txt is showing. My webpage is here: http://tylertexasweather.com/ttwfcast4.htm and the current lastret.txt is here: http://tylertexasweather.com/lastret.txt

Thanks,

Steve
« Last Edit: February 16, 2017, 05:35:48 PM by SteveFitz1 »

Offline weatherbee

  • Posts: 695
  • Sherman, Ct.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 56.0.2924.87
    • Sherman Ct. Weather
Re: WXSIM "EWN-style"
« Reply #35 on: February 16, 2017, 04:49:33 PM »
Mone is looking pretty good with the latest update but I can't get the weather description to come up.  Only says null.
You can see here: http://www.shermanctweather.org/ewn/wxsim/forecast.php
I've attached a copy of my lastret.txt
Thanks,
Tom
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2


Offline weatherc

  • Posts: 1,977
  • Salo, Finland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 51.0
    • Weatherstation Salo,FI
Re: WXSIM "EWN-style"
« Reply #36 on: February 17, 2017, 07:38:55 PM »
There does appear to be one issue. For the last several days at the end of the Carousel Forecast, it is showing 14-plus inches of rain. This is far greater than it should be or what lastret.txt is showing. My webpage is here: http://tylertexasweather.com/ttwfcast4.htm and the current lastret.txt is here: http://tylertexasweather.com/lastret.txt

Great with a lastret.txt in US-units to test with :)
I allready found the 14+ inches issue.
Btw. enable relative humidity on WRET (dewpoint are else wrong) ;)

Offline weatherc

  • Posts: 1,977
  • Salo, Finland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 51.0
    • Weatherstation Salo,FI
Re: WXSIM "EWN-style"
« Reply #37 on: February 17, 2017, 08:07:09 PM »
Zip updated with fix for the inch-rain :)

Quote
Mone is looking pretty good with the latest update but I can't get the weather description to come up.  Only says null.
You can see here: http://www.shermanctweather.org/ewn/wxsim/forecast.php
I've attached a copy of my lastret.txt

Could you post your plaintext.txt?

Offline SteveFitz1

  • Posts: 141
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
    • Tyler Texas Weather
Re: WXSIM "EWN-style"
« Reply #38 on: February 17, 2017, 08:38:48 PM »
Henkka,

I tried the latest update. The good news is that it did fix the excessive rain amounts. The bad news is that it broke the temperatures. It's now taking the Farenheit temperature and assuming it is Celsius, then converting it to Farenheit. So my 66 degrees becomes 151 degrees. You'll see it here: http://tylertexasweather.com/ttwfcast4.htm.

Also, there is a problem with the rain totals in the table. It appears the rain amount listed is for perhaps 1 hour when it should be a 12-hour total for either the day or night. For example, we are expecting rain Sunday and Monday. Currently the table is showing 0.01 in on Sunday, 0.03 in on Sunday night, and 0.01 in on Monday. What it should read is something like, for example, 0.25 in on Sunday, 0.75 in on Sunday night, and 0.25 in on Monday.

FYI, I've updated my WRET with humidity. You can see my current lastret.txt here: http://tylertexasweather.com/lastret.txt

Steve

Offline weatherc

  • Posts: 1,977
  • Salo, Finland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 51.0
    • Weatherstation Salo,FI
Re: WXSIM "EWN-style"
« Reply #39 on: February 17, 2017, 09:15:58 PM »
Quote
I tried the latest update. The good news is that it did fix the excessive rain amounts. The bad news is that it broke the temperatures. It's now taking the Farenheit temperature and assuming it is Celsius, then converting it to Farenheit. So my 66 degrees becomes 151 degrees. You'll see it here: http://tylertexasweather.com/ttwfcast4.htm.

Check the $uoms in config.php, seems to be metric.

Offline SteveFitz1

  • Posts: 141
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
    • Tyler Texas Weather
Re: WXSIM "EWN-style"
« Reply #40 on: February 17, 2017, 09:41:48 PM »
Check the $uoms in config.php, seems to be metric.

Henkka,

The $uoms looks correct to me.
Code: [Select]
#$uoms = array('C','mm','km/h','hPa','cm','km');
$uoms = array('F','in','mph','inHg','in','mi');

Steve

Offline hrvistaweather

  • Posts: 223
  • Franklin, Huon Valley Southern Tasmania
  • OS/Browser:
  • Win NT 6.3
  • Chrome 57.0.2987.54
    • Huon River Vista Weather - South Franklin - Tasmania
Re: WXSIM "EWN-style"
« Reply #41 on: February 18, 2017, 12:39:03 AM »

Hmmm...The moon-stuffs comes from the 2 php-scripts (MoonPhase.php and moon-rise-set.php) what i found on the net and they works based on the coordinates. I have no idea else than have you tryed to fiddle with the $latitude in config.php?
Hi Henkka,
Sorry late response, checked all Lat /Lon settings all correct.
I did some searching on the net and found those 2 scripts to be slightly flawed, also checked your site and TylerTexas (both showing incorrect Moon (Rise/Set) Times also.
Not sure what the answer is.

Also just noticed that UV is not utilized, would UV be difficult to add as it was in the 3in1.
Kind regards,
Tony

Davis Vantage Pro 2 Plus - FARS, Cumulus MX, 2 Soil Temp/Moist Solar/Rad.
Back Online : 2017-11-01

Offline weatherc

  • Posts: 1,977
  • Salo, Finland
  • OS/Browser:
  • Win NT 10.0
  • Firefox 51.0
    • Weatherstation Salo,FI
Re: WXSIM "EWN-style"
« Reply #42 on: February 18, 2017, 08:23:50 PM »
Quote
The $uoms looks correct to me.

Yep. But source-code of http://tylertexasweather.com/wxsim-ewn/forecast.php have theese:
Code: [Select]
var snowset="cm",baroset="hPa",wiset="ms",piset="mm",tiset="c";
so it seems it reads them from some other file.

Quote
I did some searching on the net and found those 2 scripts to be slightly flawed, also checked your site and TylerTexas (both showing incorrect Moon (Rise/Set) Times also.
Not sure what the answer is.

I haven't "quality-chekced" them so it its fully possible. They was the only one i found for the moon-stuffs. I someone finds any better working with PHP will i happily do a switch.

Quote
Also just noticed that UV is not utilized, would UV be difficult to add as it was in the 3in1.

It shouldn't be difficult. Why they are not there are that there are no UV-data in the EWN forecast-data so there was no UV-row in the orginal script + also that no UV at this time of the year up here so been difficult to test it.

// Henkka

Offline hrvistaweather

  • Posts: 223
  • Franklin, Huon Valley Southern Tasmania
  • OS/Browser:
  • Win NT 6.3
  • Chrome 57.0.2987.54
    • Huon River Vista Weather - South Franklin - Tasmania
Re: WXSIM "EWN-style"
« Reply #43 on: February 18, 2017, 10:45:21 PM »

I haven't "quality-chekced" them so it its fully possible. They was the only one i found for the moon-stuffs. I someone finds any better working with PHP will i happily do a switch.

It shouldn't be difficult. Why they are not there are that there are no UV-data in the EWN forecast-data so there was no UV-row in the orginal script + also that no UV at this time of the year up here so been difficult to test it.

// Henkka

Hi Henkka,
Not sure if I can help with an alternative script - I have used the following (attached: sunmoon.php.txt) in the past which is returns correct times, though not sure if you could adapt it.

Should return an array similar to this :
Code: [Select]
Array ( [solarNoon] => DateTime Object ( [date] => 2017-02-19 13:27:22.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [nadir] => DateTime Object ( [date] => 2017-02-19
 01:27:22.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [sunrise] => DateTime Object ( [date] => 2017-02-19 06:39:16.000000 [timezone_type] => 3 [timezone] => Australia/Hobart )
 [sunset] => DateTime Object ( [date] => 2017-02-19 20:15:29.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [sunriseEnd] => DateTime Object ( [date] => 2017-02-19 06:42:19.000000
 [timezone_type] => 3 [timezone] => Australia/Hobart ) [sunsetStart] => DateTime Object ( [date] => 2017-02-19 20:12:26.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [dawn] => DateTime
 Object ( [date] => 2017-02-19 06:09:18.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [dusk] => DateTime Object ( [date] => 2017-02-19 20:45:27.000000 [timezone_type] => 3 [timezone]
 => Australia/Hobart ) [nauticalDawn] => DateTime Object ( [date] => 2017-02-19 05:33:00.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [nauticalDusk] => DateTime Object ( [date] => 2017-
02-19 21:21:44.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [nightEnd] => DateTime Object ( [date] => 2017-02-19 04:54:09.000000 [timezone_type] => 3 [timezone] => Australia/Hobart )
 [night] => DateTime Object ( [date] => 2017-02-19 22:00:36.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [goldenHourEnd] => DateTime Object ( [date] => 2017-02-19 07:17:45.000000
 [timezone_type] => 3 [timezone] => Australia/Hobart ) [goldenHour] => DateTime Object ( [date] => 2017-02-19 19:37:00.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) )

Array ( [fraction] => 0.48381924324166 [phase] => 0.75515139425707 [angle] => 1.7675452111715 )

Array ( [moonrise] => DateTime Object ( [date] => 2017-02-19 00:08:07.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) [moonset] => DateTime Object ( [date] => 2017-02-19
 14:31:06.000000 [timezone_type] => 3 [timezone] => Australia/Hobart ) )

Also: That would be excellent if we could get the UV included, if it is on any assistance I have (attached my : lastret.txt) which always has ( UVI and S.IR ) here in Tasmania.

Kind regards,
« Last Edit: February 18, 2017, 11:27:32 PM by hrvistaweather »
Tony

Davis Vantage Pro 2 Plus - FARS, Cumulus MX, 2 Soil Temp/Moist Solar/Rad.
Back Online : 2017-11-01

Offline weatherbee

  • Posts: 695
  • Sherman, Ct.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 56.0.2924.87
    • Sherman Ct. Weather
Re: WXSIM "EWN-style"
« Reply #44 on: February 18, 2017, 11:00:10 PM »
I have downloaded latest version and it's mostly working.  It can be seen here:
http://www.shermanctweather.org/ewn/wxsim/forecast.php

My only problem is I can't get description to work. I'm not sure if that has anything to do with the folder "lang".
My lastret can be seen here:
http://www.shermanctweather.org/lastret.txt

I haven't really figured out where that folder "lang" comes from.
Thanks
Tom
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2