shellscript to signalk path(s)? #167
-
hey all, I am trying to monitor the BMS of my LiFePO4 house bank. I've got a JK-BMS on the cells, and have gotten as far as being able to poll the BMS' bluetooth interface from my Ubuntu commandline, giving me access to key/value pairs that I would like to push into SignalK paths. I have CLI output that looks like this:
however of course I would like that in SignalK. :) I'm not sure the best way to get from CLI to SignalK paths... does anyone have a simple answer? Is there a commandline signalk path injector that I'm just not aware of? Googling doesn't come up with anything. I am aware of the "BT Sensors" plugin, however my nodejs experience is near zero... I'm happy to test if someone wants to work on a JK-BMS sensor class for that plugin... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Here's an example of how to do it via python if you know that. https://github.com/SignalK/sk-plugin-python-demo It might also make sense to open an issue on the bt sensors plugin git and attach your code. Might be super easy for the author to convert it. |
Beta Was this translation helpful? Give feedback.
-
Just use sockets. |
Beta Was this translation helpful? Give feedback.
-
If you can create a shell script that outputs Signal K deltas, one per line, you can add it to the server configuration. The nice part in doing it like this is that the server runs the script, no need to manage starting it and the only interprocess communication needed is pipe from the subprocess' output to sk server. |
Beta Was this translation helpful? Give feedback.
If you can create a shell script that outputs Signal K deltas, one per line, you can add it to the server configuration.
The nice part in doing it like this is that the server runs the script, no need to manage starting it and the only interprocess communication needed is pipe from the subprocess' output to sk server.