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:

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:

pip install RPi.GPIO

See RPi.GPIO on Sourceforge for more information.

If you have a Beaglebone Black:

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:

# 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.2.0.tar.gz (22.1 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.2.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rfdevices-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bd2bf31efbcef5c4b210235dfdaa1a06f873937d4ee825710a2d3a92fd0e9b53
MD5 174f90ebe36d9e29b0c6e184540b36dc
BLAKE2b-256 a26de2dbe94cdc614d48bfa3bfd256c0a887be4da0136c895ca0fbb6d52d95a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rfdevices-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18fc8a9620021452bf38dd1145b446dce36e1078060d1113a23c18706dfaaa9a
MD5 137ba989ee83772e46ce2b0bc9c6a156
BLAKE2b-256 20b7412e361bb6aa94d9182763e46553b667ce68981345bb82e930ac53222058

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