This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to read data from SignalK using ESP32
#1
Writing into SignalK is easy. I need to read the status of some paths to enable/disable automation routines in ESP32s.
Example: one ESP32 has an automated routine to run a pump every x amount of time, and check current draw and rpm. I want it to run only if a signalk path has a specific value, like environment. AutoOK.status= 12.
I could not find any code yet that can read this data.
Thanks for anything that can point me in the right direction.
Reply
#2
You would normally send a subscription to the server so that you are notified any time that value changes.
Reply
#3
I use mqtt & node red.
Reply
#4
For the record, it was quite easy using FloatSKListener from the SensESP setup
https://github.com/SignalK/SensESP
Reply
#5
You can find how to read from SignalK on ESP32
from this project

https://github.com/bareboat-necessities/...tack-tough
Download BBN Marine OS for raspberry piĀ 

https://bareboat-necessities.github.io/m...at-os.html

Video of actual installation:

https://www.youtube.com/watch?v=3zMjUs2X3qU


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)