Read aloud today's meetings
Moderator: Martin
-
- Posts: 19
- Joined: 20 Mar 2014 09:00
Read aloud today's meetings
Adjust the trigger to the applicable time and have today's meetings read to you (see attachment)...
- Attachments
-
- Have_todays_meetings_read_aloud_at_specific_time.xml
- (6.8 KiB) Downloaded 1560 times
-
- Posts: 11
- Joined: 29 Mar 2013 08:26
Re: Read aloud today's meetings
Hi, very nice, exactly what i have been looking for, a long time, good job!
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: Read aloud today's meetings
Hi, now when we have gotten the new update of AM, I tried your flow. But I got the same error as I got when I didn't have the update."Could not evaluate expression 'titles=split(event_titles,",");". Do you have any clue to what I am doing wrong?
Best regards,
AngelAtwOrk
AngelAtwOrk
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: Read aloud today's meetings
Got it working. Took away the ID in the flow. Great flow!
Best regards,
AngelAtwOrk
AngelAtwOrk
-
- Posts: 186
- Joined: 12 Feb 2014 01:45
Re: Read aloud today's meetings
Found the bug! If you have no meetings the condition does not catch it as true and that makes AM through an exception that it cannot split the meetings. If you change the condition to:
//matches(event_titles,"");
length(event_titles)<1;
Then the flow works .
I think you should move the flow to the flow area again, now when the functions are implemented in the official AM. It it's an excellent flow you have made, thank you
//matches(event_titles,"");
length(event_titles)<1;
Then the flow works .
I think you should move the flow to the flow area again, now when the functions are implemented in the official AM. It it's an excellent flow you have made, thank you
Best regards,
AngelAtwOrk
AngelAtwOrk
Re: Read aloud today's meetings
I have been using this workflow for a while now and just discovered today that if you have a comma in one of the events, then it fails.
It is expected to parse a string like this "event1,timestamp1,event2,timestamp2,..."
If event1 contains commas it becomes "event1,thing1,thing2,timestamp1,..." and it complains it can't divide thing1 by 1000.
Any idea how to change separators by, say, a # sign?
Thanks
It is expected to parse a string like this "event1,timestamp1,event2,timestamp2,..."
If event1 contains commas it becomes "event1,thing1,thing2,timestamp1,..." and it complains it can't divide thing1 by 1000.
Any idea how to change separators by, say, a # sign?
Thanks
Re: Read aloud today's meetings
I'm sure there are multiple approaches. One of them would be:
In your "Query Content Provider" action, read the "begin" before the "title" and change the result type to "Text".
Then the individual calendar entries are separated by a newline character, which cannot occur within the calendar entry title or time.
Where you format the entries, split them into a list by newline:
entries = split(event_titles,"\\n")
Now the first comma in each entry separates the time from the title, and you just ignore additional commas in an entry.
And you don't have to keep a counter, if you use
for (entry in entries)
{
process your entry here
}
AM cycles through the entries in the list one at a time, putting the current one into the variable entry.
This should also work if the list is empty because there are no entries.
In your "Query Content Provider" action, read the "begin" before the "title" and change the result type to "Text".
Then the individual calendar entries are separated by a newline character, which cannot occur within the calendar entry title or time.
Where you format the entries, split them into a list by newline:
entries = split(event_titles,"\\n")
Now the first comma in each entry separates the time from the title, and you just ignore additional commas in an entry.
And you don't have to keep a counter, if you use
for (entry in entries)
{
process your entry here
}
AM cycles through the entries in the list one at a time, putting the current one into the variable entry.
This should also work if the list is empty because there are no entries.
Re: Read aloud today's meetings
Awesome, I'll try this approach
Thanks!
Thanks!
-
- Posts: 6
- Joined: 20 Dec 2013 12:41
Re: Read aloud today's meetings
Hi
I get the error below when executing flow what must I change;
Error while calling function getElement (Expression: getElement(titles,counter)[line 5], Cause: Invalid index 1, size is 1)
I get the error below when executing flow what must I change;
Error while calling function getElement (Expression: getElement(titles,counter)[line 5], Cause: Invalid index 1, size is 1)
Re: Read aloud today's meetings
This is because indexes are zero based: first index is 0, second is 1 and so on.