Author Topic: Sunrise and Sunset templete HELP  (Read 63 times)

Randall75

  • Storm
  • *****
  • Posts: 1265
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 OS High Sierra 10.13.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Sunrise and Sunset templete HELP
« on: November 28, 2019, 03:57:30 PM »
Hi WeatherCaters
 1st Happy Thanksgiving
Now for the problem:
Can't get the Sunrise SUNRISELOCAL$ and Sunset SUNSETLOCAL$ to work correctly on my website anymore.
Is anyone else using this and if so is it working OK for you
Or can someone tell me how to correct it
Sunrise is saying 8:09 PM and Sunset is saying 6:32 AM
I remove it from my web page until I can get it corrected
thanks for any help


cheers [cheers1]


xairbusdriver

  • Storm
  • *****
  • Posts: 2392
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.14.4/WC 3.0.4
Re: Sunrise and Sunset templete HELP
« Reply #1 on: November 28, 2019, 05:19:23 PM »
I'm just using the SUNRISELOCAL$ and SUNSETLOCAL$ WC tags in an html page that is parsed by the app every 2 minutes. For example:
Quote
<?php echo "<td class='left'>".strtolower('SUNSETLOCAL$'); ?>
PHP on the server then formats it as I want.

Only thing I can suggest is to be sure your computer is updating the time properly. System Prefs/Dat & Time->Date & Time tab:"Set date and time automatically:".
Perhaps also double-check your Lat-Long location. I don't see any place to set the offset from UTC in WC. [banghead]