ruuvitag-discovery
ruuvitag-discovery copied to clipboard
Adding socket as target
Thanks for this great tool.
Would it be a lot of effort to add a socket server as a target?
I have a tag which is out of BLE range of my main node-red server so I’m using this project to relay data via mqtt. But I’d like to also get the tags into HomeKit via the https://github.com/pakastin/homebridge-ruuvitag project which can listen to readings from a socket.
Targets are designed to be generic and easily defined. They are built with a factory(targetConfig)
function that return an object with 3 required methods: start()
, stop()
and send(tagData)
.
If you are fluent in nodejs, you can write it :)
Or you can give me config needed (I guess socket url and port, but maybe others), and I will take a look to https://github.com/pakastin/homebridge-ruuvitag to see if I can implement it.