Overview
Comment: | limitlessled_rf v0.4 Added a few methods to query |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | 0.4 |
Files: | files | file ages | folders |
SHA3-256: |
18297c827886b9a7c81aa216335cab2a |
User & Date: | rkeene on 2020-04-29 13:52:32 |
Other Links: | manifest | tags |
Context
2020-04-29
| ||
22:51 | Updated with some corrections check-in: 9ade53d067 user: rkeene tags: trunk | |
13:52 | limitlessled_rf v0.4 Added a few methods to query check-in: 18297c8278 user: rkeene tags: 0.4, trunk | |
00:48 | lmitlessled_rf v0.3 check-in: 525b55c38a user: rkeene tags: 0.3, trunk | |
Changes
Modified README.md from [779c0688d1] to [d4d6bb557e].
︙ | ︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 | limitlessled_rf.Remote.set_temperature(kelvins, zone = None) -> boolean limitlessled_rf.Remote.on(zone = None) -> boolean limitlessled_rf.Remote.off(zone = None, dim = True) -> boolean limitlessled_rf.Remote.max_brightness(zone = None) -> boolean limitlessled_rf.Remote.white(zone = None) -> boolean limitlessled_rf.Remote.pair(zone) -> boolean limitlessled_rf.Remote.unpair(zone) -> boolean ### Constructor Construct a LimitlessLED object that uses the specified radio to act as a specific numeric remote for a specific type of LimitlessLED bulb system. The "`radio`" object is an LT8900 compatible radio interface -- for example the "`lt8900_spi`" package. | > > > > > > | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | limitlessled_rf.Remote.set_temperature(kelvins, zone = None) -> boolean limitlessled_rf.Remote.on(zone = None) -> boolean limitlessled_rf.Remote.off(zone = None, dim = True) -> boolean limitlessled_rf.Remote.max_brightness(zone = None) -> boolean limitlessled_rf.Remote.white(zone = None) -> boolean limitlessled_rf.Remote.pair(zone) -> boolean limitlessled_rf.Remote.unpair(zone) -> boolean limitlessled_rf.Remote.get_zone_ids() -> list of ints limitlessled_rf.Remote.get_type() -> string limitlessled_rf.Remote.get_id() -> int limitlessled_rf.Remote.get_message_id() -> int limitlessled_rf.Remote.get_brightness_range() -> list of ints limitlessled_rf.Remote.get_temperature_range() -> llist of ints ### Constructor Construct a LimitlessLED object that uses the specified radio to act as a specific numeric remote for a specific type of LimitlessLED bulb system. The "`radio`" object is an LT8900 compatible radio interface -- for example the "`lt8900_spi`" package. |
︙ | ︙ |
Modified limitlessled_rf/__init__.py from [32a495a357] to [eb7f037ffb].
︙ | ︙ | |||
652 653 654 655 656 657 658 | message = {'button': 'white'} else: message = { 'button': 'zone_white', 'zone': zone } return self._send_button(message) | > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 | message = {'button': 'white'} else: message = { 'button': 'zone_white', 'zone': zone } return self._send_button(message) # Methods to query remote identity and state def get_zone_ids(self): # All current remotes have 4 zones # XXX Make this a property return [1, 2, 3, 4] def get_type(self): return self._type def get_id(self): return self._id def get_message_id(self): return self._message_id def get_brightness_range(self): # Brightness is always a fixed range return [0, 255] def get_temperature_range(self): # If the remote has no control over the temperature this # query gets a null response if 'temperature_input_range' not in self._config: return None # Otherwise return with what we accept as temperature ranges return self._config['temperature_input_range'] |
Modified setup.py from [fbd93d0521] to [0ef31a58ad].
1 2 3 4 5 6 7 | import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="limitlessled_rf", | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="limitlessled_rf", version="0.4", author="Roy Keene", author_email="pypi@rkeene.org", description="Python LimitlessLED via RF", long_description=long_description, long_description_content_type="text/markdown", url="https://chiselapp.com/user/rkeene/repository/limitlessled_rf/", packages=["limitlessled_rf"], |
︙ | ︙ |