This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LAN IP to KNX object - SOLVED
#2
For public IP:

Code:
require('json')
require('socket.http')
socket.http.TIMEOUT = 5
local data = socket.http.request('http://api.ipify.org')

if not data then
  return
  log('No response getting IP')
end

--log(data)

if data == 'Bad Gateway' then
 
else

ip_old = storage.get('ip_old')
if ip_old == nil then
  storage.set('ip_old', data)
end
Reply


Messages In This Thread
LAN IP to KNX object - SOLVED - by toujour - 29.01.2026, 07:26
RE: LAN IP to KNX object - SOLVED - by FatMax - 29.01.2026, 08:16
RE: LAN IP to KNX object - SOLVED - by admin - 29.01.2026, 08:17

Forum Jump: