Google Voice SMS Plugin

Posted on
Sun Nov 03, 2013 9:58 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

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

Done - was working on it as you guys were posting.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Nov 03, 2013 10:31 am
jquestv2 offline
Posts: 18
Joined: Feb 09, 2009

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

Does anyone know how to authorize a phone to be able to send text and control Indigo?

Thanks,
John

Posted on
Sun Nov 03, 2013 5:44 pm
colovin offline
Posts: 173
Joined: Oct 27, 2009

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

ddollar, fix worked great. Thank you


OK, I have to change this. I rebooted my computer, now I'm back to the same can't log into google voice will try again in 10 seconds with the edited file.

For What It's Worth. I had made a copy of the original so I had something to fall back on. Name was GoogleVoiceSMScopy.indigoPlugin Made changes to the original (- .copy) and moved it out of the plugins folders (both of them) When I rebooted my computer it moved the copy back into the disabled folder. I zipped the file and put it on the desktop. Plugin still not working. Copy keeps reappearing in the plugin folder even though I deleted it except for the zipped file on my desktop. Finally deleted the non-copy one, renamed the copy by deleting .copy and made the modifications to that file. Now there is peace in the world once again. Not sure why it would not let go of the .copy file. It wasn't even the original file, I modified the original. DON'T WALK INTO THE LIGHT! :-)
Last edited by colovin on Mon Nov 04, 2013 3:55 am, edited 1 time in total.

Indigo 7.1.1, OS 10.14.6, MacMini .3.2 GHz 6 Intel Core i7, 64 GB ram

Posted on
Sun Nov 03, 2013 7:10 pm
jascha offline
Posts: 7
Joined: Oct 30, 2013

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

ddollar, you rock!

Posted on
Mon Nov 04, 2013 7:37 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

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

jquestv2 wrote:
Does anyone know how to authorize a phone to be able to send text and control Indigo?

Thanks,
John


You have to setup a device for whatever phone number you're trying to authorize and then use a message from that phone as a trigger.

Posted on
Mon Nov 04, 2013 7:59 am
rszmetro offline
Posts: 104
Joined: Sep 10, 2009
Location: East Hills, NY

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

Thanks for getting on this so quickly. I've been having the same issue and was about to do the code update. All seems to work fine.

Great stuff.

Rob Z

Rob Z

Posted on
Tue Nov 05, 2013 9:31 am
ddollar offline
Posts: 15
Joined: Nov 01, 2013
Location: Atlanta, GA

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

Glad it's working for everyone and thanks for posting the revised plugin :)

I appreciate all the offers of donations! Would you perhaps consider making a donation to your favorite charity instead? If you don't have one in mind, here's a great one:
http://www.girlswhocode.com/about-us/

Cheers :)

Posted on
Wed Nov 06, 2013 10:11 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

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

Okay, sorry about the delay. I wanted to test things out better, and between work and home, I haven't been happy with the testing time I have had.

v1.2 of my "forked" version of Google Voice SMS is available.

https://dl.dropboxusercontent.com/u/241 ... 20v1.2.zip

Changes include:

1) Modification to support the revised Google Voice Web site
2) The Google Voice devices now have a field called Authorized Contact Name.

Now for many people, this Authorized Contact Name field may not be needed. You can safely leave it blank.

But in my experience, since I have my contacts list synchronized with my Google Account, it means that my Text Messages come in as "Benjamin Schollnick", not my cell phone number (eg. 5555551212). So in my case, the Phone Number field has my correct cell number, but GoogleVoice SMS would reject my texts, since it only would see the text message coming from my name since Google Voice substituted my Full Name instead of my cell number.

So if you have your contacts uploaded in the Google Database what should you do? One option is to go into your contact and delete your cell phone number. But that defeats the purpose of having your contacts in Google.

Instead place that name in the Authorized Contact Name field.

When a text is detected, the plugin will check to see if it's a Integer number, if so, it will compare with the phone number field.

