use remote admin url to retrieve data

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
User avatar
iu1jvo
Junior Boarder
Junior Boarder
Posts: 24
Joined: Tue Jan 04, 2022 10:44 am

use remote admin url to retrieve data

Post by iu1jvo »

Hi all,
I have an open issue on a Home Assistance integration for Meteobridge.

One user had configured the Integration to access a remote Meteobrige, accessing the remote meteobridge via remote access (https://admin.meteobridge.com/...).

The issue is related to an error to tretrive data that seams to append with a strange rhythmic cadence of 2 hours.

Shell be this strange cadence due to a limit of access to the remote admin url?
Image
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7984
Joined: Mon Oct 01, 2007 10:51 pm

Re: use remote admin url to retrieve data

Post by admin »

How does the error manifest?
User avatar
iu1jvo
Junior Boarder
Junior Boarder
Posts: 24
Joined: Tue Jan 04, 2022 10:44 am

Re: use remote admin url to retrieve data

Post by iu1jvo »

The user report that, with a regular frequence of 2 hours, is impossible to retrieve the data.
The error seams to be related to an error connection to the host:
https://github.com/iu1jvo/meteobridge/issues/20

Could the relay form admin.meteobridge.com to the meteobridge device have a limined number of request?

The Meteobridge Integration for home assistant perform one request every 60 second.
Image
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7984
Joined: Mon Oct 01, 2007 10:51 pm

Re: use remote admin url to retrieve data

Post by admin »

Polling every minute for data via the remote service is rather aggressive, depending on how much data you request,

There is no general connection limit, but when lots of service requests punch my server at exactly the same time, the number of HTTP handles might be saturated and the request gets rejected. Another cause might be the Meteobridge being slow in responding on certain times as it is busy by other tasks on a regular base and that makes the connection fail in your python code. Just guesses given that little information.

If it is just one request every two hours dropping, you might decide to make the requesting code more fault tolerant. You can never rely on 100% connection availability in the Internet.
Post Reply