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

Randall75

  • Storm
  • *****
  • Posts: 1332
  • 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: 3127
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
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]
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system