jeff-winn / homebridge-automower-platform

A platform plugin for Homebridge to connect your Husqvarna Automower and Gardena Smart robotic lawn mowers to Apple HomeKit.
MIT License
10 stars 0 forks source link

Adding rate limited client. #213

Closed jeff-winn closed 1 year ago

jeff-winn commented 1 year ago

Associated with #195 and #171 - Intends to reduce the calls in between executions when scenes may be used to control multiple mowers simultaneously.

The Husqvarna documentation states:

The following limitations currently apply to the Automower® Connect API:

  • Max 1 request per second and appKey.
  • Max 10 000 request per month and appKey.

The client currently will use an operation was last accessed across all of the exposed methods and ensure that there is a 1.1 second duration in between all operations.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication