Hello All
I've searched the forums all morning but cannot find an explanation on how to send a text string from ELK to another device on my network;
Basics;
I need to send this text: "What's Up{tone:2}" --
to this IP: 192.168.1.5
on TCP Port 3000.
I'm basically bypassing the VeraAlerts plugin in my VERA by communicating the text to be announced directly to my android phone.
For reference here is the LUA code to accomplish this on another system;
function VeraAlert(Host, Port, Msg)
local socket = require("socket")
local tcp = socket.tcp()
tcp:settimeout(3)
if (tcp:connect(Host, Port)) then
if (tcp:send(Msg)) then
else
print("Error Sending Msg")
end
else
print("Error Opening Socket")
end
tcp:close(socket)
end
VeraAlert("192.168.10.101", 3000, "What's Up{tone:2}")
Thanks in advance
I've searched the forums all morning but cannot find an explanation on how to send a text string from ELK to another device on my network;
Basics;
I need to send this text: "What's Up{tone:2}" --
to this IP: 192.168.1.5
on TCP Port 3000.
I'm basically bypassing the VeraAlerts plugin in my VERA by communicating the text to be announced directly to my android phone.
For reference here is the LUA code to accomplish this on another system;
function VeraAlert(Host, Port, Msg)
local socket = require("socket")
local tcp = socket.tcp()
tcp:settimeout(3)
if (tcp:connect(Host, Port)) then
if (tcp:send(Msg)) then
else
print("Error Sending Msg")
end
else
print("Error Opening Socket")
end
tcp:close(socket)
end
VeraAlert("192.168.10.101", 3000, "What's Up{tone:2}")
Thanks in advance