SK
Signal K•3mo ago
PaddyB

PaddyB - not sure where this should live, serve...

not sure where this should live, server seems as good a place as any.. Any thoughts on how to get data from sigK to an esp32 running micropython? I want to display sigk data on a 4 line lcd attached to an esp32, at the moment it does> url = "http://10.42.0.1:3000/signalk/v1/api/vessels/urn:mrn:imo:mmsi:235090919/environment/wind/speedTrue/value" response = urequests.get(url) #returns a string for each metric which seems a bit long winded. Previously used mqtt which was quite involved as well. Any other suggestions? Thought about node-red on the Pi creating a delta object with each data of interest in there then just do one urequests.get for that? Or..🤔🤔🙂
6 Replies
Teppo Kurki
Teppo Kurki•3mo ago
Can micropython do websockets?
Tony
Tony•3mo ago
Sensesp has a subscription class https://signalk.org/SensESP/generated/docs/classsensesp_1_1_s_k_listener.html Under the hood is a web socket client like Teppo suggested
Владимир Калачихин
Previously, a normal socket worked on some port. Now it doesn't?
Teppo Kurki
Teppo Kurki•3mo ago
Websockets is the preferred way, because it is more versatile (https, authentication, features). No changes to SK over TCP
Want results from more Discord servers?
Add your server