Twilio plugin - BETA

Posted on
Sat Jun 25, 2016 12:26 am
mclass offline
Posts: 160
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Twilio plugin - BETA

All good now - just needed a "pleasant Saturday afternoon" to reload and explore. Now to interconnect with my remote cell controller!

Thanks again for the plugin!


Sent from my iPad using Tapatalk

Posted on
Sat Jun 25, 2016 11:38 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Twilio plugin - BETA

v0.0.5 released.

Place a voice call with a spoken message (from text string).
Send MMS messages - media must be accessible from public internet via URL, no upload capability

See viewtopic.php?f=177&t=16318 for more info.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jul 12, 2016 10:41 pm
zachhcaz offline
Posts: 6
Joined: Dec 02, 2014

Re: Twilio plugin - BETA

mclass, I'm see the same issue.

Jul 12, 2016, 10:36:23 PM
Enabling plugin "Twilio 0.0.5"
Starting plugin "Twilio 0.0.5" (pid 460)
Twilio Error Error in plugin execution InitializeMain:

Traceback (most recent call last):
File "plugin.py", line 10, in <module>
ImportError: No module named twilio.rest

Stopping plugin "Twilio 0.0.5" (pid 460)
Stopped plugin "Twilio 0.0.5"
Error plugin "Twilio 0.0.5" (pid 460) failed to start -- restarting in 5 seconds
Reloading plugin "Twilio 0.0.5"

Can you provide a little more detail on how you over came this issue?

Posted on
Tue Jul 12, 2016 11:06 pm
zachhcaz offline
Posts: 6
Joined: Dec 02, 2014

Re: Twilio plugin - BETA

Ok I have it up and running.

I had to run the following two lines.
sudo easy_install-2.6 pip
sudo pip2.6 install twilio

It seems to be working great so far. One issue I found when trying to click the "Check for Messages" under the plugin menu we get the following error in the Log but it runs and works as desired.

Jul 12, 2016, 11:01:44 PM
Twilio Error Error in plugin execution MenuAction:

Traceback (most recent call last):
File "plugin.py", line 328, in checkAllMessages
File "plugin.py", line 336, in checkMessages
KeyError: key delete not found in dict

Posted on
Wed Jul 13, 2016 7:18 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Twilio plugin - BETA

zachhcaz wrote:
It seems to be working great so far. One issue I found when trying to click the "Check for Messages" under the plugin menu we get the following error in the Log but it runs and works as desired.

Jul 12, 2016, 11:01:44 PM
Twilio Error Error in plugin execution MenuAction:

Traceback (most recent call last):
File "plugin.py", line 328, in checkAllMessages
File "plugin.py", line 336, in checkMessages
KeyError: key delete not found in dict


Edit the Device configuration and check/uncheck the delete messages box as needed, then save the config. I'm not sure how you managed to get a phone number into the config without the delete key getting set, but that appears to be the problem. If you're still getting the error message, enable debug mode then do the menu action. Then post the log section.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Aug 11, 2016 7:23 pm
btassias offline
Posts: 48
Joined: Apr 18, 2011

Re: Twilio plugin - BETA

Hi
I see im not the only one having sporadic problems with GV when it works it works good but over the last couple weeks its failing the login attempts . So i saw this Twilio plugin
so i installed v0.0.5 on my mini mac running OSX 10.7.5 i did the sudo easy_install pip and Twilio and I'm seeing almost the same error i saw in a earlier post. the first log was from
the install of pip and second was the Indigo error, maybe i miss read how to install this any suggestion
Bret
Attachments
Screen Shot 2016-08-11 at 8.55.14 PM.png
Screen Shot 2016-08-11 at 8.55.14 PM.png (78.89 KiB) Viewed 2261 times
Screen Shot 2016-08-05 at 10.46.41 PM.png
Screen Shot 2016-08-05 at 10.46.41 PM.png (35.07 KiB) Viewed 2261 times

Posted on
Thu Aug 11, 2016 8:11 pm
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Twilio plugin - BETA

You installed Twilio for Python 2.7. You need to install it for Python 2.6.

Code: Select all
sudo easy_install pip2.6

sudo pip2.6 twilio

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Aug 12, 2016 6:37 pm
btassias offline
Posts: 48
Joined: Apr 18, 2011

Re: Twilio plugin - BETA

Hi

Thanks for your quick response i tried to do the first one sudo easy_install pip2.6 and it seems from the error
it couldn't find it, have you seen this before?

