Google Voice SMS Plugin

Posted on
Sun Dec 16, 2012 12:52 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

You have to setup a device for just the authorized numbers that you want to use for access. So if it is just your number that you want messages sent to and from the plugin, you only need your number setup as a device. The home google voice number is setup in the config menu of the plugin setup.

Posted on
Mon Dec 17, 2012 11:41 am
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

MountainEars wrote:
Would it be possible to leverage iMessage for this instead of using GoogleVoice? IMessage does not use the text services and can work on macs with MountainLion and newer iPhone and iPads. Setup an account on your Mac with indigo on it and then use your mobile devices to send to it.

I just noticed that iMessage has the built-in ability to trigger Applescripts upon receiving a message. I'm going to start playing around with this to trigger Indigo Server via Applescript. Seems too easy a solution so I'm probably missing something. :?

Posted on
Mon Dec 17, 2012 11:47 am
dmeeker@mac.com offline
Posts: 85
Joined: Aug 26, 2011

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

That would be great. The Google Voice/SMS plugin is cool, but it seriously eats up CPU and isn't reliable because of that. I'd love to hear what you come up with!

Posted on
Mon Dec 17, 2012 1:13 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

dmeeker@mac.com wrote:
That would be great. The Google Voice/SMS plugin is cool, but it seriously eats up CPU and isn't reliable because of that. I'd love to hear what you come up with!


I took a look at it, and it's a relatively easy change to the plugin to reduce the CPU usage.

The main issue, is that it does not wait in-between polls of the Google Voice web site. I took a look, and made a modified version with a self.sleep command. It still works perfectly, but now has a reduced CPU load...

If people are interested, I can make it available....

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Dec 17, 2012 1:28 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

Ben,
This has worked without issue and significantly lower the CPU usage shown on the activity monitor.

Posted on
Mon Dec 17, 2012 1:32 pm
dmeeker@mac.com offline
Posts: 85
Joined: Aug 26, 2011

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

Once again, Ben saves the say.
I'd love to see the code modification or have access to the revised version.

Thanks Ben (for the 30th time).


Dave

Posted on
Mon Dec 17, 2012 2:07 pm
kendals offline
Posts: 95
Joined: May 24, 2004

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

Ben,

Can you make this available? I would appreciate it. I can only find the v1.0 script...

Scott

Posted on
Mon Dec 17, 2012 4:24 pm
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

DVDDave wrote:
MountainEars wrote:
Would it be possible to leverage iMessage for this instead of using GoogleVoice? IMessage does not use the text services and can work on macs with MountainLion and newer iPhone and iPads. Setup an account on your Mac with indigo on it and then use your mobile devices to send to it.

I just noticed that iMessage has the built-in ability to trigger Applescripts upon receiving a message. I'm going to start playing around with this to trigger Indigo Server via Applescript. Seems too easy a solution so I'm probably missing something. :?

It works! And it really is that easy. Just need to specify an applescript to run when Messages receives a message. The applescript then tells Indigo what to do depending on the text of the message. I put in some simple fixed messages like "turn on family room light" and it worked perfectly by telling Siri "iMessage Indigo turn on family room light". Since I'm not a programmer, I used the existing iTunes control example to guide me on the script.

To set this up, I created a new Apple ID for my server and told Messages to receive on that ID. I then added a contact called Indigo on my iPhone and Macs with the email associated with that Apple ID. My script also checks for my name (name of theBuddy) so random people can't trigger the actions. I will also need to secure it further if possible to prevent name spoofing.

Next step will be to parse the messages so I can handle them in a more generalized manner. I will also clean it up a bit and provide the basic script as an example for others to get started.

Woohoo!! :D

Posted on
Tue Dec 18, 2012 1:13 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

bschollnick2 wrote:
dmeeker@mac.com wrote:
That would be great. The Google Voice/SMS plugin is cool, but it seriously eats up CPU and isn't reliable because of that. I'd love to hear what you come up with!


I took a look at it, and it's a relatively easy change to the plugin to reduce the CPU usage.

The main issue, is that it does not wait in-between polls of the Google Voice web site. I took a look, and made a modified version with a self.sleep command. It still works perfectly, but now has a reduced CPU load...

