OK will do and report back, thanks
In the blue banner at the top I am getting:
WAN IP[162] : Startup Lua Failed
In the log I see this:
01/08/22 17:24:17.009 luup_log:162: ExternalIP: Plugin STARTING-UP! <0x77299520>
01 01/08/22 17:24:17.013 luup_require [string "module("L_ExternalIP1", package.seeall)..."]:74: ')' expected (to close '(' at line 72) near 'refreshExternalIP' <0x77299520>
01 01/08/22 17:24:17.014 LuaInterface::CallFunction_Startup-1 device 162 function initialiseExternalIPPlugin failed [string "..."]:6: attempt to call field 'ExternalIPStartUp' (a nil value) <0x77299520>
01 01/08/22 17:24:17.014 LuImplementation::StartLua running startup code for 162 I_ExternalIP1.xml failed <0x77299520>
03 01/08/22 17:24:17.015 JobHandler_LuaUPnP::m_bReloadCriticalOnly_set now 1 <0x77299520>
03 01/08/22 17:24:17.016 JobHandler_LuaUPnP::m_bReloadCriticalOnly_set now 0 <0x77299520>
I also see this line:
01/08/22 17:24:08.532 JobHandler_LuaUPnP::Run device 162 ptr 0xfa7bd0 WAN IP room 0 type urn:nodecentral-net:device:ExternalIP:1 cat 77:0 id parent 0/0xfebc88 upnp: 0 plugin:0 pnp:0 mac: ip: <0x77ab3000>
I just uploaded all the files again from the new Github zip file etc.
@cw-kid - It looks like a typo on line 72 removed the closing paren. Luup-External-IP/L_ExternalIP1.lua at main · nodecentral/Luup-External-IP · GitHub You could add the closing paren and try again…
Sorry about that, I think my test Vera’s got so overloaded of late with all the plugins I’ve been building, that I’m now not seeing any task/error messages via the UI…
I’ve corrected the error, and uploaded a new version to the GitHub repository
Thanks guys the plugin start up error has gone now. I can see we have a new “Poll Period” variable set to 86400 by default.
I changed this to 300 seconds aka 5 minutes. I then dropped my VPN tunnel.
Waited the 5 minutes and the Plugin device did change the current IP, to that of the ISP’s assigned IP.
So all seems to be working well !
In MSR you can then create a rule that is triggered off that IP change like this:
And make your rule Actions do whatever you like, send a notification or TTS or whatever.
plugin works fine for me. Thx