Coder Social home page Coder Social logo

php-wemo's People

Contributors

a15lam avatar austinheap avatar df-arif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

php-wemo's Issues

array return

Hello,

Is it at all possible to change this output we get from the array.. would make the programming sooooo much easier:
Array
(
[0] => Array
(
[id] => fan
[ip] => 192.168.0.201
[deviceType] => urn:Belkin:device:controllee:1
[friendlyName] => Fan
[modelName] => Socket
[UDN] => uuid:Socket-1_0-221526K110047E
[class_name] => a15lam\PhpWemo\Devices\WemoSwitch
)

[1] => Array
    (
        [id] => heater
        [ip] => 192.168.0.179
        [deviceType] => urn:Belkin:device:controllee:1
        [friendlyName] => Heater
        [modelName] => Socket
        [UDN] => uuid:Socket-1_0-221524K1100DBB
        [class_name] => a15lam\PhpWemo\Devices\WemoSwitch
    )

)

to:
Array
(
[fan] => Array
(
[ip] => 192.168.0.201
[deviceType] => urn:Belkin:device:controllee:1
[friendlyName] => Fan
[modelName] => Socket
[UDN] => uuid:Socket-1_0-221526K110047E
[class_name] => a15lam\PhpWemo\Devices\WemoSwitch
)

[heater] => Array
    (
        [ip] => 192.168.0.179
        [deviceType] => urn:Belkin:device:controllee:1
        [friendlyName] => Heater
        [modelName] => Socket
        [UDN] => uuid:Socket-1_0-221524K1100DBB
        [class_name] => a15lam\PhpWemo\Devices\WemoSwitch
    )

)

New install.. missing files?

The test example require a file called 'autoload.php' in a folder called vendor.... folder does't exist therefore the file doesn't exist.

Not sure how to load the program's if the example code doesn't work?

_```
Warning: require(/var/www/html/wemo/examples/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/wemo/examples/console.php on line 2

Fatal error: require(): Failed opening required '/var/www/html/wemo/examples/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/wemo/examples/console.php on line 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.