1. create a pibecon/ neopixel device:
2. create an action
then you can switch the lines / pixel on / off through this action
you can also create a script:
- Code: Select all
plug = indigo.server.getPlugin("com.karlwachs.piBeacon")
plug.executeAction("Neopixel" , props ={
"outputDev":"22876764"
,"device":"OUTPUT-neopixel"
,"restoreAfterBoot":False
,"intensity":100
,"repeat":""
,"resetInitial":"[0, 0, 0]"
,"command":'['+
'{"rotate": "", "delayStart": "", "rotateSeconds": "", "position": [2, 3, 5, 5, 100,0,55], "type": "line", "display": "immediate"}'+
',{"rotate": "", "delayStart": "", "rotateSeconds": "", "position": [4, 6, 7, 7, 55, 0, 100], "type": "rectangle", "display": "immediate"}]'
})
and run that.
when you switch on output debug and you execute a regular be-pixel action. the plugin will print the equivalent script into the log file. Just copy that and continue editing in an action/script if you like.
Karl