Sunrise and Sunset Times Are Off Using Scheduled Events

Sunrise and Sunset Times Are Off Using Scheduled Events

SmartConnect is available with SmartServer 4.2 and higher. 

The SmartServer uses Civil Dawn and Civil Dusk for sunrise and sunset, respectively, as Civil times are reportedly more accurate for street light applications. The Calendar widget only shows a fixed sunrise and sunset time. If astronomical sunrise and sunset times are off when using scheduled events, then follow the steps below.

  1. Determine actual sunrise (Civil Dawn) and sunset (Civil Dusk) times. 

    1. With SmartServer 3.62 and higher, the /var/log/supervisor/scheduler.log shows each day, or after power up, the daily Civil Dawn and Civil Dusk in local time.

    2. If the times are off, check latitude and longitude using CMS Devices widget. Click the View All Properties action to see latitude and longitude.

      1. Using the CMS:

        1. Assign the device to a context.

        2. Export devices, modify the devices.csv to include latitude or longitude, and re-import the file.

      2. Using REST or MQTT API to add latitude and longitude.

    3. Verify that the SmartServer is in the correct timezone by looking CMS Devices widget → Segment Controllers tab.

    4. Using console/SSH, check current time by entering timedatectl.