Skip to content

Commit 2c51bcc

Browse files
Documentation and example.
1 parent a0b79b6 commit 2c51bcc

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

README.rst

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,34 @@ python-lightify
22
===============
33

44
Python module for OSRAM_ Lightify_
5-
Based on work from Mikael Magnusson.
6-
https://github.com/mikma/python-lightify
5+
Based on work from Mikael Magnusson. (Github: mikma_)
76

8-
Packaged up for Pypi by Andreas Neumeier
7+
Packaged up for pypi_ by Andreas Neumeier
98

109
It communicates with a Lightify gateway connected to the same LAN via
1110
TCP port 4000 using a binary protocol.
1211

1312
This is a work in progress.
1413

14+
Usage
15+
-----
16+
17+
pip install lightify
18+
19+
Example
20+
-------
21+
22+
Turn on all lights connected to the gateway.
23+
24+
from lightify import Lightify
25+
26+
lightify = Lightify("Lightify-Hostname")
27+
lightify.update_all_light_status()
28+
lights = lightify.lights()
29+
for light in lights.keys():
30+
lights[light].set_onoff(True)
31+
1532
.. _OSRAM: http://www.osram.com
1633
.. _Lightify: http://led.osram.de/lightify
34+
.. _pypi: https://pypi.python.org/pypi/lightify/
35+
.. _mikma: https://github.com/mikma/python-lightify

lightify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import struct
2828
import logging
2929

30-
__version__ = '1.0.0'
30+
__version__ = '1.0.1'
3131

3232
MODULE = __name__
3333
PORT = 4000

0 commit comments

Comments
 (0)