Closed mihazelnik closed 5 years ago
This should do what you want: https://github.com/nathankellenicki/node-poweredup#PoweredUP+getConnectedHubByUUID
Ah nice, totally missed that one :/
BTW awesome lib!
No problem, and thanks! :)
@nathankellenicki I did use your package and created REST API on top of it https://github.com/MihaZelnik/PoweredUp-REST-API/ (this is just a quick prototype for now so I know that it is possible)
Idea would be to have raspberry pi as a server so I can communicate with hubs via http and create some kind of web dashboard where I will be able to control it and make scenarios
Hi, @nathankellenicki can you add a new method called getConnectedHubByName, that use friendly name configured by setName, instead of UUID?
Is it possible to get hub object if you know hub uuid?
So you do something like that, where you can get hubUuid from params for example?