Hi Mcvflorin
Feature
Is it possible to change the following in the startup for the ELK: -
local ipAddress, ipPort = string.match (luup.devices[lul_device].ip, "^(.*):(%d+)")
debug (string.format ("(Elk Plugin Startup) ipAddress=%s, ipPort=%s", tostring (ipAddress), tostring (ipPort)))
if (ipAddress and ipAddress ~= "") then
if (not ipPort) then
ipPort = 5000
end
with
local ipAddress, ipPort = string.match (luup.devices[lul_device].ip, "(%d+.%d+.%d+.%d+):?(%d*)")
if (ipAddress and ipAddress ~= "") then
if (ipPort==nil) or (ipPort == "") then
ipPort = 2101
end
debug (string.format ("(Elk Plugin Startup) ipAddress=%s, ipPort=%s", tostring (ipAddress), tostring (ipPort)))
If the ip address is entered without the port the first instance does not work, for me anyway.
Thanks
John