Morning folks!


I've got some MiniMyth frontends I'd like to control from MH, specifically from an iPhone page I'm working on. I have Network items set up for the hostnames, and am able to see the status of them fine.  I have some wakeonlan items configured that worked (but are presently commented out).  Is there a way to link them together so they can be managed as one item?  Would creating a new item and using tie_items to link them be the right approach?  I'm presuming that someone else has already done this, and knows the right way to do this in MH.

Thanks for your time!

/Mike

Ok, I know I'm not doing something right, but I'm not sure the right way to do it (I'm not a programmer by any stretch, but I can hack something together when I understand how it works).

I've got the following in a mht file.

Format = A
# -*- mode: perl-mode; -*-
#
# See mh/lib/read_table_A.pl  for definition of Format=A items
#
#noloop=start

#NETWORK, ipaddress, Name, Grouplist, ping delay (seconds)
NETWORK,    192.168.1.1,    intrepid,    HTPC|MasterBedroom,    120
NETWORK,    192.168.1.2,    freevo,        HTPC|FamilyRoom,    120    


##WAKEONLAN, MACADDRESS, Name, Grouplist
HTPC_Intrepid,           WakeableComputers
WAKEONLAN,          00:17:31:xx:xx:xx,  HTPC_Freevo,             WakeableComputers
#WAKEONLAN,          00:17:31:Xx:xx:xx,  nighthawk,

CODE,    $intrepid->tie_items($HTPC_Intrepid);
CODE,    $HTPC_Intrepid->tie_items($intrepid);
CODE,    $freevo->tie_items($HTPC_Freevo);
CODE,    $HTPC_Freevo->tie_items($freevo);
#noloop=stop

Maybe I'm overcomplicating things, but I'd like to programatically and via a web GUI monitor the state of and wake the various HTPC's, apply friendly labels and icons, and make it easy to use by the other family members.  I'd prefer to do it in mht files for simplicity, but would it be better to do in a code file using if statements and explicit state changes?  Or would it be better to extend the Network_item.pm to have a "wake" state?

Thanks for your time!

/Mike