GeekyEggo / GoveeController

Govee controller for the Elgato Stream Deck.
GNU General Public License v3.0
40 stars 6 forks source link

Too many actions at once stops further actions until some time passes #18

Closed oooJYNXooo closed 2 years ago

oooJYNXooo commented 2 years ago

Pre-Checks

Operating System

Windows

Govee Device

Givee Lights and switches H6008 H5080

Bug Description

I've setup a multi action shortcut in the streamdeck to do many things. It seems that after turning on 3 lights, changing the same 3 lights to a different color, adjusting 3 lights brightness AND then trying to do something else, I may get away with perhaps 1 or maybe 2 more Govee interactions but then it stops working and I see a yellow sign with an exclamation mark appear on the streamdeck. I've looked for any logs but I can not find them on my system under the plugins sub folder

Logs

No response

GeekyEggo commented 2 years ago

Hey @oooJYNXooo, thanks for the providing a good amount of information as to what's happening; Govee recently implemented API throttling, which I suspect may be the case here. To confirm, could I ask you to download the latest beta version of the plugin. This version includes additional logging that will enable us to determine what's going on. After trying with this version, logs should be available at %appdata%\Elgato\StreamDeck\Plugins\com.geekyeggo.goveecontroller.sdPlugin\logs.

oooJYNXooo commented 2 years ago

Response: TooManyRequests Rate limit exceeded, retry in 53 seconds.

Response: TooManyRequests Rate limit exceeded, retry in 54 seconds.

Rate limit exceeded, retry in 54 seconds.

oooJYNXooo commented 2 years ago

This really sucks. I had set up a whole bunch of combinations to change lights on the fly while gaming, and it always stops when I most need it!
Is there any way to by pass this?

GeekyEggo commented 2 years ago

Is there any way to by pass this?

Sadly not, but you might be able to adjust your setup and reduce the number of calls to be within the thresholds defined in the Govee API specification. In an ideal world there would be better support for “scenes” to reduce the number of requests; I’m sorry I couldn’t be of more help.