Hello,
I'm trying to send a timestamp of local time including daylight saving to a remotes ESP32. I've attached the flow of my attempt, but there is no 'translation' of the timestamp from UTC to local Date/Time. The remote ESP32 is expecting a timestamp in local time. Can someone advise me on why this does not work? Cheers
[
{
"id": "56ca8adc78641e82",
"type": "tab",
"label": "Test date-time",
"disabled": false,
"info": "",
"env": []
},
{
"id": "20a17f5c17fe994c",
"type": "inject",
"z": "56ca8adc78641e82",
"name": "RTC_Update",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "RTC_Update",
"payload": "",
"payloadType": "date",
"x": 130,
"y": 620,
"wires": [
[
"6b22699e6e182f2c",
"f420e201ee57a541"
]
]
},
{
"id": "127d320435079b7d",
"type": "mqtt out",
"z": "56ca8adc78641e82",
"name": "",
"topic": "Security/Environment/RTC_Update",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "caada23d7349b8b3",
"x": 900,
"y": 480,
"wires": []
},
{
"id": "d95f85658d1ab5bf",
"type": "debug",
"z": "56ca8adc78641e82",
"name": "debug 5",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 740,
"y": 680,
"wires": []
},
{
"id": "6b22699e6e182f2c",
"type": "debug",
"z": "56ca8adc78641e82",
"name": "debug 6",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 380,
"y": 680,
"wires": []
},
{
"id": "74b05786c00fde1d",
"type": "moment",
"z": "56ca8adc78641e82",
"name": "",
"topic": "/Security/Environment/RTC_Update",
"input": "",
"inputType": "date",
"inTz": "Europe/London",
"adjAmount": 0,
"adjType": "days",
"adjDir": "add",
"format": "",
"locale": "en-US",
"output": "CurrentDateTime",
"outputType": "global",
"outTz": "Australia/Adelaide",
"x": 540,
"y": 500,
"wires": [
[
"127d320435079b7d",
"d95f85658d1ab5bf"
]
]
},
{
"id": "f420e201ee57a541",
"type": "ui_button",
"z": "56ca8adc78641e82",
"name": "",
"group": "3512e6ac9e794606",
"order": 8,
"width": 0,
"height": 0,
"passthru": true,
"label": "RTC_Update",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "",
"payloadType": "date",
"topic": "topic",
"topicType": "msg",
"x": 270,
"y": 500,
"wires": [
[
"74b05786c00fde1d"
]
]
},
{
"id": "caada23d7349b8b3",
"type": "mqtt-broker",
"name": "MQTT Broker",
"broker": "192.168.68.102",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "3512e6ac9e794606",
"type": "ui_group",
"name": "Environment",
"tab": "52741c56e347aec9",
"order": 4,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "52741c56e347aec9",
"type": "ui_tab",
"name": "Security",
"icon": "dashboard",
"order": 1,
"disabled": false,
"hidden": false
}
]




