Someone is home ignoring the phone and email. Bam vc to the rescue. "honey don't forget to walk the dog." A remote voice. actually that is easy with James' ifttt recipe and your personal email account.
How about friends sending things over vc during a party? (yes i can use a raspberry pi, set up a mail server, register a domain....)
Have you considered the gmail notifier python code I posted a while back? Particularly for the first need, but it could be used for both scenarios.
http://voxcommando.com/forum/index.php?topic=1679.msg14606#msg14606The code I posted triggers a VC event when a gmail message with a specific subject line is received. That event can pass whatever you want from the email as payloads. So, you can set it up that only messages with the subject heading "vox commando" (or whatever is easy to get right but still unique) trigger the event. And then you pass the body of the message as a payload.
In VC, create a command triggered by this event that simply makes a TTS announcement.
The important part of the python script that you would edit is the following section:
else:
self.fullCount = matchObj.group(1)
subject = matchObj.group(2)
summary = matchObj.group(3)
self.msgID = matchObj.group(4)
sender = matchObj.group(5)
#triggers VC event if email subject line says "motion detected". Change to your needs.
if subject == "motion detected":
#triggers event "newMail" in VC & sends subject and sender as payloads {1} & {2}.
vc.triggerEvent("newMail",List[str](["subject: "+subject,"sender: "+sender]))
1. Change the "if subject ==" line from "motion detected" to your preferred subject line.
2. Instead of sending "subject" and "sender" as payloads, you can change it to one "summary" payload. (Summary is the gmail term for the body of the email message.)
So that line becomes:
vc.triggerEvent("newMail",List[str]([summary]))
Then, you have a command in VoxCommando such as:
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.3-->
<command id="323" name="new mail announcement" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>Excuse me. You have an important message. It says:</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>{1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<event>newMail</event>
</command>