Code: Select all
# Variables
:global Person1 "00:00:00:00:00:00";
:global Person2 "11:11:11:11:11:11";
:global apikey "s78e4thyfakekeyf89se47gh56ts87hft87"
:global leaseBound
:global leaseActMAC
# DHCP Bound
:if ($leaseBound =1) do={
:if ([$leaseActMAC] = $Person1) do={
:tool fetch mode=https url="https://api.pushbullet.com/v2/pushes" http-method=post http-data="type=note&body=Person1 Arrived Home" user="$apikey"
}
:if ([$leaseActMAC] = $Person2) do={
:tool fetch mode=https url="https://api.pushbullet.com/v2/pushes" http-method=post http-data="type=note&body=Person2 Arrived Home" user="$apikey"
}
}
if ([$leaseActMAC] = {any mac[n] from array})
body={corresponding name[n] from array} Arrived Home"
Can anyone point at an example I can work from?
Thanks!