Google Voice SMS Plugin

Posted on
Thu Nov 07, 2013 10:57 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:
Ben.... see link for updated plugin with variable substitution added.

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


Thanks for the link, that version is doing effectively the same thing that I am doing in my version of the plugin.

I did take your code, and try it, with the same results. Executing the Trigger does fire the plugin off correctly, but the variable substitution does not seem to be occurring.

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

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

Ben... not sure what to tell you. All that was modified the plugin.py file and I am sending %%v:376374459%% (With all of the numbers being the variable ID)in the message. Did you actually try installing this version of the plugin or just copy/paste the snippet of code? It should increment to 1.1.3 and update.

Posted on
Thu Nov 07, 2013 11:21 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

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

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


Those should be variable IDs, not variable names.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Nov 07, 2013 11:41 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:
bschollnick2 wrote:
This is a test %%v:isDaylight%% %%v:TagLeaves%% and more


Those should be variable IDs, not variable names.


Oh. As you can see I have not yet availed myself in using these substitutions yet.

I see that now, and it makes more sense. But doesn't that make it a little harder to debug, since the Integer number makes it a little harder to troubleshoot?

- 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 12:15 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

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

Not really. And it keeps actions from breaking when the user changes the name of a device or variable.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Nov 07, 2013 12:23 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

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

Anyone invested in taking feature requests if this plugin goes open source? You know... in case you're bored ;)

If so, having an action to send a message to all GV SMS Plugin Device numbers or to receive an GV SMS Plugin Device message as a trigger would be a great enhancement :)

Posted on
Thu Nov 07, 2013 4:03 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

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

I just heard from Chris and he's given us permission to open source the plugin. Ben, when you're done with your changes email me the plugin.

We have a plan for how to handle open source plugins and I'll get this one ready. More details to come - watch for an announcement post in the Extending Indigo with Plugins and Python forum for details.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Nov 10, 2013 12:35 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

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

One feature request would be to add a "Text Contains" option.

Posted on
Sun Nov 10, 2013 6:47 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

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

jltnol wrote:
One feature request would be to add a "Text Contains" option.


Can you give a little bit more elaboration on this?

Thanks,

- 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
Sun Nov 10, 2013 10:57 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

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

Hey Ben

Yes...

I'm having some computer generated SMS's sent to Indigo... and the text is always going to be slightly different, so BECOMES EQUAL TO always fails. But CONTAINS would succeed.

And the other two options, Becomes Not Equal To, and Has Any Change don't allow for different messages Triggering different things....

Make sense?

Posted on
Sun Nov 10, 2013 11:04 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

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

jltnol wrote:
Hey Ben

Yes...

I'm having some computer generated SMS's sent to Indigo... and the text is always going to be slightly different, so BECOMES EQUAL TO always fails. But CONTAINS would succeed.

And the other two options, Becomes Not Equal To, and Has Any Change don't allow for different messages Triggering different things....

Make sense?


Perhaps an easier concept, I have triggers for changing the thermostat. Heat at 67, 68, 69, 70 etc... so separate triggers for each one of those. If we had a contains "Thermostat", we could trigger a script that would parse for the degrees and then change the set point to whatever number that a message that contains "Thermostat". Reducing the number of triggers to 1 per "Contains" term.

Posted on
Sun Nov 10, 2013 11:20 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

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

Dewster35 wrote:
jltnol wrote:
Hey Ben

Yes...

I'm having some computer generated SMS's sent to Indigo... and the text is always going to be slightly different, so BECOMES EQUAL TO always fails. But CONTAINS would succeed.

And the other two options, Becomes Not Equal To, and Has Any Change don't allow for different messages Triggering different things....

Make sense?


Perhaps an easier concept, I have triggers for changing the thermostat. Heat at 67, 68, 69, 70 etc... so separate triggers for each one of those. If we had a contains "Thermostat", we could trigger a script that would parse for the degrees and then change the set point to whatever number that a message that contains "Thermostat". Reducing the number of triggers to 1 per "Contains" term.


No doubt this would work as well, but I'm not a script expert by any means.. and I suspect that a lot of Indigo users aren't that script savvy either, but between these two SMS messages:

Notification- xxxy from 12345

and

Notification - xxxy from 98766

If the Google SMS had a Contain option, "Contains xxxy" would trigger what I want to trigger without having to worry about trying to write a script.

Posted on
Sat Nov 16, 2013 10:36 pm
MrJeffreyGee offline
User avatar
Posts: 74
Joined: Apr 26, 2011
Location: United States

Re: Google Voice SMS Plugin

Is there a way to choose as an option or to change it to archive SMS messages after they've been processed through Indigo; instead of, them being deleted? It's kind of nice that way cause it'll be good for auditing during problems and as a record/log if needed. Plus there's no cost cause Google picks up the tab.

Posted on
Sun Nov 17, 2013 6:45 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Google Voice SMS Plugin

MrJeffreyGee wrote:
Is there a way to choose as an option or to change it to archive SMS messages after they've been processed through Indigo; instead of, them being deleted? It's kind of nice that way cause it'll be good for auditing during problems and as a record/log if needed. Plus there's no cost cause Google picks up the tab.


I will look into this. I'm not sure that the plugin can support this without being redesigned. But I'll take a look.

- 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
Sun Nov 17, 2013 10:50 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Google Voice SMS Plugin

Ben, don't forget that the source is now hosted on our GitHub account so if you make a change then create your own branch, make the change, sync it with your branch, then issue a pull request. Also, I don't believe you sent me your version with the substitution changes so you'll need to include that change as well if it's ready.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

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

Who is online

Users browsing this forum: No registered users and 1 guest

cron