Heyo, not sure how to get the correct formatting from the node-red-contrib-tesla to node-red-node-geofence.
Here's the output of the node-red-contrib-tesla driveState command:
{"_msgid":"15f2c9c.3bb0a36","payload":{"gps_as_of":1620781503,"heading":94,"latitude":xxxx,"longitude":-xxxx,"native_latitude":xxxx,"native_location_supported":1,"native_longitude":-xxxx,"native_type":"wgs","power":0,"shift_state":null,"speed":null,"timestamp":1620781574744},"topic":""}
I believe the payload.latitude & payload.longitude need to be msg.location.lat & msg.location.lon so I put the below into a change rule but that doesn't seem to have done anything.
Here's the output of the change rule:
{"_msgid":"15f2c9c.3bb0a36","payload":{"gps_as_of":1620781503,"heading":94,"latitude":xxxx,"longitude":-xxxx,"native_latitude":xxxx,"native_location_supported":1,"native_longitude":-xxxx,"native_type":"wgs","power":0,"shift_state":null,"speed":null,"timestamp":1620781574744},"topic":""}
I'm quite new to using Node-RED and not good with any type of JSON so was hoping someone here could help.
Thanks!