Python module for interacting with a range of different andon light systems
Project description
# PyAndon
Python module for interacting with a range of different industrial warning light systems.
Development of PyAndon is sponsored by [Metis Labs Ltd.](https://www.metislabs.tech)
## Installation
PyAndon is available through [PyPI](https://pypi.org/project/pyandon/), so can be installed by running:
pip3 install pyandon
## Usage
First import the module as normal:
import pyandon
You can then discover all attached devices by running:
devices = pyandon.find_devices() print(devices)
Pick the first device and turn a light on:
device = devices[0] device.set_light(pyandon.LightColor.GREEN, pyandon.LightPattern.STATIC)
Enable the buzzer, playing a two tone pattern:
device.set_buzzer(pyandon.BuzzerPattern.PATTERN_1, [pyandon.BuzzerNotes.C7, pyandon.BuzzerNotes.D7])
And finally clear all lights and buzzers:
device.clear()
For a more advanced example, take a look at [examples/fly_me_to_the_moon.py](examples/fly_me_to_the_moon.py).
## Supported Devices
Currently only Patlite USB lights are supported. Pull requests for drivers for additional devices and manufacturers are very welcome. If you would like to discuss having a driver written for you and are able to ship a test device to the UK please contact <mike.sheldon@metislabs.tech>.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyandon-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pyandon-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8aaa47f0a50e5543c7d7fde03727def3cba35322fc639f3f7a794a54048971c4
|
|
| MD5 |
6d7d133be123df05605d47b427813dd0
|
|
| BLAKE2b-256 |
620da60ef1c7b98ab856a3cbca808a5cad6ac8d38ccb93659cd82aeb4760b698
|