mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
code cleanup
Former-commit-id: 76226289a660d39fd4571e96f899e8fceebcd39b
This commit is contained in:
parent
4784b4ec42
commit
1cf16210e3
@ -2,16 +2,10 @@ import hyperion
|
|||||||
import time
|
import time
|
||||||
import colorsys
|
import colorsys
|
||||||
|
|
||||||
# Get the rotation time
|
# Get the parameters
|
||||||
rotationTime = hyperion.args.get('rotation-time', 3.0)
|
rotationTime = hyperion.args.get('rotation-time', 3.0)
|
||||||
|
|
||||||
# Get the brightness
|
|
||||||
brightness = hyperion.args.get('brightness', 1.0)
|
brightness = hyperion.args.get('brightness', 1.0)
|
||||||
|
|
||||||
# Get the saturation
|
|
||||||
saturation = hyperion.args.get('saturation', 1.0)
|
saturation = hyperion.args.get('saturation', 1.0)
|
||||||
|
|
||||||
# Get the direction
|
|
||||||
reverse = hyperion.args.get('reverse', False)
|
reverse = hyperion.args.get('reverse', False)
|
||||||
|
|
||||||
# Calculate the sleep time and hue increment
|
# Calculate the sleep time and hue increment
|
||||||
|
@ -2,16 +2,10 @@ import hyperion
|
|||||||
import time
|
import time
|
||||||
import colorsys
|
import colorsys
|
||||||
|
|
||||||
# Get the rotation time
|
# Get the parameters
|
||||||
rotationTime = hyperion.args.get('rotation-time', 3.0)
|
rotationTime = hyperion.args.get('rotation-time', 3.0)
|
||||||
|
|
||||||
# Get the brightness
|
|
||||||
brightness = hyperion.args.get('brightness', 1.0)
|
brightness = hyperion.args.get('brightness', 1.0)
|
||||||
|
|
||||||
# Get the saturation
|
|
||||||
saturation = hyperion.args.get('saturation', 1.0)
|
saturation = hyperion.args.get('saturation', 1.0)
|
||||||
|
|
||||||
# Get the direction
|
|
||||||
reverse = hyperion.args.get('reverse', False)
|
reverse = hyperion.args.get('reverse', False)
|
||||||
|
|
||||||
# Initialize the led data
|
# Initialize the led data
|
||||||
|
Loading…
Reference in New Issue
Block a user