cloudy cloudy

Author Topic: Alternative ajax-dashboard6 problem  (Read 84 times)

0 Members and 1 Guest are viewing this topic.

Offline blainec

  • Global Moderator
  • Posts: 392
  • Calgary, Ab.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Weather YYC
Alternative ajax-dashboard6 problem
« on: April 22, 2019, 05:31:32 AM »
I just installed the new dashboard. I noticed the sunset and sunrise times appear to be in UTC. I would like to have this in local time.

Oh BTW, I am in tz -7

Offline saratogaWX

  • Global Moderator
  • Posts: 5,904
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Saratoga Weather
Re: Alternative ajax-dashboard6 problem
« Reply #1 on: April 22, 2019, 02:37:50 PM »
That is not the dashboard per se, it's your testtags.php
Quote
$time =  '08:31 AM';   // current time
$date =  '22/4/2019';   // current date
$sunrise =  '3:14 pm';   // sun rise time (make sure you have the correct lat/lon
//                   in view/sun moon)
$time_minute =  '31';   // Current minute
$time_hour =  '08';   // Current hour
$date_day =  '22';   // Current day
$date_month =  '04';   // Current month
$date_year =  '2019';   // Current year
$monthname =  'April';   // Current month name
$dayname =  'Monday';   // Current day name
$sunset =  '5:30 am';   // sunset time
It may be your lat/long setup in WD that is causing the issue.
Quote
$stationlatitude =  '051:06:43';   // Latitude (from the sun moon rise/set setup)
$stationlongitude =  '-113:57:21';   // Longtitude (from the sun moon rise/set setup)
I think the longitude should not be negative in the Sun/Moon setup -- negative there is for East of GMT, while positive is West of GMT.

My equivalent settings shows (for Saratoga)
Quote
$stationlatitude =  '037:16:28';   // Latitude (from the sun moon rise/set setup)
$stationlongitude =  '0122:01:23';   // Longtitude (from the sun moon rise/set setup)
change the longitude setting in WD and the problem should be resolved.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates