I'm trying to convert all my applescripts to python and must be missing something. I am currently working on my HamBridge server app which used AppleScript to tell Indigo to change variable values based on http calls it got from various APIs. All I'm trying to do it have it update a variable value, but i get is ab error "Name 'Indigo' is not defined"
- Code: Select all
#! /usr/bin/env python
import commands,os,random,sys
myVar = indigo.variables["home"]
indigo.variable.updateValue(myVar,false)
myVar.refreshFromServer()
How do i get this to work?