Giter Club home page Giter Club logo

Comments (8)

kaushiksv avatar kaushiksv commented on July 28, 2024 1

Doesn't work. I built from master branch, commit 5a6e33b.
image

from wizlightcpp.

srisham avatar srisham commented on July 28, 2024 1

Got the issue. I will fix it and update you.

from wizlightcpp.

srisham avatar srisham commented on July 28, 2024

Hi Kauhsik,

Passing command line arguments are already supported. You can use the following way:

wizlightcpp [command] --ip [ipaddress]

To find out what params to be passed for each command, you can run the following:

wizlightcpp [command] --help

from wizlightcpp.

srisham avatar srisham commented on July 28, 2024

Try without any quote.

wizlightcpp off --ip 192.168.1.102

from wizlightcpp.

srisham avatar srisham commented on July 28, 2024

@kaushiksv

Fixed it and updated the master branch. Also, updated the usage details in the README doc.
Please let me know if it resolves the issue.

from wizlightcpp.

kaushiksv avatar kaushiksv commented on July 28, 2024

Hi,

Thanks for the fix.

Looks like only on/off and get commands accept the --ip switch.

The set commands still don't work.


kaushik@kaushik-ubuntu-ssd:~/repos/wizlightcpp/build$ ./wizlightcpp getdeviceinfo --ip 192.168.1.102
{
    "bulb_response": {
        "result": {
            "mac": "6c29902767bb",
            "devMac": "6c29902767bb",
            "moduleName": "ESP03_SHRGB1C_01"
        }
    }
}
kaushik@kaushik-ubuntu-ssd:~/repos/wizlightcpp/build$ ./wizlightcpp setcolortemp 5000 --ip 192.168.1.102
Unknown Option

Usage: wizlightcpp setcolortemp {OPTIONS}
Try 'wizlightcpp setcolortemp --help' for help.
kaushik@kaushik-ubuntu-ssd:~/repos/wizlightcpp/build$ ./wizlightcpp setcolortemp
Enter the bulb IP address:192.168.1.102
Enter the color temperature in kelvins [1000 to 8000]:5000
{
    "bulb_response": {
        "result": {
            "success": true
        }
    }
}

from wizlightcpp.

srisham avatar srisham commented on July 28, 2024

@kaushiksv

setcolortemp requires two arguments and you may need to pass the '--temp' argument along with the value 5000.
Example:
$ wizlightcpp setcolortemp --ip 192.168.1.102 --temp 5000

Try help option to see list of all arguments:

$ wizlightcpp setcolortemp --help
Usage: wizlightcpp setcolortemp {OPTIONS}

Options:
--ip                    IP address of the bulb.
--help                  Show this message and exit.
--temp                  Color temperature in kelvins [1000 to 8000].

from wizlightcpp.

kaushiksv avatar kaushiksv commented on July 28, 2024

Hi,

yes, it works. My bad, didn't notice it. Thanks for the fix, and the repo.

from wizlightcpp.

Related Issues (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.