hello,
I would like to ping my phone’s ip (fixed) so i can control some actions with it when i’am on my network and i was thinking i run a shell script that returns a message or value.
The script works from terminal, but i can’t get the value in OR, the label shows “N/A”.
Or should i use some other methode.
i tried to ping it in Node-red , it also works but then i got stuc to get it to OR.
thanks for the reply, but still no luk, it works in terminal and text file is updatet but the sensor in OR isn’t
now i was thinking of using java code in the rules, is it possible to use something like this
rule " homechecker"
timer(int: 5s)
function getIpStatus(){
String ipAddress = "192.168.0.20";
InetAddress inet = InetAddress.getByName(ipAddress);
if (inet.isReachable(5000))
{
execute.command("homeStatus on.(on)"); /* i switch a virtual relaycontact
}