power-outlet.cgi - Control multiple Power::Outlet devices from web browser
power-outlet.cgi is a CGI application to control multiple Power::Outlet devices. It was written to work on iPhone and look ok in most browsers.
To add an outlet for the CGI application, add a new INI section to the power-outlet.ini file.
[Unique_Section_Name] type=iBoot host=Lamp groups=Inside groups=Kitchen
If you need to override the defaults
[Unique_Section_Name] type=iBoot host=Lamp port=80 pass=PASS name=My iBoot Description groups=Outside groups=Deck
WeMo device
[WeMo] type=WeMo host=mywemo groups=Inside groups=Study
Default Location: /usr/share/power-outlet/conf/power-outlet.ini
rpmbuild -ta Power-Outlet-*.tar.gz
I recommend installation with the provided RPM package perl-Power-Outlet-application-cgi which installs to /usr/share/power-outlet and configures Apache with /etc/httpd/conf.d/power-outlet.conf.
sudo yum install perl-Power-Outlet-application-cgi
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.