https://github.com/jambit/python-jambel
Interface to jambit's project traffic lights.
https://github.com/jambit/python-jambel
Last synced: about 1 year ago
JSON representation
Interface to jambit's project traffic lights.
- Host: GitHub
- URL: https://github.com/jambit/python-jambel
- Owner: jambit
- License: mit
- Created: 2014-10-01T10:27:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T15:01:56.000Z (over 8 years ago)
- Last Synced: 2025-03-25T09:47:28.643Z (about 1 year ago)
- Language: Python
- Homepage: http://jambit.com
- Size: 29.3 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
python-jambel
=============
.. image:: https://travis-ci.org/jambit/python-jambel.svg?branch=master
:target: https://travis-ci.org/jambit/python-jambel
Interface to jambit's project traffic lights.
A simple example::
import jambel
light = jambel.Jambel('ampel3.dev.jambit.com')
light.green.on()
light.yellow.blink()
light.red.flash()
It is also possible to query the jambel's status::
status = light.status()
if stats[jambel.GREEN] == jambel.BLINK:
print('green light is blinking!')
Interested in the hardware? Contact us at fast-feedback-lights@jambit.com