Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting hub object if you know hub uuid #11

Closed
mihazelnik opened this issue Jan 10, 2019 · 6 comments
Closed

Getting hub object if you know hub uuid #11

mihazelnik opened this issue Jan 10, 2019 · 6 comments

Comments

@mihazelnik
Copy link

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?

hub = PUPHub(hubUuid);
hub.setLEDColor(1);
@nathankellenicki
Copy link
Owner

@mihazelnik
Copy link
Author

Ah nice, totally missed that one :/

@mihazelnik
Copy link
Author

BTW awesome lib!

@nathankellenicki
Copy link
Owner

No problem, and thanks! :)

@mihazelnik
Copy link
Author

@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

@GianCann
Copy link

GianCann commented Feb 1, 2019

Hi, @nathankellenicki
can you add a new method called getConnectedHubByName, that use friendly name configured by setName, instead of UUID?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants