ruuvitag-discovery icon indicating copy to clipboard operation
ruuvitag-discovery copied to clipboard

Adding socket as target

Open barcar opened this issue 4 years ago • 1 comments

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.

barcar avatar Nov 02 '20 08:11 barcar

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.

balda avatar Nov 14 '20 16:11 balda