Bret
Attachments
Screen Shot 2016-08-12 at 8.19.36 PM.png
Screen Shot 2016-08-12 at 8.19.36 PM.png (18.95 KiB) Viewed 2203 times

Posted on
Fri Aug 12, 2016 6:54 pm
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Twilio plugin - BETA

Please copy and paste the terminal or log output into CODE tags, not screen shots. They're very hard to read.

I had the command wrong:
Code: Select all
sudo -H easy_install-2.6 pip

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Oct 21, 2016 1:11 am
rhanson offline
Posts: 141
Joined: Apr 30, 2013

Re: Twilio plugin - BETA

Hi. Played with this today, it's a great start!

Two things:
- what was the intent of placing a call and enjoying the hold music? Notification to primary mobile and bridging?
- Minor error found:

Code: Select all
  File "plugin.py", line 264, in sendMMSAction
  File "plugin.py", line 276, in sendMMS
NameError: global name 'smsDevice' is not defined


Thanks for doing this!

Posted on
Fri Oct 21, 2016 5:49 am
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Twilio plugin - BETA

1. Go back and read some of the older threads on this plugin. There's a user that needed a way to play a voice call to activate a device. The music is just a placeholder.

2. Already fixed in my code. Will be in the next release.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Nov 03, 2016 7:35 pm
btassias offline
Posts: 48
Joined: Apr 18, 2011

Re: Twilio plugin - BETA

Hi

Well its been just about 3 months now with twilio up and running with no problems, And for only $1 per month and just pennies
per text well worth it to be able to get text of power outage or water leaks and so on. Not sure if anyone is willing to tackle
GV issues or not. My next thing is id like to try to have my Indigo act on a receive a text from my twilio account to control stuff if i text my
twilio number what i get back is ( Hello from twilio) I tried adding a new (Trigger Event) where it says Pattern Match in SMS
Message there a few settings like Twilio Number Match type and Match in, didn't look thru the forums to see if someone has this working
any thoughts what i can try You must of put a lot of time in writing this plugin is there someway to contribute for your effort in this project?
Thanks
Bret

Posted on
Thu Nov 03, 2016 7:57 pm
FlyingDiver offline
Posts: 2562
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Twilio plugin - BETA

btassias wrote:
My next thing is id like to try to have my Indigo act on a receive a text from my twilio account to control stuff if i text my twilio number what i get back is ( Hello from twilio) I tried adding a new (Trigger Event) where it says Pattern Match in SMS Message there a few settings like Twilio Number Match type and Match in, didn't look thru the forums to see if someone has this working any thoughts what i can try. You must of put a lot of time in writing this plugin is there someway to contribute for your effort in this project?


Actually, this was a fairly easy plugin to get the basics working. The Twilio API and library for Python is quite easy to use.

When you send a text to your Twilio number, it gets saved on their server for retrieval. There's an action you can use to poll their server for new texts, using an Indigo schedule.. Or you can use the method outlined in this thread to get immediate notifications: viewtopic.php?f=177&t=16318

On the account portal in Twilio you can control what reply message gets sent back when you send a text to a Twilio number. The default is that Hello message.

Hope that helps.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 06, 2016 8:32 am
btassias offline
Posts: 48
Joined: Apr 18, 2011

Re: Twilio plugin - BETA

Hi

Well that worked out good with the Action and Schedule for polling Twilio message. I'll try looking at other things i can do with it.
As far as the Account portal for the replay message it took a little digging to get down to what i saw Dev Tools and edit TwiML Bin
But i got . Because of my traveling for work it nice to be able to get notification when power went out and the generator has kicked
on and Temp and other things. Nice Plugin and so far very reliable.

Bret

Posted on
Sat Nov 12, 2016 7:48 am
stingers96 offline
Posts: 12
Joined: Jan 11, 2009

Re: Twilio plugin - BETA

Thanks for the great plugin. I have been looking for something to replace Google SMS for a while now. It might be helpful to others to update the readme file distributed with the plugin for the proper python install instructions and maybe a reference to the twilio getting started Post.

I think i used these commands, but i had to try a few and am not 100% positive, if someone could verify please to help future users. (I will adjust as necessary from suggestions)
thanks again for the gereat plugin!

Code: Select all
sudu -H easy_install pip2.6
sudu pip2.6 install twilio

Who is online

Users browsing this forum: No registered users and 0 guests