10.12.2015, 14:36
Add a scheduled script which runs once in an hour or more frequently, depending on your needs:
Code:
http = require('socket.http')
ip = http.request('http://openrb.com/ip')
if ip then
ip_old = storage.get('lm_ip', '')
if ip ~= ip_old then
subject = 'LM IP changed'
message = 'New IP: ' .. ip
mail('user@example.com', subject, message)
storage.set('lm_ip', ip)
end
end