2020-02-01, 11:33 AM
(2020-01-31, 06:47 PM)jamos.tan@gmail.com Wrote: Hi Guys,
I have a python script which reads voltage values through a serial connection.
I'd like to have these values available as a signalk path.
Is such a thing possible? If so, I can provide the details of the script.
Kind regards,
Jamos
This works on an ESP32 sending signalk over wifi, you might be able to adapt so it sends over serial>
Quote:def insertIntoSigKdata(self, path, value):
_sigKdata = {
"updates": [
{"values":[]
}]}
_sigKdata["updates"][0]["values"].append( {"path":path,
"value": value
})
self.sendToUDP(ujson.dumps(_sigKdata))