This request returns a Time Status data structure for the CueServer. This structure contains detailed information about the current time, date, astronomical features, time zone and more.

URL:

/get.cgi?req=ts

Response:

The following data structure will be returned by this request.

typedef struct TimeStatus {
    uint16_t            signature;              // Signature = 'CS'
    int16_t             version;                // Version = 0x0001 (or negative error code)

    uint32_t            seconds;                // Current time seconds
    uint8_t             day;                    // Day (0..30)
    uint8_t             month;                  // Month (0..11)
    uint8_t             year;                   // Year (0 = 1900, 255 = 2155)
    uint8_t             weekday;                // Weekday (0 = Sunday, 1 = Monday, etc.)
    uint8_t             dst;                    // DST (0 = No, 1 = Yes)
    uint8_t             light;                  // Current light (0 = Dark, 1 = Light)
    uint8_t             reserved[2];            // -

    float               offset;                 // Offset from GMT/UTC (Hours)
    float               latitude;               // Latitude
    float               longitude;              // Longitude
    uint32_t            sunriseSeconds;         // Sunrise seconds
    uint32_t            sunsetSeconds;          // Sunset seconds

    char                tzAbbreviation[8];      // Time zone abbreviation ("EST") (null-terminated)
    char                tzName[32];             // Time zone full name ("Americas/New York") (null-terminated)
} TimeStatus;

 
Errors:

This response does not return any error codes.