Synchronizing Timezones¶
In order to set its timezone a device must send a getTimezone to the backend. Then it will answer with a syncTimezone payload.
Get Timezone¶
Payload¶
{
"event": "getTimezone",
"timestamp": "[TIMESTAMP]",
"uid": "[PAYLOAD_UID]",
"modules": [
{
"id": "[MODULE_UID]",
"device": {}
}
]
}
Sync Timezone¶
Payload¶
{
"action":"syncTimezone",
"timestamp":"[TIMESTAMP]",
"uid": "[PAYLOAD_UID]",
"modules": [
{
"id":"[MODULE_UID]",
"device":{
"timezone": "[TIMEZONE]",
"timezoneOffset": [TIMEZONE_OFFSET], # integer value for the offset in seconds from UTC. For example Asia/Shanghai is -28800
"shortTimezone":"[SHORT_TIMEZONE]"
}
}
]
}