WXSIM "EWN-style"

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 :

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,


lastret.txt (105 KB)

sunmoon.php.txt (9.87 KB)