-
Notifications
You must be signed in to change notification settings - Fork 221
Initial version of Nanoleaf Aurora control #1348
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
Initial version of Nanoleaf Aurora control #1348
Conversation
| Nanoleaf Plugin | ||
| ============ | ||
|
|
||
| This plugin creates a device per IP, each with one output port. Each port |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a link to the product.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do, https://nanoleaf.me/en/consumer-led-lighting/products/smarter-series/nanoleaf-light-panels-smarter-kit/ if you fancy buying some 😄
plugins/nanoleaf/NanoleafDevice.cpp
Outdated
|
|
||
| uint16_t ip_port; | ||
| if (!StringToInt(m_preferences->GetValue(IPPortKey()), &ip_port)) { | ||
| ip_port = 60221; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd move this to a const kDefaultPort.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
plugins/nanoleaf/NanoleafDevice.cpp
Outdated
| // Set device options | ||
| m_preferences->SetDefaultValue(PanelsKey(), StringValidator(), ""); | ||
| m_preferences->SetDefaultValue(IPPortKey(), UIntValidator(1, 65535), | ||
| 60221); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the const.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
plugins/nanoleaf/NanoleafNode.h
Outdated
| ola::network::Interface m_interface; | ||
| std::auto_ptr<ola::network::UDPSocketInterface> m_socket; | ||
|
|
||
| NanoleafNode(const NanoleafNode&); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we have a macro for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was briefly confused, having just copied from KiNetNode.h, but yes, this must be DISALLOW_COPY_AND_ASSIGN, I'll fix it up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, along with other ones that had been missed over the years.
|
This is ready for re-review @nomis52 . I guess it might make sense to merge this in, then I'll work on the other features later. |
|
Merging while failing, due to issues in base code fixed later. |
An initial version if you fancy giving it a first pass.
Still todo/future features: