Giter Club home page Giter Club logo

Comments (8)

reutli avatar reutli commented on September 21, 2024

Das habe ich auch, die WebSocket Verbindung ist hinreichend instabil. Die Frage ist, ob das am Adapter oder an der API von Gardena liegt.

from iobroker.smartgarden.

x2on avatar x2on commented on September 21, 2024

Bei mir das gleiche. Dachte es liegt am API Key, aber nach ein paar Tagen ging es bei mir erstmal wieder. Vielleicht das Rate Limit?

from iobroker.smartgarden.

reutli avatar reutli commented on September 21, 2024

Ich habe gerade massiv Probleme Ventile über die API zu steuern. Ein bis zwei Ventile gehen noch, dann kommen 429er und bad request... wollte eigentlich auf die Steuerung mit iobroker umsteigen und alles da erledigen, ... aber so ist das nicht stabil nutzbar. Fraglich ob's auf Gardena Seite liegt (API) oder die etwas geändert haben in Sachen WebSocket und limits.

from iobroker.smartgarden.

sparrow1990 avatar sparrow1990 commented on September 21, 2024

Version: 2.0.0
Node.js 16.16.0
NPM 8.11.0
JS Cont: 4.0.23

Bekomme auch 429. Log wie folgt:

smartgarden.0 2022-07-28 09:47:44.255 error Error: request returned 429
smartgarden.0 2022-07-28 09:47:44.255 info 3/ Mower command failure.response.statusCode/Message=429/
smartgarden.0 2022-07-28 09:47:44.255 info 3/ Mower command failure, options.url=https://api.smart.gardena.dev/v1/command/29cdb6c5-25b4-491a-9b8a-1739ac8b558f:cbtg
smartgarden.0 2022-07-28 09:47:44.254 info 3/ request Mower ...
smartgarden.0 2022-07-28 09:47:44.215 error Error: request returned 429
smartgarden.0 2022-07-28 09:47:44.215 info 3/ Mower command failure.response.statusCode/Message=429/
smartgarden.0 2022-07-28 09:47:44.215 info 3/ Mower command failure, options.url=https://api.smart.gardena.dev/v1/command/29cdb6c5-25b4-491a-9b8a-1739ac8b558f:cbtg
smartgarden.0 2022-07-28 09:47:44.214 info 3/ request Mower ...
smartgarden.0 2022-07-28 09:47:44.169 info 3/ ---> State change by device: state sg.0.info.RateLimitCounter changed, (ack = true)
smartgarden.0 2022-07-28 09:47:44.156 info 3/ incrementLimitCounter: new counters : y2022 / m2022-07: 170 / d2022-07-28: 65 / hr07: 17 / last30days: 170 / last31days: 170
smartgarden.0 2022-07-28 09:47:44.113 info 3/ ---> Command should be sent to device: state sg.0.L_0478.D_558f.S_MOWER_cbtg.activity_control_i changed, PARK_UNTIL_FURTHER_NOTICE (ack = false)
smartgarden.0 2022-07-28 09:47:44.108 info 3/ ---> State change by device: state sg.0.info.RateLimitCounter changed, (ack = true)
javascript.0 2022-07-28 09:47:44.053 info script.js.common.Garten.Robert: Robert 20

from iobroker.smartgarden.

XerXes777 avatar XerXes777 commented on September 21, 2024

Ich bekomme auch ständig den fehler 429

Ich habe NODEJS v12.20.0 ist das ein Problem?

from iobroker.smartgarden.

XerXes777 avatar XerXes777 commented on September 21, 2024

Rate Limits

Rate limits are in place to prevent malicious use of the API that would impact other users.

Applications share a pool of keys that each are assigned certain quota. An application that behaves as a good citizen of the Gardena eco system should not exceed the following limits:

On average one call every fifteen minutes.
3'000 requests per month.

These limits should not pose a problem if you use REST calls only to update the state of your location once and then use the real time API to stay in sync (see sections below for more information). If you feel your application absolutely cannot adhere to these limits and your use case is interesting for Gardena, please get in touch to see whether we can grant you higher rate limits.

from iobroker.smartgarden.

jpgorganizer avatar jpgorganizer commented on September 21, 2024

this is no bug of the adapter, it's related to the Gardena Cloud Server API

from iobroker.smartgarden.

reutli avatar reutli commented on September 21, 2024

But could be handled via error handling and trying to repeat commands...?! If a device is responding with error 429 it should be possible to try re-sending, let's say three times and throw error after this try-loop.
just saying ;o)

from iobroker.smartgarden.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.