you can use here a shell presence sensor
{
"command": "/home/pi/someOneAtHome.php 192.168.178.20 1 0",
"id": "test",
"name": "WindowsPhone Fritzbox hack",
"class": "ShellPresenceSensor",
"interval": 150,
"autoReset": false
}
- in the command is the path to the script
- the rest self explanatory i think