Well after many years as a forum member, with no programming experience I’ve attempted a number of plugin in the past with little/no success - mostly due to my ideas being well beyond my capabilities ![]()
But one thing I thought I could do ( to help me learn) was a simple plugin that will show me my external IP and - seeing as it can be changed by my ISP; when used within either a scene, PLEG or in the start up with luup.variable_watch it could notify me that my external IP address has been changed.
Attached is my first working attempt, which I’m calling v0.1
Note - v0.1 just captures the IP, the is no scheduled refresh other than on Luup restart and has been tested against UI5 only at the moment.
V0.1 - Creates a device on the UI, which displays your external facing IP address.
Future ideas/updates (which I would appreciate any and all help/guidance on)
a) Set the initialize function to loop through every 30 mins to check if the IP has changed
b) Make text on the front show the entire IP address (currently it seems to cut it off no matter what I do)
c) Make the device icon visible (not sure why the URL in the JSON is not working)
d) Store a history of IP changes in a txt/HTML file on Vera for history
e) Add a variable where you can set the refresh e.g default would be 30, but you can set to anything
Spin off…
i) As the current plugin grabs text from a website, look to evolve it some other instances can be created to capture information from other places.
- FYI - Your external IP information is already available via Vera’s own Set Up / Net & Wifi / Network Troubleshooting option .