srisham / wizlightcpp Goto Github PK
View Code? Open in Web Editor NEWA cpp application to manage Wiz light devices
License: MIT License
A cpp application to manage Wiz light devices
License: MIT License
வணக்கம் / 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
Hi
I have two questions:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.