External IP Plugin for Indigo v5

Posted on
Mon Nov 05, 2012 4:07 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: External IP Plugin for Indigo v5

Works perfectly, though the filename says v1.07 but the plugin identifies itself as v1.06!

Thanks!

Computer says no.

Posted on
Mon Nov 05, 2012 6:20 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: External IP Plugin for Indigo v5

durosity wrote:
Works perfectly, though the filename says v1.07 but the plugin identifies itself as v1.06!

Thanks!


I thought I updated the preference file, I'll update that and make a public release...

- 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
Sat Jun 29, 2013 3:41 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: External IP Plugin for Indigo v5

I get the following error message after starting:

=======
Enabling plugin "External IP Address Plugin 1.06"
Starting plugin "External IP Address Plugin 1.06" (pid 43729)
Started plugin "External IP Address Plugin 1.06"
Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.External_IP for request UiGetValues1
Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.External_IP for request CallPluginFunc
Error (client) runConfigDialog() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
========
Indigo 6.0.0.0b10


any suggestions?

Karl

Posted on
Tue Jul 02, 2013 12:18 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: External IP Plugin for Indigo v5

kw123 wrote:
I get the following error message after starting:

=======
Enabling plugin "External IP Address Plugin 1.06"
Starting plugin "External IP Address Plugin 1.06" (pid 43729)
Started plugin "External IP Address Plugin 1.06"
Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.External_IP for request UiGetValues1
Error (client) timeout waiting for plugin response from com.schollnick.indigoplugin.External_IP for request CallPluginFunc
Error (client) runConfigDialog() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
========
Indigo 6.0.0.0b10


any suggestions?


Off the top of my head? Not really. I'll have to investigate.

- 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
Sun Sep 22, 2013 5:05 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: External IP Plugin for Indigo v5

I’m in the middle of creating a brand new Indigo DB for a new house. I just went to install this plugin and configure it, but as soon as i do i get this error:

Code: Select all
  External IP Address Plugin      Manual External IP Address Update Requested
  External IP Address Plugin      External IP Plugin Updating
  External IP Address Plugin ErrorError in plugin execution MenuAction:

Traceback (most recent call last):
  File "plugin.py", line 161, in manual_update_menutrigger
  File "plugin.py", line 180, in update_ip_address
  File "plugin.py", line 148, in retrieve_ip_from_whatismyip
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 124, in urlopen
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 381, in open
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 399, in _open
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 360, in _call_chain
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 1118, in http_open
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 1093, in do_open
<class 'urllib2.URLError'>: <urlopen error (61, 'Connection refused')>


