dev-master
9999999-dev https://github.com/bjhansen-ualr/WeMo-PHP-ToolkitPHP classes for use with Belkin's WeMo system
LGPL v3
by Thorne Melcher
library wemo belkin
Wallogit.com
2017 © Pedro Peláez
PHP classes for use with Belkin's WeMo system
PHP classes for use with Belkin's WeMo system. Currently only has an "Outlet" class (sorry, that's the only WeMo product I own!), (*1)
Composer is the easiest way to manage dependencies in your project. Create a file named composer.json with the following:, (*2)
{
"require": {
"wemo-php-toolkit/wemo-php-toolkit": "dev-master"
}
}
And run Composer to install wemo-php-toolkit:, (*3)
$ curl -s http://getcomposer.org/installer | php $ composer.phar install
$outlet = new Outlet("192.168.1.x"); // Change to location of Outlet on your network
$outlet->setIsOn(false); // Outlet will shut off!
The outlets even save their name and icon to them (which can be changed in the official apps), which you can view:, (*4)
$outlet->getIconUrl(); // e.g. "http://192.168.1.x:49153/icon.png" $outlet->getDisplayName(); // e.g. "Air Purifier" $outlet->getManufacturer(); // e.g. "Belkin" $outlet->getModelDescription(); // e.g. "Belkin Plugin Socket 1.0"
PHP classes for use with Belkin's WeMo system
LGPL v3
library wemo belkin