keefo / NeewerLite

NeewerLite is an un-official Neewer LED light control app for macOS.
MIT License
111 stars 9 forks source link

Code for changing Hue, Saturation, & Brightness? #12

Closed hypr-pxls closed 1 year ago

hypr-pxls commented 2 years ago

If possible, could you share the exact commands (for macOS Shortcuts) in order to change the Hue, Saturation, and Brightness? I mainly need to be able to change the hue. I am not very good with code and any assistance you can give would be greatly appreciated!

Also, I want to send a huge "THANK YOU" to Keefo for this app. It has allowed me control my Neewer lights with my voice through Alexa (using TriggercmdAgent).

keefo commented 2 years ago

Hi @hypr-pxls

Unfortunately, this is still on the TODO list.

Feel free to create a PR for this feature if you have time to add this support.

hypr-pxls commented 2 years ago

Thanks for the reply, Keefo!

I've tried several things without any success, so hopefully someone with coding experience can join in here and help make this feature a reality.

mritsabigdeal commented 2 years ago

I second this request. It would be such a game changer for me that i'd try to pull it off myself if I knew where to start.

Is PR a pull request? Would do whatever it took to start getting traction on this.

keefo commented 1 year ago

V0.9 add this support. Please test it. Merged PR #21

hypr-pxls commented 1 year ago

Hi Keefo, I'm SO excited that you are adding this functionality to the app... SO COOL! Thank You!!!

However, I did test it and I'm getting an error when I try to run the Shortcut (see attached screenshot). I am still able to run the older commands such as "turnOnLight", "turnOffLight", and "scanLight" without any issue... those work perfectly. But, I'm getting an error for the commands setLightCCT, setLightHSI, and setLightScene. Is there something that I'm doing wrong or a setting I should change in the shortcut?

FYI: My lights are the Neewer RGB 530PRO and I'm running macOS Ventura Version 13.2.1.

Thanks in advance for any help you can give me!!!

Screenshot 2023-02-22 at 5 35 23 PM
keefo commented 1 year ago

You just need to double quote the command. I tested, it works with shortcut.

change

open neewerlite://setLightHSI?RGB=ff00ff&Saturation=100&Brightness=100

to

open "neewerlite://setLightHSI?RGB=ff00ff&Saturation=100&Brightness=100"

regards, Liam

On Feb 22, 2023, at 4:11 PM, hypr-pxls @.***> wrote:

Hi Keefo, I'm SO excited that you are adding this functionality to the app... SO COOL! Thank You!!!

However, I did test it and I'm getting an error when I try to run the Shortcut (see attached screenshot). I am still able to run the older commands such as "turnOnLight", "turnOffLight", and "scanLight" without any issue... those work perfectly. But, I'm getting an error for the commands setLightCCT, setLightHSI, and setLightScene. Is there something that I'm doing wrong or a setting I should change in the shortcut?

FYI: My lights are the Neewer RGB 530PRO and I'm running macOS Ventura Version 13.2.1.

Thanks in advance for any help you can give me!!!

https://user-images.githubusercontent.com/102192643/220791364-91153404-8c89-4169-8392-4c391edb0711.png — Reply to this email directly, view it on GitHub https://github.com/keefo/NeewerLite/issues/12#issuecomment-1441030451, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGFU5EYWCAUBAYXNRAOIC3WY2TLBANCNFSM5RXMC42A. You are receiving this because you commented.

hypr-pxls commented 1 year ago

WOW, WOW, WOW!!! That worked perfectly.

Thanks SO MUCH, Liam! I'm sure this wasn't an easy task and it had to be pretty time consuming. I REALLY appreciate you adding this feature, as I know others are, as well. This opens a lot of new options for how I control the lights in my studio. SO COOL!

You are the best, my friend! Have a great week. Thanks Again!!!

mritsabigdeal commented 1 year ago

This was huge and totally agree with hypr-pxls

Appreciate your commitment to the project

On Sun, Feb 26, 2023 at 9:45 AM hypr-pxls @.***> wrote:

WOW, WOW, WOW!!! That worked perfectly.

Thanks SO MUCH, Liam! I'm sure this wasn't an easy task and it had to be pretty time consuming. I REALLY appreciate you adding this feature, as I know others are, as well. This opens a lot of new options for how I control the lights in my studio. SO COOL!

You are the best, my friend! Have a great week. Thanks Again!!!

— Reply to this email directly, view it on GitHub https://github.com/keefo/NeewerLite/issues/12#issuecomment-1445418294, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMWZV5X5SMSEFIIYMZHMULWZOJFLANCNFSM5RXMC42A . You are receiving this because you commented.Message ID: @.***>