Coder Social home page Coder Social logo

wizlightcpp's People

Contributors

billydonahue avatar paxperscientiam avatar srisham avatar xtarzx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wizlightcpp's Issues

Inputs via the command line

வணக்கம் / Hello !

I think it would be better to provide the inputs like IP address and scene setting via the command line argument.

Easiest is to add a shell script. I've also used gengetopt to parse argc and argv.

Any recommendation? I'd be happy to create a fork and create a PR in free time.

br,
Kaushik

Command `discover` discovers only one bulb

Hi

I have two questions:

  1. Where I can find the reference for Wiz API? I have found this, but it seems to a bit different. I can contribute to repository.
  2. Secondly, I have a problem. I have two bulbs connected, but when I use discover command only one is discovered:
./wizlightcpp discover --verbose --bcast 192.168.50.255
2023-11-25 23:09:32.517 wizlightcpp(11344) DEBUG        : Verbose log enabled
2023-11-25 23:09:32.517 wizlightcpp(11344) DEBUG        : Wiz discover request {"method":"getDevInfo"} to Wiz
2023-11-25 23:09:32.517 wizlightcpp(11344) DEBUG        : sendUDPCommand socket ipAddr 192.168.50.255 cmd {"method":"getDevInfo"}
2023-11-25 23:09:32.540 wizlightcpp(11344) DEBUG        : sendUDPCommand device response: {"method":"getDevInfo","env":"pro","result":{"mac":"d8a0113bc52e","devMac":"d8a0113bc52e","moduleName":"ESP24_SHRGBW_01"}}
2023-11-25 23:09:32.540 wizlightcpp(11344) DEBUG        : sendUDPCommand broadcastIP: 192.168.50.160
2023-11-25 23:09:32.540 wizlightcpp(11344) DEBUG        : {
    "bulb_response": {
        "mac": "d8a0113bc52e",
        "devMac": "d8a0113bc52e",
        "moduleName": "ESP24_SHRGBW_01",
        "ip": "192.168.50.160"
    }
}
{
    "bulb_response": {
        "mac": "d8a0113bc52e",
        "devMac": "d8a0113bc52e",
        "moduleName": "ESP24_SHRGBW_01",
        "ip": "192.168.50.160"
    }
}

sometimes it gives me reference to second bulb:

{
    "bulb_response": {
        "mac": "d8a011f047ab",
        "devMac": "d8a011f047ab",
        "moduleName": "ESP24_SHRGBW_01",
        "ip": "192.168.50.8"
    }
}

Turning off/on works for both, but discover command never provided me response with two bulbs data.

For example in this project a python script discovers both my bulbs.

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.