Re: Simple Serial Plugin - just to use for debugging
Posted: Sat May 12, 2012 8:44 am
I shortened the timeouts so the plugin executes immediately - really useful. Now I'm trying to set a variable value and, when changed, execute a trigger to send a command to SSP. I tried modifying Jay's script above but keep getting errors.The command I'm trying to send is *cw,68,1,31
Any suggestions?
Error messages:
for the first trial:
Script Error embedded script: 'VariableCmds' object is unsubscriptable
Script Error Exception Traceback (most recent call shown last):
embedded script, line 3, at top level
TypeError: 'VariableCmds' object is unsubscriptable
for the second:
Script Error around line 3 - "message = "%\n" % (indigo.variable["direct_Vaux_Send"].value)simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})"
Thanks!
Any suggestions?
- Code: Select all
simpleSerialId = indigo.server.getPlugin("org.yergeyjDoesntHaveaURL.simpleserial")
if simpleSerialId.isEnabled():
message = (indigo.variable["direct_Vaux_Send"].value)
simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
also tried this:
simpleSerialId = indigo.server.getPlugin("org.yergeyjDoesntHaveaURL.simpleserial")
if simpleSerialId.isEnabled():
message = "%s\n" % (indigo.variable["direct_Vaux_Send"].value)
simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
Error messages:
for the first trial:
Script Error embedded script: 'VariableCmds' object is unsubscriptable
Script Error Exception Traceback (most recent call shown last):
embedded script, line 3, at top level
TypeError: 'VariableCmds' object is unsubscriptable
for the second:
Script Error around line 3 - "message = "%\n" % (indigo.variable["direct_Vaux_Send"].value)simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})"
Thanks!