2017 © Pedro Peláez
 

library wemo-php-toolkit

PHP classes for use with Belkin's WeMo system

image

bjhansen/wemo-php-toolkit

PHP classes for use with Belkin's WeMo system

  • Friday, October 27, 2017
  • by bjhansen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WeMo-PHP-Toolkit

  • Author: Thorne Melcher (GitHub: ExistentialEnso)
  • License: LGPL v3 (more permissive commercial licensing available for a fee on request)
  • Version: 0.1.1

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)

Installation

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

Usage

$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"

The Versions

27/10 2017

dev-master

9999999-dev https://github.com/bjhansen-ualr/WeMo-PHP-Toolkit

PHP classes for use with Belkin's WeMo system

  Sources   Download

LGPL v3

by Thorne Melcher

library wemo belkin