I downloaded from the previous link you posted that had it listed as v1.07, but when i install it i get v1.06. I tried downloading from your list of plugins here but just get a 404 error when i try to download the 1.07 (https://dl.dropbox.com/u/241415/Indigo% ... 20v107.zip). I thought i’d had this running fully on my old DB but can’t find it, so tried setting it up again but same issue. Just for reference i’m running Indigo 6.0.2, the DB is brand new (not a modification of the demo house) and just to make sure I wasn’t going crazy I installed it on a completely different machine in a different house, and setup a brand new DB with just this one plugin/device but still got the same problem. Any ideas?

Computer says no.

Posted on
Mon Sep 23, 2013 12:40 am
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: External IP Plugin for Indigo v5

durosity wrote:
I’m in the middle of creating a brand new Indigo DB for a new house. I just went to install this plugin and configure it, but as soon as i do i get this error:

Code: Select all
  External IP Address Plugin      Manual External IP Address Update Requested
  External IP Address Plugin      External IP Plugin Updating
  External IP Address Plugin ErrorError in plugin execution MenuAction:

Traceback (most recent call last):
  File "plugin.py", line 161, in manual_update_menutrigger
  File "plugin.py", line 180, in update_ip_address
  File "plugin.py", line 148, in retrieve_ip_from_whatismyip
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 124, in urlopen
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 381, in open
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 399, in _open
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 360, in _call_chain
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 1118, in http_open
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 1093, in do_open
<class 'urllib2.URLError'>: <urlopen error (61, 'Connection refused')>


I downloaded from the previous link you posted that had it listed as v1.07, but when i install it i get v1.06. I tried downloading from your list of plugins here but just get a 404 error when i try to download the 1.07 (https://dl.dropbox.com/u/241415/Indigo% ... 20v107.zip). I thought i’d had this running fully on my old DB but can’t find it, so tried setting it up again but same issue. Just for reference i’m running Indigo 6.0.2, the DB is brand new (not a modification of the demo house) and just to make sure I wasn’t going crazy I installed it on a completely different machine in a different house, and setup a brand new DB with just this one plugin/device but still got the same problem. Any ideas?



If I remember correctly, whatsmyip now makes you sign up for an account to use the service. I modified the plug in to use my own account, and all is good.

Posted on
Mon Oct 14, 2013 1:34 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: External IP Plugin for Indigo v5

I’m in the middle of creating a brand new Indigo DB for a new house. I just went to install this plugin and configure it, but as soon as i do i get this error:

[code] External IP Address Plugin Manual External IP Address Update Requested
External IP Address Plugin External IP Plugin Updating
External IP Address Plugin ErrorError in plugin execution MenuAction:

Traceback (most recent call last):

If I remember correctly, whatsmyip now makes you sign up for an account to use the service. I modified the plug in to use my own account, and all is good.


Snip.

That's new. I haven't looked into this in a while, so it doesn't surprise me that whatismyip.com would or might do something like this.

I will look resolving this.

My I'll look into using Google's own IP reflector instead. It would be less likely to break in this manner.

- 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
Tue Oct 15, 2013 10:19 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: External IP Plugin for Indigo v5

put the following code in a scheduled action ( 5 minutes interval should be fine).
It puts the current public IP number into the variable "my_IP_address" (has to be created first)

Code: Select all
set ipNumber to do shell script "curl ip.appspot.com" 
tell application "IndigoServer"
      set value of variable "my_IP_address" to ipNumber 
end tell

Posted on
Tue Oct 15, 2013 4:51 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: External IP Plugin for Indigo v5

kw123 wrote:
put the following code in a scheduled action ( 5 minutes interval should be fine).
It puts the current public IP number into the variable "my_IP_address" (has to be created first)

Code: Select all
set ipNumber to do shell script "curl ip.appspot.com" 
tell application "IndigoServer"
      set value of variable "my_IP_address" to ipNumber 
end tell


Yes, KW123, that's correct. That will work. But it doesn't replace the External IP Plugin.

In addition, it will also update your Dynamic DNS provider to help ensure that your system is available for external IP access, & email you on IP address changes.

I have a test version that is ready for examination. If anyone wants to test it, please email me at Benjamin AT schollnick.net.

The new version follows RFC 3489: http://www.ietf.org/rfc/rfc3489.txt, and will use the following servers to detect your IP address.

* "stun.ekiga.net",
* 'stunserver.org',
* 'stun.ideasip.com',
* 'stun.softjoys.com',
* 'stun.voipbuster.com',

In addition, it can classify what type of NAT you are using, and what Network port your NAT is bound to. Please note, it does not use this information at this time, nor does it store this information.

Switching to RFC 3489 makes that information available, but I don't see a practical use for it, nor do I want to rewrite the plugin at this time.

- 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
Tue Oct 15, 2013 4:52 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: External IP Plugin for Indigo v5

bschollnick2 wrote:
I will look resolving this.

My I'll look into using Google's own IP reflector instead. It would be less likely to break in this manner.


I found a better solution at this time.

I have a test version that is ready for examination. If anyone wants to test it, please email me at Benjamin AT schollnick.net.

The new version follows RFC 3489: http://www.ietf.org/rfc/rfc3489.txt, and will use the following servers to detect your IP address.

* "stun.ekiga.net",
* 'stunserver.org',
* 'stun.ideasip.com',
* 'stun.softjoys.com',
* 'stun.voipbuster.com',

In addition, it can classify what type of NAT you are using, and what Network port your NAT is bound to. Please note, it does not use this information at this time, nor does it store this information.

Switching to RFC 3489 makes that information available, but I don't see a practical use for it, nor do I want to rewrite the plugin at this time.

- 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
Fri May 20, 2016 11:51 am
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: External IP Plugin for Indigo v5

cool idea for a plugin.

Im using noip.com for my dynamic DNS. Still interested in testers for other services besides DynDns?

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Fri May 20, 2016 5:32 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: External IP Plugin for Indigo v5

Different Computers wrote:
cool idea for a plugin.

Im using noip.com for my dynamic DNS. Still interested in testers for other services besides DynDns?


If your interested, let me know at Benjamin AT schollnick DOT net....

I'm not doing much indigo programming right now, but if there is a request, I'll look into it.

------
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

Who is online

Users browsing this forum: No registered users and 3 guests