Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pilight

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pilight

A pure python module to connect to a pilight daemon to send and receive commands.

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

A pure python client to connect to a pilight daemon

Build Status Coverage Status

This client interfaces with the pilight-daemon to send and receive RF codes (https://www.pilight.org/).

Sending and receiving is implemented in an asychronous way. A callback function can be defined that reacts on received data. Automatic acknowledge if the send data was transmitted by the pilight-daemon is implemented.

All pilight-send commands can be used by this client (https://wiki.pilight.org/doku.php/psend). The API is mentioned here: https://manual.pilight.org/en/api.

Installation

The latest release is hosted on PyPi. Thus for installation type:

pip install pilight

Otherwise download the code and

python setup.py install

You can run the unit tests to check the installation

nosetests pilight

Usage

from pilight import pilight
pilight_connection = pilight.Client()  # Connect to the pilight-daemon at localhost:5000
pilight_connection.send_code(data={"protocol": [ "kaku_switch" ],  #  https://manual.pilight.org/en/api
                                    "id": 1,
                                    "unit": 0,
                                    "off": 1
                                    })

Also check the examples folder.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc