Closed chubmeister closed 2 years ago
Hello @chubmeister! Which mode are you using to send commands? GUI, CCT or HTTP mode? Both the GUI and HTTP modes allow consistently open connections, but the CLI (command-line interface) doesn't.
Hey, I'm using the CCT mode. Can I send the commands through HTTP using batch scripts?
You should be good if you're using a program like curl in your batch script, where you can send it URLs.
If I remember correctly it was just freezing up when using curl. I'll look into it again.
If I send curl a command to the NeewerLite-Python server from another computer on my network to control the lights, it doesn't seem to hang on my end - make sure you have the port number in the URL as well -
curl "http://10.0.0.12:8080/NeewerLite-Python/doAction?light=1;2&mode=CCT&temp=52&bri=50"
Make sure you have the latest versions of NeewerLite-Python too - there was an issue (#10) a few versions back where if you used Chrome, it would monopolize the server and other requests would fail, but that's been fixed since then.
Got it working, thanks. Adding in the quotes worked, didn't like the arguments otherwise. Instantaneous now. Works awesome.
On Sun, Jan 2, 2022 at 6:52 PM Zach Glenwright @.***> wrote:
Make sure you have the latest versions of NeewerLite-Python too - there was an issue (#10 https://github.com/taburineagle/NeewerLite-Python/issues/10) a few versions back where if you used Chrome, it would monopolize the server and other requests would fail, but that's been fixed since then.
— Reply to this email directly, view it on GitHub https://github.com/taburineagle/NeewerLite-Python/issues/13#issuecomment-1003810817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRR7SYP5FJ3DWXHV4QQZVTUUDXNBANCNFSM5LBC5DLA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
Ah, awesome! Yeah, depending on which interface you're running curl from, & and ; will trip the command up if you don't enclose it in quotation marks.
I'm trying to figure out if it's possible to leave a light connected to my pc so it doesn't need to reconnect every time I want to change light settings. The delay between the command being sent and actually running is pretty long, I'm hoping a constant connection would solve the issue.