Skip to main content

Control household RF devices with low-cost GPIO modules

Project description

Introduction

High level RF library for interacting with common devices.

Requirements

  • Python 3

  • Native GPIO library (see Installation)

Installation

Clone this repo locally, then: bash pip install rfdevices

Native GPIO Library

For GPIO operations, this library uses adafruit/Adafruit_Python_GPIO for compatibility with multiple SoC boards. As a result, you’ll need to ensure you manually install your platform’s GPIO library.

If you have a Raspberry Pi: bash pip install RPi.GPIO See RPi.GPIO on Sourceforge for more information.

If you have a Beaglebone Black: bash pip install Adafruit_BBIO See adafruit/adafruit-beaglebone-io-python for more information.

If you have an Intel (e.g. Galileo, Edison) board, follow the instructions at intel-iot-devkit/mraa.

Usage

After installing, the rfsend tool will be available in your PATH.

Here’s an example of sending a command to a UC7070T (Harbor Breeze) fan to toggle the light on/off: bash # GPIO pin 23 / fan dipswitch set to 1101 rpi-rftx -g 23 -t uc7070t -b 111010000001

Credits

This was originally forked from `milaq/rpi-rf <https://github.com/milaq/rpi-rf>`_.

Portions of the code are: Copyright (c) 2016 Suat Özgür, Micha LaQua Copyright (c) 2017 Milas Bowman

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rfdevices-0.3.0.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rfdevices-0.3.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file rfdevices-0.3.0.tar.gz.

File metadata

  • Download URL: rfdevices-0.3.0.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rfdevices-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5ee50427ce9ba4110ba255279a9eaf87f664e4e9cee78a3298136ce23b6494a2
MD5 92a8038f39d771a31443b08e0d9b2641
BLAKE2b-256 b55c20ca80dac783b7e27bada93a0e5036114a3da6a895a47d353231d3bc07f0

See more details on using hashes here.

File details

Details for the file rfdevices-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rfdevices-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9efc7cc2fe142538610b8f7cae375364cb9d0e838b8e4142ac36fcdfd3c256c7
MD5 387ad62519a9324b2ab6c3f568bceb48
BLAKE2b-256 adcb95d6b7db2ee8a2f6fc22383ea0943f87fbf84923b6f39c350dd07272a994

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page