Skip to main content

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 3

How to use

  • Executable command line interface for sending one shot on/off commands
    ./rfoutlet [gpio-pin] [product-revision] [channel] [number] [on/off]
  • Python object
    import pyrfoutlet
    import logging
    
    logging.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 License

Any questions please contact: alan@lightningtoads.com

Download files

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

Source Distribution

pyrfoutlet-0.0.2.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file pyrfoutlet-0.0.2.tar.gz.

File metadata

  • Download URL: pyrfoutlet-0.0.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyrfoutlet-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4bb129fa9db7823df7dcbf2e65e682fefc6c51df58f2988dacc50eb4ebad051b
MD5 ad80ffda192911d64952bdbadfbf3ba6
BLAKE2b-256 3137802653b7689e15e5ba3f7825ebfabd21a236501c4b48d151a0cb3f4a466d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page