Page 1 of 1

Control via Email - Plugin Request

Posted: Mon Dec 12, 2011 3:11 pm
by Milenko
Hey all,

I think it would be a neat feature to be able to control OSA via email. An easy example would be the ability to run Named Scripts. Something simple like just putting the name of the script in the body or subject and then OSA would run the appropriate script upon receipt of the email.

Something more advanced might be to actually put whole statements in the body of the email and have OSA execute those.

I was thinking this might be an easy way to control specific parts of OSA from a smartphone when on the road.

Re: Control via Email - Plugin Request

Posted: Mon Dec 12, 2011 4:03 pm
by bwoodworth
I could see the benefit of sending an email with a full script in it to have OSA execute it. Other than that the Jabber plugin gives me all the control I need for my smartphone. Have you tried the Jabber plugin yet? It's basically an instant message protocol that maybe popular services, like gchat use. You can run named scripts this way. You can even carry on a conversation with OSA with it. I have an android smartphone so gChat is built in and I can send messages to OSA easily from my phone. Maybe I can consider adding functionality to the Jabber plugin to run full scripts.

Re: Control via Email - Plugin Request

Posted: Mon Dec 12, 2011 5:33 pm
by Milenko
Oh sweet! No, I haven't used the jabber plugin but I definitely will now. Being able to run full scripts would be cool, but just named scripts for now will let me do what I wanted.

Thanks Brian!

Re: Control via Email - Plugin Request

Posted: Mon Dec 12, 2011 6:32 pm
by Milenko
So I think I'm missing a step with the jabber plugin. I've created a jabber account, downloaded a client, and then added my gmail account as a contact. Setup the jabber object with username and password. Restart the OSA service, and my gmail account is created as an object.

Not sure what to do now though. ;)

I did try sending a jabber message, but nothing ever comes through.

Code: Select all

Jabber.Run Method.Send Message.myemail@gmail.com,"The time is currently [system.time]"

Re: Control via Email - Plugin Request

Posted: Mon Dec 12, 2011 7:27 pm
by AlexSG
Hmm. I may try that. What if you just send the pattern OSA is looking for? Like Time or What mode are you in?

Re: Control via Email - Plugin Request

Posted: Mon Dec 12, 2011 8:36 pm
by Milenko
I tried that and nothing seems to happen.

It's like the plugin thinks it's online, but really isn't. The gtalk app on my phone says that my osa jabber account is online, but it seems to be loosing the messages somewhere.

Re: Control via Email - Plugin Request

Posted: Mon Dec 12, 2011 8:54 pm
by bwoodworth
Logs? The jabber log should have some good info in it. Make should you have the debug property on the SYSTEM set to true to get all the logs. First thing I would test is to send messages back and forth between two desktop clients. i.e. log into gmail with both account using different browsers and try to message back and forth. At least with gChat I know both accounts have to have added each other for you to be able to send messages back and forth