AppLamp Python API¶
AppLamp Python API is a library for controlling AppLamp lighting from your Python code.
Installation¶
Install using pip:
sudo pip install applamp
Or download the repository and install with setup.py:
sudo python setup.py install
Examples & Documentation¶
Controlling white light bulbs:
from applamp import WhiteLight
light = WhiteLight()
light.on()
light.warmer()
light.fade_out()
light.night_mode(group=1)
Controlling RGB light bulbs:
from applamp import RgbLight
light = RgbLight()
light.fade_in()
light.hue(100) # changing color
light.next_effect()
You can see a list of all methods and their descriptions in the reference documentation.