Power::Outlet::Virtual - Control and query a Virtual Outlet
my $outlet = Power::Outlet::iBootBar->new(id => 1); print $outlet->query, "\n"; print $outlet->on, "\n"; print $outlet->off, "\n";
Power::Outlet::Virtual is a package for controlling and querying a virtual outlet where the state is stored in a temp file.
my $outlet = Power::Outlet->new(type=>"Virtual", id=>1); my $outlet = Power::Outlet::Virtual->new;
Sets and returns the outlet unique id.
Default: 1
Returns current state of the virtual outlet
Sends a TCP/IP message to the iBoot device to Turn Power ON
Sends a TCP/IP message to the iBoot device to Turn Power OFF
Queries the device for the current status and then requests the opposite.
Cycle Power (ON-OFF-ON or OFF-ON-OFF).
Please log on RT and send an email to the author.
DavisNetworks.com supports all Perl applications including this package.
Michael R. Davis CPAN ID: MRDVT DavisNetworks.com
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Power::Outlet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Power::Outlet
CPAN shell
perl -MCPAN -e shell install Power::Outlet
For more information on module installation, please visit the detailed CPAN module installation guide.