Skip to content
ggodart edited this page Jan 5, 2021 · 1 revision

Network_Item

See original

SYNOPSIS

  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;

Items.mht

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

DESCRIPTION

This object simply pings the specified address and sets its state according to status

2011-07-30 MKB Enhanced with WakeOnLan functionality

INHERITS

Generic_Item

INI PARAMETERS

METHODS

Method Description
new($address, $interval) $address - IP address of the box you want to ping
$interval - How often to ping (in seconds)

AUTHOR

SEE ALSO

Clone this wiki locally