UTILITY - TIME

AviorEco features a dedicated cloud synchronization service to dynamically update its internal real-time clock (RTC), calculate accurate localized Sunrise/Sunset times, and handle Daylight Saving Time (DST) changes.

Rate Limiting (Throttling)

To ensure server efficiency, a strict 5-day cooldown applies per device for this endpoint. Only 1 synchronization request is permitted every 5 days; any subsequent attempts within this window will be automatically blocked by the gateway.

Recommended Execution Strategy

Because astronomical formulas (Sunrise/Sunset) and DST updates shift on a weekly timeline, it is highly recommended to trigger this synchronization via a scheduled system rule executed every Monday morning after 03:00 AM.


Execute an HTTP GET request via the AT#HTTP command to the following gateway endpoint:

https://contriveiot.eu/ts

Gateway Query Parameters

?imei=$N14

Dnamically retrieves and injects the device's 15-digit IMEI number.

&webid=$D13

Dynamically retrieves and injects the device's Web ID.

&tz=
(Priority) The IANA Timezone string (e.g., Europe/Rome). 
If specified, it overrides explicit offset settings.

&OFFSET=
(Fallback) The literal UTC offset in hours (e.g., 2 or -5.5)
Used only if the tz parameter is absent.

&lat=

The geographic Latitude coordinates of the installation site
e.g., 45.659192

&lon
The geographic Longitude coordinates of the installation site
e.g., 9.508016


Implementation Examples

The following examples assume that any injected system variables (e.g., $G01, $G06) contain accurate, consistent, and up-to-date values provided by the device's configuration environment.

Depending on your requirements, you can optimize the payload to request only specific parameters using internal system variables.

1. Standard Synchronization using IANA Timezone

This syncs the device clock and calculates DST settings based on the IANA Timezone database.

at#http=GET,https://contriveiot.eu/ts?imei=$N14&webid=$D13&tz=$G06


2. Full Synchronization (Clock, DST, and Astronomical Times) via Timezone

This syncs the device clock and calculates DST settings based on the IANA Timezone database.

at#http=GET,https://contriveiot.eu/ts?imei=$N14&webid=$D13&tz=$G06&lat=$G01&lon=$G02


3. Standard Synchronization using UTC Offset

Updates the device clock based on a raw numeric offset value (useful if IANA databases are not deployed).

at#http=GET,https://contriveiot.eu/ts?imei=$N14&webid=$D13&OFFSET=$G07


4. Full Synchronization (Clock, DST, and Astronomical Times) via UTC Offset

Updates the device clock via raw offset while calculating Sunrise/Sunset algorithms via geographic coordinates).

at#http=GET,https://contriveiot.eu/ts?imei=$N14&webid=$D13&OFFSET=$G07 &lat=$G01&lon=$G02


5. Astronomical Update Only (Sunrise / Sunset)

If the device clock is already trusted or managed separately, you can query only the local Sunrise and Sunset schedule by providing just the location parameters).

at#http=GET,https://contriveiot.eu/ts?imei=$N14&webid=$D13&lat=$G01&lon=$G02