https://github.com/alanfischer/rfoutlet
A Raspberry PI C++ library with python bindings for controlling Holiday Time RF outlets.
https://github.com/alanfischer/rfoutlet
315mhz iot outlet raspberry-pi rf
Last synced: 2 months ago
JSON representation
A Raspberry PI C++ library with python bindings for controlling Holiday Time RF outlets.
- Host: GitHub
- URL: https://github.com/alanfischer/rfoutlet
- Owner: alanfischer
- License: mit
- Created: 2017-06-06T22:08:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T19:18:55.000Z (almost 2 years ago)
- Last Synced: 2024-09-26T10:05:00.279Z (9 months ago)
- Topics: 315mhz, iot, outlet, raspberry-pi, rf
- Language: C++
- Homepage:
- Size: 165 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
RFOutlet library
------------------A Raspberry PI C++ library with python bindings for controlling Holiday Time RF outlets.
It needs a 315 MHz transmitter module hooked up to a GPIO pin.
The outlets are specified with a board revision, channel, and outlet number.
If unsure of the board revision, try REV2 and REV3.
Dependencies
------------
- CMake 2.8 or Python 2 or 3How to use
----------
- Executable command line interface for sending one shot on/off commands
.. code-block::./rfoutlet [gpio-pin] [product-revision] [channel] [number] [on/off]
- Python object
.. code-block:: pythonimport pyrfoutlet
import logginglogging.basicConfig(level=logging.INFO) # Get log messages from pyrfoutlet
pin = 4
rfoutlet = pyrfoutlet.RFOutlet(pin)product = pyrfoutlet.parseProduct("REV3")
channel = "F"
outlet = 1
rfoutlet.setState(product,channel,outlet,True)License
-------
- MIT LicenseAny questions please contact: [email protected]