Twilio plugin - BETA
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
Thanks again for the plugin!
Sent from my iPad using Tapatalk
- FlyingDiver
- Posts: 7326
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
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 http://forums.indigodomo.com/viewtopic. ... 77&t=16318 for more info.
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 http://forums.indigodomo.com/viewtopic. ... 77&t=16318 for more info.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
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?
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?
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
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
- FlyingDiver
- Posts: 7326
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Twilio plugin - BETA
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.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
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
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
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 (78.89 KiB) Viewed 9642 times
-
- Screen Shot 2016-08-05 at 10.46.41 PM.png (35.07 KiB) Viewed 9642 times
- FlyingDiver
- Posts: 7326
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
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
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
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
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 (18.95 KiB) Viewed 9584 times
- FlyingDiver
- Posts: 7326
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
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:
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
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
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:
Thanks for doing this!
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
- FlyingDiver
- Posts: 7326
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
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.
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
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
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
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
- FlyingDiver
- Posts: 7326
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Twilio plugin - BETA
Actually, this was a fairly easy plugin to get the basics working. The Twilio API and library for Python is quite easy to use.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?
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: http://forums.indigodomo.com/viewtopic. ... 77&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
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
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
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
-
- Posts: 12
- Joined: Sun Jan 11, 2009 4:51 pm
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!
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