Bashy, check the lastret.txt and be sure it have 00:00 timestamps. If you post your lastret.txt can i run it in m y dev-version and see if there are any oddities.
Btw. I have rain-units working on my dev-version now.
I think i will also get it so it reads the default units from $uoms
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
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
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
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)
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
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.
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.
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,
var snowset="cm",baroset="hPa",wiset="ms",piset="mm",tiset="c";
so it seems it reads them from some other file.
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.
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.
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.
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.