I could look into adding a new scripting call (GetActiveCalendarEvents) that would return all of the events where the current date/time is within the start and end times for the event
Announcement
Collapse
No announcement yet.
Changes coming to BLGData - Build 3.0.0.0
Collapse
This is a sticky topic.
X
X
-
Guest
-
Hi Blade,
I would like to turn off the virtual device that I created if there is no active event, does your function return any status code so I can turn it off or on?
Code:allEvents = hs.PluginFunction("BLGData", "", "GetActiveCalendarEvents", new Object(){myemail,tCalendar}) msg="<table>" For Each ev As Object In allEvents msg = msg & "<tr><td>" & ev.StartDate & " " & ev.StartTime & " - " & ev.Name & "</td></tr>" Next msg=msg & "</table>" if msg="" then msg="No Events Scheduled" 'hs.writelog("Info", "Event" & ev.Name) hs.SetDeviceValueByRef(tDevice, 0, False) ' Set to off else hs.SetDeviceValueByRef(tDevice, 100, True) ' Set to on hs.SetDeviceString(tDevice, msg.Trim, true) end if
Comment
-
Originally posted by michaeldecharon View PostDear Blade,
I was wondering where i can find the status of my feature request, i posted a while ago.
The request was to make use of the location field from the Google calendar, so that i can trigger on a phrase in the location field.
So you want the location field to work like the trigger phrase for the name works?
Comment
Comment