Guys,
Taking a reading in through MQTT and trying to reformat the time into Sydney Australia format with date and time
DD/MM/YY HH:MM (AM/PM Format)
Here is the debug output of the MQTT in
The first one is with no formatting - just msg.payload, the 2nd one i am trying various combinations of moment and do not seem to be getting anywhere - any knowledgable people able to take a look please ?
[{"id":"17c3e857.ecfd48","type":"mqtt in","z":"65c8a789.964be8","name":"Last Update Time","topic":"blueriiot/pool_b6744e50-f056-44d7-85d6-e085cacab537/last_measurement/state","qos":"2","datatype":"utf8","broker":"8c5be0a1.64904","x":280,"y":180,"wires":[["7b716ec.710949","a2f8f465.3bc6d8"]]},{"id":"7b716ec.710949","type":"moment","z":"65c8a789.964be8","name":"Format Time","topic":"","input":"","inputType":"msg","inTz":"Australia/Sydney","adjAmount":0,"adjType":"days","adjDir":"add","format":"","locale":"en_AU","output":"","outputType":"msg","outTz":"Australia/Sydney","x":530,"y":200,"wires":[["9720f50f.10e618"]]},{"id":"9720f50f.10e618","type":"debug","z":"65c8a789.964be8","name":"Last Update Time","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":750,"y":180,"wires":[]},{"id":"a2f8f465.3bc6d8","type":"debug","z":"65c8a789.964be8","name":"Last Update Time (no moment)","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":790,"y":140,"wires":[]},{"id":"8c5be0a1.64904","type":"mqtt-broker","z":"","name":"MQTT-On-Dev","broker":"172.16.100.36","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
Thanks
regards
Craig