GET calander events (name, time, time relative)

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

GET calander events (name, time, time relative)

Post by evebrea » 09 Mar 2017 00:33

We have create calendar event, and that's useful... Can we have some sort of GET function for calendar? Like get next event time, get name, etc etc?

Like the trigger, but something that can be used within a flow instead? A function? A condition? I basically want to be able to trigger a flow when I get up in the morning (good morning button) and have speech output say "good morning, you work in 3 hours" or "good morning, you work at 9 am." With the possibile addition of reading any text messages I got before waking (that might be more complicated)


basically what i'm asking for is "get next event time" as hours, or exact time, and having the option to pick an event name, so it could be "appointment with doctor straub" or "work", or "pick up car at mechanic" or even just "next schedule event from google calendar" , and then i can make speech do "good morning, you have {event_name} at {event_time} or {event_time_relative}"

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: GET calander events (name, time, time relative)

Post by Martin » 09 Mar 2017 21:40

Hi,

You can use action Query Content Provider to read the calendar database. The action also contains two examples for accessing the calendar.
I have an item on the list of features under consideration to get the calendar events in a more straightforward way but the priority is not very high since it's already possible with the more generic Query Content Provider action.

Regards,
Martin

evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

Re: GET calander events (name, time, time relative)

Post by evebrea » 10 Mar 2017 07:10

I'm not a scripter, so i have no idea what to do with either of those calendar examples.


So, I guess I just get to hope you'll add something streamline rather than generic "use this, write a script to make sense of results, probably not get the info you were looking for, go back to the mess you're already using" , at current my "alarms" check for a title of "work" is the calendar, and at 1hr, 45min, 30 min, and 5 min intervals do something to tell me i need to be at work... and overall for work, end of work, and bedtime, i have like 15 flows checking the calendar. Yeah that's not using cache and data at all :roll:

I got something working, i think it's interesting. Hehe.

Locked