-
Notifications
You must be signed in to change notification settings - Fork 2
Update #169: Created RedRat remote type #172
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
Conversation
a306a4c to
67144bd
Compare
Created RedRat remoteController. Created remoteController interface class. Updated example rack config to show redrat parameters. Created example redrat keymap.
67144bd to
76d31fe
Compare
kanjoe24
left a comment
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.
Does this need any update in requirements.txt? Just double confirming .
| from framework.core.remoteControllerModules.arduino import remoteArduino | ||
| from framework.core.remoteControllerModules.none import remoteNone | ||
| from framework.core.remoteControllerModules.keySimulator import remoteKeySimulator | ||
| from framework.core.remoteControllerModules import remoteArduino, \ |
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.
Do we need to import every thing even though we don't use all of them at a time? Can we consider this based on the rack config file and see for the only devices those are present in that?
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.
Yes, unfortunately we do. This is how we allow for all these different types in the rack configs. We don't actually instantiate any objects from these classes until we've read the config. So it's still pretty minimal memory usage.
| if self._is_open: | ||
| self._socket.close() | ||
| self._is_open = False | ||
|
|
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.
Can we have some description and parametric information for these definitions as well?
srinivasgtl
left a comment
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.
how is example_keymap and example_redrat_keymap.yml used? Are they both used?
| self._netbox_ip = config.get('netbox_ip') | ||
| self._output = config.get('output', 1) | ||
|
|
||
| def sendKey(self, code, repeat, delay): |
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.
Same here, can we have some descriptions of this definition with parameter info.
Let me write up a doc for using the remote controller. It's silly that we don't have one, and it would explain this. |
b426385 to
38f6fc4
Compare
38f6fc4 to
bbccbfb
Compare
- Added a check to ensure the IR Netbox is available on the hub connected to (This also confirms it is a Hub that is connected to). - Added docstrings to the methods in the Hub class to better explain them.
Created RedRat remoteController. Created remoteController interface class. Updated example rack config to show redrat parameters. Created example redrat keymap.
Closes #169