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?
use remote admin url to retrieve data
Moderator: Mattk
Re: use remote admin url to retrieve data
How does the error manifest?
Re: use remote admin url to retrieve data
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.
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.
Re: use remote admin url to retrieve data
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.
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.

