Hi,
I was wondering if Automagic can do this, and if so: how?
I have a little flow for reading aloud incoming text messages if (a) I'm in my car, and (b) the screen is off (meaning I'm not navigating or otherwise using the phone). This seems to work fine.
But I can only find an option to send new mail -- surely, there must be a trigger for when GMail received a new mail?
Read aloud subject of incoming mail?
Moderator: Martin
Re: Read aloud subject of incoming mail?
Try to think outside of the box when hitting a wall with Automagic. What happens when you receive a new mail? -The app pushes a notidication on your statusbar. Can that be observed? -Yes: trigger
Notification on Statusbar Displayed.
Check the variables that the trigger provides and use those in action Speech Output or if needed, use action Script to extract the subject first from the variables.
Notification on Statusbar Displayed.
Check the variables that the trigger provides and use those in action Speech Output or if needed, use action Script to extract the subject first from the variables.
Re: Read aloud subject of incoming mail?
Yes, I got this same idea late last night, after posting, and was going to reply just that.
I'm still tinkering with which bits are which, but it's going to work.
I'm still tinkering with which bits are which, but it's going to work.
Re: Read aloud subject of incoming mail?
Hi. I'm using the same trigger to read aloud the subject of the email. The only problem is that if multiple emails arrive the notification text won't contain their titles anymore. Clearing the notification each time would be the solution but that feature isn't added yet in automatic.
Re: Read aloud subject of incoming mail?
Oh right, I hadn't considered that consequence. In any case, I can't seem to get it to work. What did you do?bogdyro wrote:Hi. I'm using the same trigger to read aloud the subject of the email. The only problem is that if multiple emails arrive the notification text won't contain their titles anymore.
Here's what I did:
- Trigger: "Notification on Statusbar Displayed" for package "com.google.android.gm" and text filter matches regex ".*" (without the quotes). Also, I'm ignoring ongoing events.
- Action: "Speech Output" with text "{title} writes, {content_title}, {notification_text}".
I don't even think my flow is being triggered, so I haven't yet determined whether my action works...
Re: Read aloud subject of incoming mail?
Try this flow. Check the log to see if it triggers
- Attachments
-
- flow_Gmail_20170122_141010.xml
- (4.9 KiB) Downloaded 974 times