Thanks for that. icallbuddy is a tiny little app that I found through the forum here. It will look for events on iCal and then can be imported into Indigo. Worked great until I moved to 7.4 awhile back. Didn't need this script at that time any more, but now I do again.
I updated variable id's and tried a run. I got this return:
Script Error embedded script: 'VariableList' object has no attribute 'updateValue'
Script Error Exception Traceback (most recent call shown last):
embedded script, line 8, at top level
AttributeError: 'VariableList' object has no attribute 'updateValue'
Code: Select all
# Substitute anything below that starts with IDOF_ with the actual Indigo ID of the
# specified variable - right click the variable in the Variable List window and select Copy ID
import os
la_string = os.popen('/usr/local/bin/icalbuddy -nc -ic Work eventsToday')
if "DayWork" in la_string:
indigo.variables.updateValue(1422763041, value='true')
else:
indigo.variables.updateValue(1422763041, value='false')
if "Night Work" in la_string:
indigo.variables.updateValue(15646541, value='true')
else:
indigo.variables.updateValue(15646541, value='false')
if "OFF" in la_string:
indigo.variables.updateValue(790632292, value='true')
else:
indigo.variables.updateValue(790632292, value='false')
if "VAC" in la_string:
indigo.variables.updateValue(41667262, value='true')
else:
indigo.variables.updateValue(41667262, value='false')