[](https://travis-ci.org/DavidLP/pilight)
[](https://coveralls.io/github/DavidLP/pilight?branch=master)
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.
Metadata
Release files for pilight 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pilight-0.1.1.tar.gz | 19.5 kB | Without provenance | Details for pilight-0.1.1.tar.gz |
Release files / pilight-0.1.1.tar.gz
| Download URL | pilight-0.1.1.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a13b6a96439f2d4be632cd76442f45c418df25412b927bf43c997fb865adaa87
|
|
BLAKE2b-256 checksum How to use checksums |
be24bee3980c42d5f82f1cb86e7661fce1acbc19e506a6327f993e12fb98378a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pilight 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.