Closed edeuxk closed 6 years ago
Hey, thanks a lot for your contribution, the Discovery Mode is a pretty important feature of the original python tool and it would be great to have it in the node version as well. Before I merge it however, I would like you to do two things:
If you do these two things, I'll happily merge your work into this module and submit an updated version to npm :)
Totally agree with the fact that mixing different language in a node module is not nice but it was the fastest way to do a POC.
I'll do the two things and update the pull request :)
@jangxx Everything is done.
Create a child process with python. Created python script to discover lights in the local network. Discovery.scan() : Promise, return an array. Compatible python version 2/3+
Need improvement : should use Node.JS sockets instead of spawning a python script. (https://nodejs.org/api/dgram.html)
Current result: