reformatted the README.md
This commit is contained in:
parent
459502e90a
commit
5de9b722d3
17
README.md
17
README.md
|
@ -1,22 +1,25 @@
|
||||||
Simple python script to set colours of HUE lamps (via the bridge).
|
Simple python script to set colours of HUE lamps (via the bridge).
|
||||||
Author: joost witteveen (joosteto@gmail.com)
|
Author: joost witteveen (joosteto@gmail.com)
|
||||||
|
|
||||||
Examples:
|
##Examples:
|
||||||
|
|
||||||
Get a valid access code from the bridge:
|
Get a valid access code from the bridge:
|
||||||
1) press the button on the bridge
|
1) press the button on the bridge
|
||||||
2) Run the following command:
|
2) Run the following command:
|
||||||
python3 hue.py --getuser yourusername
|
`python3 hue.py --getuser yourusername`
|
||||||
3) The access code will be saved in the file 'accesscode', and used for next commands.
|
3) The access code will be saved in the file `accesscode`, and used for next commands.
|
||||||
|
|
||||||
Make all lamps as bright as possible, and green:
|
Make all lamps as bright as possible, and green:
|
||||||
python3 hue.py --hue 2 --bri 1
|
|
||||||
|
`python3 hue.py --hue 2 --bri 1`
|
||||||
|
|
||||||
Show json response for a '/lights/2' http GET request:
|
Show json response for a '/lights/2' http GET request:
|
||||||
python3 hue.py --get /lights/2
|
|
||||||
|
|
||||||
Continuously check for long 'off' button press on switch id=4, and if
|
`python3 hue.py --get /lights/2`
|
||||||
python3 hue.py --checklong0 4
|
|
||||||
|
Continuously check for long 'off' button press on switch id=4, and loop hue of all lamps when pressed:
|
||||||
|
|
||||||
|
`python3 hue.py --checklong0 4`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue