-
Notifications
You must be signed in to change notification settings - Fork 130
Items Network_Item
ggodart edited this page Jan 5, 2021
·
1 revision
See original
use Network_Item;
$network_house = new Network_Item('192.168.0.2', 10);
$network_hp = new Network_Item('192.168.0.66', 20);
print_log "house just changed to $state" if $state = state_changed $network_house;
print_log "house is $state" if new_second 15 and $state = state $network_house;
Defined in items.mht
as
#
#NETWORK IP_ADDRESS NAME Grouplist Interval MAC_ADDRESS
NETWORK, 192.168.4.25, HTPC_Mini, HTPC|HomeGym, 120, 00:1C:C0:AB:CD:AE
This object simply pings the specified address and sets its state according to status
2011-07-30 MKB Enhanced with WakeOnLan functionality
Method | Description |
---|---|
new($address, $interval) |
$address - IP address of the box you want to ping$interval - How often to ping (in seconds) |