Would I be able to use this device?
http://digital-loggers.com/lpc.html
Want to replace a non DMX relay box in a home disco for control things like lasers, fog, strobes etc.
matt (support) wrote:I believe it could work, but you would need to write a custom python script to control the module (or create a simple Indigo plugin to control it).
using terms from application "IndigoServer"
tell application "IndigoServer"
set actionOrdered to the value of variable "Digital_Loggers" --This is the variable you create. Make a schedule, control page button etc, to insert one of the commands below into the variable. Then create a trigger that fires when the variable changes and executes this embedded AppleScript.
set actionListAll to {"1=ON", "1=OFF", "1=CCL", "2=ON", "2=OFF", "2=CCL", "3=ON", "3=OFF", "3=CCL", "4=ON", "4=OFF", "4=CCL", "5=ON", "5=OFF", "5=CCL", "6=ON", "6=OFF", "6=CCL", "7=ON", "7=OFF", "7=CCL", "8=ON", "8=OFF", "8=CCL"}
if actionListAll contains actionOrdered is true then
log actionOrdered & " the list works" --comment out once it is working
set theIP to "http://admin:xxxxx@10.x.x.x:80/outlet?" --change your ip, username and PW here
set theURL to theIP & actionOrdered
log theURL --comment this out once it is working
set curlURL to "curl -k" & " " & theURL
set shellscript to curlURL
log shellscript -- commment this out once it is working
do shell script shellscript
set value of variable "Digital_Loggers_Office" to "x" --this is so you can send a repeated command if you wish, such as cycling a receiver each day.
end if
end tell
end using terms from
Users browsing this forum: No registered users and 1 guest