Comments (8)
Doesn't work. I built from master branch, commit 5a6e33b.
from wizlightcpp.
Got the issue. I will fix it and update you.
from wizlightcpp.
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.
Try without any quote.
wizlightcpp off --ip 192.168.1.102
from wizlightcpp.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wizlightcpp.