If it isn't a Integer, then it will check against the Authorized Contact Name field. If either field matches, then it will authorize the incoming text, and process it.

- Benjamin

------
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
Wed Nov 06, 2013 11:29 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

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

Ben,
You should submit your version to the plugin library. I don't have google contacts, but I can imagine quite a number of people do.

Jay,
I did try to private message ChrisB but I don't think he has it enabled. I am assuming you've got an email address for him to be able to ask him if he wouldn't mind open sourcing it to the community (or Ben) so it can continue to be maintained and developed?

Posted on
Wed Nov 06, 2013 12:19 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

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

Already sent him an email - no response yet. Matt and I are discussing options and we'll let everyone know what we ultimately decide.

Ben, email me your zipped up version and I'll replace the one in the File Library. Make sure the version # of yours is greater than the one that's in there now please.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Nov 07, 2013 1:28 am
dshj offline
User avatar
Posts: 84
Joined: Jan 16, 2010
Location: San Francisco, CA

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

Hey, guys!

The %%v:VARID:%% isn't working in the newest version. Is there an easy fix for this?

Posted on
Thu Nov 07, 2013 8:33 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

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

dshj wrote:
Hey, guys!

The %%v:VARID:%% isn't working in the newest version. Is there an easy fix for this?



Page 4 of this thread had the code changes for the variable substitution. I had thought that had been updated to include in the latest public version... will investigate.

Update: After digging back in my messages, I was finally able to get the variable substitution working again. However, I'm not sure how this got mixed up in the first place since I believe both of the last two revisions were sent from my computer :/

Not sure how to handle this since another newer version from Ben with the above changes is sitting out there... I don't want to get the revisions mixed up too much. If someone needs the variable substitution version, please PM me your email and I can send it your way. Otherwise we can just bump the revision again after Ben gets his version up.

Posted on
Thu Nov 07, 2013 10:35 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

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

jay (support) wrote:
Plugin writers have to enable variable substitution on the fields they want it enabled on - so Chris will need to implement the substituteVariable method (described in the method tables of the plugin.py documentation).


Jay,

I am attempting to update this using the variable substitution as described in the 6 plugin guide:

From the guide:

# call for variable substitution on the message field they entered
theMessage = self.substitute(action.props.get("message", ""))

From the v1.3 version of the Google Voice SMS:

indigo.server.log ("%s" % smsMessage)
smsMessage = self.substitute ( inString = smsMessage, validateOnly = False )
indigo.server.log ("%s" % smsMessage)

The call is being performed, there is no error, but no substitution is occurring.

I am using a trigger to test this, and using the following text:

This is a test %%v:isDaylight%% %%v:TagLeaves%% and more

Any suggestions? This is with Indigo v6.03.

------
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
Thu Nov 07, 2013 10:36 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

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

Dewster35 wrote:
dshj wrote:
Hey, guys!

The %%v:VARID:%% isn't working in the newest version. Is there an easy fix for this?



Page 4 of this thread had the code changes for the variable substitution. I had thought that had been updated to include in the latest public version... will investigate.

Update: After digging back in my messages, I was finally able to get the variable substitution working again. However, I'm not sure how this got mixed up in the first place since I believe both of the last two revisions were sent from my computer :/

Not sure how to handle this since another newer version from Ben with the above changes is sitting out there... I don't want to get the revisions mixed up too much. If someone needs the variable substitution version, please PM me your email and I can send it your way. Otherwise we can just bump the revision again after Ben gets his version up.


I am investigating adding it into v1.2, but I've run into a snag. Since this is the first Variable Substitution that I have worked on, I am asking Jay for some clarification.

- Benjamin

------
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
Thu Nov 07, 2013 10:38 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

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

Ben.... see link for updated plugin with variable substitution added.

https://www.dropbox.com/sh/piynzn02dkrfiza/TZbS59iEcF

Page 13 of 21 1 ... 10, 11, 12, 13, 14, 15, 16 ... 21

Who is online

Users browsing this forum: No registered users and 1 guest