* upd

* upd

* typo

* update ieff

* typo

* ..

* try

* ..

* rm enum

* .

* .

* split initialeff

* upd schema

* ..

* upd

* .

* .

* .

* update

* update
This commit is contained in:
brindosch
2017-01-04 10:55:10 +01:00
committed by redPanther
parent 2906ec041a
commit c433504b81
37 changed files with 884 additions and 257 deletions

View File

@@ -4,7 +4,7 @@
"args" :
{
"sleepTime" : 0.15,
"brightness" : 1.0,
"brightness" : 100,
"color" : [ 255, 138, 0 ],
"candles" : "all"
}

View File

@@ -15,8 +15,8 @@ import random
# Get parameters
color = hyperion.args.get('color', (255,138,0))
colorShift = hyperion.args.get('colorShift', 0.01)
brightness = float(hyperion.args.get('brightness', 0.5))
colorShift = float(hyperion.args.get('colorShift', 1))/100.0
brightness = float(hyperion.args.get('brightness', 100))/100.0
sleepTime = float(hyperion.args.get('sleepTime', 0.14))

View File

@@ -4,7 +4,7 @@
"args" :
{
"rotation-time" : 60.0,
"brightness" : 1.0,
"brightness" : 100,
"reverse" : false
}
}

View File

@@ -2,15 +2,10 @@ import hyperion, time, colorsys
# Get the parameters
rotationTime = float(hyperion.args.get('rotation-time', 30.0))
brightness = float(hyperion.args.get('brightness', 1.0))
saturation = float(hyperion.args.get('saturation', 1.0))
brightness = float(hyperion.args.get('brightness', 100))/100.0
saturation = float(hyperion.args.get('saturation', 100))/100.0
reverse = bool(hyperion.args.get('reverse', False))
# Check parameters
rotationTime = max(0.1, rotationTime)
brightness = max(0.0, min(brightness, 1.0))
saturation = max(0.0, min(saturation, 1.0))
# Calculate the sleep time and hue increment
sleepTime = 0.1
hueIncrement = sleepTime / rotationTime

View File

@@ -9,6 +9,9 @@
"title":"edt_eff_whichleds_title",
"enum" : ["all","all-together","list"],
"default" : "all",
"options" : {
"enum_titles" : ["edt_eff_enum_all", "edt_eff_enum_all-together", "edt_eff_enum_list"]
},
"propertyOrder" : 1
},
"ledlist": {
@@ -34,19 +37,20 @@
"colorShift": {
"type": "number",
"title":"edt_eff_colorshift_title",
"default": 0.01,
"minimum" : 0.00,
"maximum": 0.3,
"step": 0.01,
"default": 1,
"minimum" : 0,
"maximum": 30,
"append" : "edt_append_percent",
"propertyOrder" : 4
},
"brightness": {
"type": "number",
"title":"edt_eff_brightness_title",
"default": 1,
"minimum" : 0.01,
"maximum": 1,
"step": 0.1,
"default": 100,
"minimum" : 1,
"maximum": 100,
"step" : 10,
"append" : "edt_append_percent",
"propertyOrder" : 5
},
"sleepTime": {

View File

@@ -15,17 +15,28 @@
"brightness": {
"type": "number",
"title":"edt_eff_brightness_title",
"default": 1.0,
"minimum" : 0.1,
"maximum" : 1.0,
"step" : 0.1,
"default": 100,
"minimum" : 1,
"maximum" : 100,
"step" : 10,
"append" : "edt_append_percent",
"propertyOrder" : 2
},
"saturation": {
"type": "number",
"title":"edt_eff_saturation_title",
"default": 100,
"minimum" : 1,
"maximum" : 100,
"step" : 10,
"append" : "edt_append_percent",
"propertyOrder" : 3
},
"reverse": {
"type": "boolean",
"title":"edt_eff_reversedirection_title",
"default": false,
"propertyOrder" : 3
"propertyOrder" : 4
}
},
"additionalProperties": false

View File

@@ -36,15 +36,19 @@
"brightness": {
"type": "number",
"title":"edt_eff_brightness_title",
"default": 1.0,
"minimum" : 0.01,
"default": 100,
"minimum" : 1,
"step" : 10,
"append" : "edt_append_percent",
"propertyOrder" : 4
},
"saturation": {
"type": "number",
"title":"edt_eff_saturation_title",
"default": 1.0,
"minimum" : 0.01,
"default": 100,
"minimum" : 1,
"step" : 10,
"append" : "edt_append_percent",
"propertyOrder" : 5
},
"reverse": {

View File

@@ -27,7 +27,7 @@
},
"trails": {
"type": "integer",
"title":"edt_eff_trails_title",
"title":"edt_eff_count_title",
"default": 3,
"minimum" : 1,
"propertyOrder" : 4
@@ -41,7 +41,7 @@
},
"random": {
"type": "boolean",
"title":"edt_eff_random_header_title",
"title":"edt_eff_colorrandom_title",
"default": false,
"propertyOrder" : 6
},

View File

@@ -5,8 +5,8 @@
{
"rotation-time" : 3.0,
"sleep-time" : 0.05,
"brightness" : 1.0,
"saturation" : 1.0,
"brightness" : 100,
"saturation" : 100,
"reverse" : false,
"color" : [255,255,255],
"random-color" : false

View File

@@ -3,16 +3,14 @@ import hyperion, time, colorsys, random
# Get the parameters
rotationTime = float(hyperion.args.get('rotation-time', 3.0))
sleepTime = float(hyperion.args.get('sleep-time', 0.05))
brightness = float(hyperion.args.get('brightness', 1.0))
saturation = float(hyperion.args.get('saturation', 1.0))
brightness = float(hyperion.args.get('brightness', 100))/100.0
saturation = float(hyperion.args.get('saturation', 100))/100.0
reverse = bool(hyperion.args.get('reverse', False))
color = list(hyperion.args.get('color', (255,255,255)))
randomColor = bool(hyperion.args.get('random-color', False))
# Check parameters
rotationTime = max(0.1, rotationTime)
brightness = max(0.0, min(brightness, 1.0))
saturation = max(0.0, min(saturation, 1.0))
# Initialize the led data
ledData = bytearray()

View File

@@ -1,9 +0,0 @@
{
"name" : "Strobe Raspbmc",
"script" : "strobe.py",
"args" :
{
"color" : [ 188, 17, 66 ],
"frequency" : 5.0
}
}

View File

@@ -1,5 +1,5 @@
{
"name" : "trails",
"name" : "Trails",
"script" : "trails.py",
"args" :
{

View File

@@ -1,5 +1,5 @@
{
"name" : "trails_color",
"name" : "Trails color",
"script" : "trails.py",
"args" :
{