I am about to implement the GCal3 in my Vera.. I installed the plug in and set up went OK. Event displayed and triggered OK.
Now I would like to get these conditions working if possible.
I have birthday, doctor appointment, car service appoinment, kids' school event and closer all entered in Google Calendar.
How Do I trigger these events and TTS through imperihome? Is it even possible that depend on event keyword and triiger imperihome to speak according to that event??
example: if a dr. appt come up tomorrow, then tonight the event trigger (with the delta set) and imperihome announce the reminder that I have a Dr. appt tomorrow. Or If a Birthday come up then in the morning imperihome say happy birthday. etc
Also I am unable to set the gc_Value. I have added {xxx} to the end of the Google Calendar event name and after reloads and fresh browser, that field remain empty.
Thx
gc_Value does not get set unless the event is active / triggered. It is not displayed on the front panel (mainly for space reasons). Take a look at gc_jsonEvents (in the Advanced tab). That will tell you which events the plugin sees and if the event is active / triggered then the parameter should be in gc_Value.
I am not familiar with imperihome - but so far, I am not aware of anyone having probems passing the available data to other devices. Take a look at the discussion here:
http://forum.micasaverde.com/index.php/topic,28398.0.htmlAs to managing other plugins to react to different events and send those events different parameters: I'l look closely at PLEG since it's very powerful and flexible - but you could start of just using scenes. From a GCal3 perspective, you would likely set gc_triggerNoKeyword to true, leave gc_Keyword blank. In PLEG (or scenes - this will cause every event to be triggered (no nesting of events) PLEG or the scene can then (1) look a the value of gc_TrippedEvent react to the name of the event and (2) get the gc_Value parameter and do something with it. There are, of course other ways.
If this does not make sense - we can work through an example of your choosing.
You can try something like this in a scene
local GCAL_SID = "urn:srs-com:serviceId:GCalIII"
local GCAL_DEV = 3 -- The GCAL device number
local eventValue= luup.variable_get (GCAL_SID, "gc_Value", GCAL_DEV ) or ""
local eventTitle = luup.variable_get (GCAL_SID, "gc_TrippedEvent", GCAL_DEV ) or "No event"
-- NOTE That event titles are all forced to upper case in the plugin
if (eventTitle == "DOCTOR") then
-- do something
luup.log("Event was " .. eventTitle .. " with parameter " .. eventValue)
elseif (eventTitle == "BIRTHDAY") then
-- call plugin to announce birthday and pass it eventValue
luup.log("Event was " .. eventTitle .. " with parameter " .. eventValue)
else
luup.log("Just a test")
end