-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[netatmo] Adding a request counter #13494
Conversation
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
This will help identify potential enhancements regarding #13358 |
bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/thing/common.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
...ding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/NetatmoBindingConstants.java
Outdated
Show resolved
Hide resolved
...ing.netatmo/src/main/java/org/openhab/binding/netatmo/internal/handler/ApiBridgeHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
@clinique: with my moidified version of that PR, I can see that my counter is between 102 and 104 requests per hour. I see regular block of 4 requests, that is probably for my camera. To be confirmed and analyzed if this is expected to run 4 API requests. |
The 4 requests could be:
Do you confirm? |
I'll study this deeper but I think :
Maybe we could improve on homedata as this is not subject to change frequently and maybe pull it only once after initialization. |
If that is confirmed, with your change regarding ping, you should have already reduced to 3 requests -> already a gain of almost 25%. |
Signed-off-by: clinique <gael@lhopital.org>
01ed5c8
to
9b8824e
Compare
bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: clinique <gael@lhopital.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
* Adding a request counter channel to Api Bridge thing. Signed-off-by: clinique <gael@lhopital.org>
* Adding a request counter channel to Api Bridge thing. Signed-off-by: clinique <gael@lhopital.org> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* Adding a request counter channel to Api Bridge thing. Signed-off-by: clinique <gael@lhopital.org>
* Adding a request counter channel to Api Bridge thing. Signed-off-by: clinique <gael@lhopital.org>
* Adding a request counter channel to Api Bridge thing. Signed-off-by: clinique <gael@lhopital.org>
This creates a new channel at bridge level that counts the number of request emitted to Netatmo API.
The counter is resetted to 0 after one hour of operations.