File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,34 @@ python-lightify
2
2
===============
3
3
4
4
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 _)
7
6
8
- Packaged up for Pypi by Andreas Neumeier
7
+ Packaged up for pypi _ by Andreas Neumeier
9
8
10
9
It communicates with a Lightify gateway connected to the same LAN via
11
10
TCP port 4000 using a binary protocol.
12
11
13
12
This is a work in progress.
14
13
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
+
15
32
.. _OSRAM : http://www.osram.com
16
33
.. _Lightify : http://led.osram.de/lightify
34
+ .. _pypi : https://pypi.python.org/pypi/lightify/
35
+ .. _mikma : https://github.com/mikma/python-lightify
Original file line number Diff line number Diff line change 27
27
import struct
28
28
import logging
29
29
30
- __version__ = '1.0.0 '
30
+ __version__ = '1.0.1 '
31
31
32
32
MODULE = __name__
33
33
PORT = 4000
You can’t perform that action at this time.
0 commit comments