If people are interested, I can make it available....

- Ben


Interested!! Yes!!

Posted on
Tue Dec 18, 2012 3:54 pm
polycron offline
Posts: 100
Joined: Jan 08, 2006

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

Add me to the interested list! My old G4 is getting tired.

Polycron

Posted on
Tue Dec 18, 2012 4:09 pm
DPattee offline
Posts: 453
Joined: Jan 14, 2004
Location: Redmond, WA

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

Yea, what's the necessary change?

I finally figured out what was making my server run so poorly, and it turned out to be the Google Voice plugin running at 90% cpu

Posted on
Tue Dec 18, 2012 8:31 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

DPattee wrote:
Yea, what's the necessary change?

I finally figured out what was making my server run so poorly, and it turned out to be the Google Voice plugin running at 90% cpu


Okay, I've updated the plugin with a small change, and it's available here.

Please keep in mind, I don't mind trying to support it, but I'm not that familiar with Google Voice.

Along with that I am very busy right now with the iAutomate RFID plugin development.

Try this, and give me some feedback.

https://dl.dropbox.com/u/241415/GoogleVoiceSMS-bas2.zip

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Dec 18, 2012 9:57 pm
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

DVDDave wrote:
DVDDave wrote:
MountainEars wrote:
Would it be possible to leverage iMessage for this instead of using GoogleVoice? IMessage does not use the text services and can work on macs with MountainLion and newer iPhone and iPads. Setup an account on your Mac with indigo on it and then use your mobile devices to send to it.

I just noticed that iMessage has the built-in ability to trigger Applescripts upon receiving a message. I'm going to start playing around with this to trigger Indigo Server via Applescript. Seems too easy a solution so I'm probably missing something. :?

It works! And it really is that easy. Just need to specify an applescript to run when Messages receives a message. The applescript then tells Indigo what to do depending on the text of the message. I put in some simple fixed messages like "turn on family room light" and it worked perfectly by telling Siri "iMessage Indigo turn on family room light". Since I'm not a programmer, I used the existing iTunes control example to guide me on the script.

To set this up, I created a new Apple ID for my server and told Messages to receive on that ID. I then added a contact called Indigo on my iPhone and Macs with the email associated with that Apple ID. My script also checks for my name (name of theBuddy) so random people can't trigger the actions. I will also need to secure it further if possible to prevent name spoofing.

Next step will be to parse the messages so I can handle them in a more generalized manner. I will also clean it up a bit and provide the basic script as an example for others to get started.

Woohoo!! :D

Sorry, I just realized this is not the right place to talk about an iMessage/Siri Applescript solution. I'll start a new thread in the Indigo & Applescript area where I'll post my results as appropriate.

Posted on
Tue Dec 18, 2012 11:22 pm
polycron offline
Posts: 100
Joined: Jan 08, 2006

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

Ben,

So far, so good. I'll try to put it through some heavy usage in the next day. It is definitely helping my CPU. I'm seeing about 14 seconds 100% CPU then dropping down to 3-11% CPU for about 10 seconds (repeating cycle). The 14 second spikes are the IndigoPluginHost (roughly 85% of the 100% usage). I'm assuming this is when the google voice part is doing its thing. I'm running a 1.5 ghz G4.

Thank you very much for taking time away from your main project to look into this!

Polycron

Posted on
Wed Dec 19, 2012 4:48 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Google Voice SMS Plugin for Indigo 5 (SIRI support added

polycron wrote:
Ben,

So far, so good. I'll try to put it through some heavy usage in the next day. It is definitely helping my CPU. I'm seeing about 14 seconds 100% CPU then dropping down to 3-11% CPU for about 10 seconds (repeating cycle). The 14 second spikes are the IndigoPluginHost (roughly 85% of the 100% usage). I'm assuming this is when the google voice part is doing its thing. I'm running a 1.5 ghz G4.


Depending on general census this can changed. I added a 10 second sleep to the login cycle in-between logins...

Does anyone think increasing that to 15/30 or 45 seconds would be a bad idea?

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Page 7 of 21 1 ... 4, 5, 6, 7, 8, 9, 10 ... 21

Who is online

Users browsing this forum: No registered users and 6 guests