Releases: dutchie027/govee-api
Rate Limit Header Inconsistency
In one place in the doc the headers are referred to as RateLimit-*
in the other section of the doc, they're listed as X-RateLimit-*
. This addresses the proper name of X-RateLimit-*
as returned by their API
New Govee API Headers
On May 4, 2022, Govee changed the API to have/return different rate headers Official Docs. This change addresses those new headers in lieu of throwing undefined array key warnings
Updated class variable
Changed the logging handler to allow for calling outside of the main connect container.
More Gracefully handle Invalid API Keys
Prior to this version the library wasn't handling the Guzzle 401s or the Govee API errors gracefully. Now it will.
Changed the way to call lights and plugs
Overview
Prior to 1.3 you would need to instantiate a connect class and then pass that class to reinstate a plug class or a light class. Now you can simply pass through the class information:
New way:
================
$connect = new Connect(API);
$connect->light()->function();
I've also left the old way working for backwards compatability
Includes Plugs
Added functionality to allow for turning on and off plugs
Changed License
Changed to MIT License
Refactored API Calling
Moved the API call from out of each function to its own function. Also added the ability to begin tracking the rate limits in the headers.