Ring Video Doorbell

Begonnen von blueberry63, 23 August 2017, 11:06:28

Vorheriges Thema - Nächstes Thema

GreenFHEMfan

Hallo Dominik,

bis gestern vormittag lief das Pythonmodul einwandfrei - doch jetzt scheint es sich nicht mehr zu aktuallisieren.
Es ist weiterhin "connected" aber die ganzen History-Daten sind nicht aktuell.
Ich kann auch keinen aufgenommenen Stream mehr ansehen, indem ich die URL aus dem Modul aufrufe.

Da kommt dann:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<X-Amz-Expires>3600</X-Amz-Expires>
<Expires>2021-01-02T16:37:57Z</Expires>
<ServerTime>2021-01-03T11:15:11Z</ServerTime>
<RequestId>xxxxxxxxxxxxxxxxxx</RequestId>
<HostId>
(xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
</HostId>
</Error>


RequestId und HostId habe ich mal ausgeblendet!
Rasp 3B+,4 / CUL /  Duofernstick / SIGNALduino (nanocul CC1101 optiboot) / mqtt

dominik

Was kommt im PythonBinding Log?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

GreenFHEMfan

OK - ich hatte soviel Pythonmodule aktiviert zum Ausprobieren, daß irgendwo schienbar sich was begissen hat.
Habe jetzt alle unnötigen Module wieder gelöscht - und siehe da, die Aktuallisierung läuft wieder.

Würde es erstmal dabei belassen!

LG
Maik
Rasp 3B+,4 / CUL /  Duofernstick / SIGNALduino (nanocul CC1101 optiboot) / mqtt

GreenFHEMfan

#498
Zitat von: JF Mennedy am 02 Januar 2021, 17:31:05
Hallo,

ich habe den letzten aufgenommenen Stream als Weblink in fhem eingebettet:

defmod RingVideoHaustuer weblink htmlCode {\
my $url=ReadingsVal('ringdev', 'last_recording_url', '');;;;\
return "\
<video controls width='800'>\
\
    <source src=$url\
            type='video/mp4'>\
\
    Sorry, your browser doesn't support embedded videos.\
</video>\
"\
}


Gruss Jan

Das ist eine tolle Idee Jan - nur leider bekomme ich ihn bei mir nicht zum laufen!
Die Abspielleiste erscheint noch auf der FHEM-Oberfläche - kann den Stream aber über die Play-Taste nicht starten.
Da passiert gar nix. Woran kann das liegen?

Als 'ringdev' habe ich noch meinen Modulnamen eingetragen!

Wenn ich das so eintrage wie bei dir kommt beim Erstellen des Fhem-Moduls -> Experimental aliasing via reference not enabled at (eval 1299) line 1

Gruß Maik
Rasp 3B+,4 / CUL /  Duofernstick / SIGNALduino (nanocul CC1101 optiboot) / mqtt

Manos

Hallo Dominik,

bei mir erst heute 13:05 ist die Python Verbindung ausgefallen (ich sehe es in meinem Telegram).
letztes Python Update habe ich gestern gemacht.

deviceUpdateInterval 1800
dingPollInterval 5

Ich (=bedeutet nicht viel) kann nichts besonderes im Log erkennen, ein paar polling errors wie immer.


PythonBinding-2021-01-03.log
2021-01-03 01:18:46,507 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9


PythonBinding-2021-01-02.log
2021-01-02 01:13:10,669 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 01:32:57,188 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 09:54:36,012 - ERROR    - RingDoorBell: Failed to poll devices
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 326, in recv_into
    raise timeout("The read operation timed out")
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 423, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 330, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 251, in poll_device
    self._lastrecording_url = self._rdevice.recording_url(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
    return super(OAuth2Session, self).request(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)
2021-01-02 12:55:11,830 - ERROR    - RingDoorBell: Failed to poll devices
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 326, in recv_into
    raise timeout("The read operation timed out")
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 423, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 330, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 251, in poll_device
    self._lastrecording_url = self._rdevice.recording_url(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
    return super(OAuth2Session, self).request(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)
2021-01-02 16:30:31,481 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 17:26:10,918 - ERROR    - RingDoorBell: Failed to poll devices
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 326, in recv_into
    raise timeout("The read operation timed out")
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 423, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 330, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 251, in poll_device
    self._lastrecording_url = self._rdevice.recording_url(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
    return super(OAuth2Session, self).request(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)
2021-01-02 17:28:16,419 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 18:26:32,555 - ERROR    - RingDoorBell: Failed to poll devices
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 326, in recv_into
    raise timeout("The read operation timed out")
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 423, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 330, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 251, in poll_device
    self._lastrecording_url = self._rdevice.recording_url(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
    return super(OAuth2Session, self).request(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)
2021-01-02 20:14:45,167 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 22:18:38,287 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 23:28:00,406 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9


Internals:
   BindingType Python
   DEF        Python
   DeviceName ws:127.0.0.1:15733
   FUUID      5fd1520c-f33f-6a06-6ce1-3a0f3126c85bd37b
   FVERSION   10_BindingsIo.pm:0.182830/2019-01-16
   IP         127.0.0.1
   NAME       pybinding
   NEXT_OPEN  1609676922.00261
   NR         313
   NTFY_ORDER 50-pybinding
   PARTIAL   
   PORT       15733
   STATE      disconnected
   TYPE       BindingsIo
   localBinding 1
   nextOpenDelay 10
   Helper:
     DBLOG:
       state:
         Logdb:
           TIME       1609675554.2258
           VALUE      DISCONNECTED
       version:
         Logdb:
           TIME       1609508985.61191
           VALUE      0.1.13
   READINGS:
     2021-01-03 13:28:32   state           disconnected
     2021-01-01 14:49:45   version         0.1.13
   args:
     pybinding
     BindingsIo
     Python
   argsh:
Attributes:

   devStateIcon opened:rc_GREEN@green disconnected:rc_RED@red
   group      _connector
   room       _Hood->System
   verbose    1

HP Microserver GEN8 XEON, Ubuntu 22.04, FHEM, ConBee II, CCU2, CUL433, Tradfri, Luxtronik2, Volkszaehler (und wenig Ahnung...)

JF Mennedy

Hallo Maik,

ja richtig ringdev ist der Name der Kamera...

bei mir funktioniert es mit mit Chrome und Firefox, Edge oder andere wie Safari habe ich nicht und kann nicht testen... Eventuell etwas in den Einstellungen vom Browser?

Ich hatte es am Anfang mal mit iFrame versucht (return "<iframe src=$url width=700 height=440></iframe>") Damit funktionierte es aber nicht gut unter Chrome, dafür aber in Firefox... Komischerweise wurde in Chrome 1 Kamera immer angezeigt und die andere nicht, da startete ein Download des Videos, obwohl die Definitions gleich waren...

Ich habe dann irgendwann herausgefunden, dass der Typ der Streams nicht beide mp4 waren, daher der Download von einem der beiden...

Bis das bei mir lief habe ich auch ziemlich lange rumgefummelt und mir Beispiele bei selfhtml angeschaut...

Gruss Jan

dominik

Zitat von: GreenFHEMfan am 03 Januar 2021, 13:33:11
OK - ich hatte soviel Pythonmodule aktiviert zum Ausprobieren, daß irgendwo schienbar sich was begissen hat.
Habe jetzt alle unnötigen Module wieder gelöscht - und siehe da, die Aktuallisierung läuft wieder.

Würde es erstmal dabei belassen!

LG
Maik

Mit anderen Module sollte es nicht zusammen hängen. Lass mich bitte wissen wenn es wieder auftritt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

JF Mennedy

Bei mir laufen alle verwendeten PythonBindings recht stabil ohne weitere Ausfälle (Ring, GoogleCast mit ca 15 Devices, Spotify) . Ich würge nachts aber auch über ein at das Pythonbinding einmal ab -> fhem "{system ('sudo killall python3')};

Lässt sich wahrscheinlich auch über set Pythonbinding_15733 restart realisieren...

dominik

Zitat von: Manos am 03 Januar 2021, 13:50:14
Hallo Dominik,

bei mir erst heute 13:05 ist die Python Verbindung ausgefallen (ich sehe es in meinem Telegram).
letztes Python Update habe ich gestern gemacht.

deviceUpdateInterval 1800
dingPollInterval 5

Ich (=bedeutet nicht viel) kann nichts besonderes im Log erkennen, ein paar polling errors wie immer.


PythonBinding-2021-01-03.log
2021-01-03 01:18:46,507 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9


PythonBinding-2021-01-02.log
2021-01-02 01:13:10,669 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 01:32:57,188 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 09:54:36,012 - ERROR    - RingDoorBell: Failed to poll devices
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 326, in recv_into
    raise timeout("The read operation timed out")
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 423, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 330, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 251, in poll_device
    self._lastrecording_url = self._rdevice.recording_url(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
    return super(OAuth2Session, self).request(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)
2021-01-02 12:55:11,830 - ERROR    - RingDoorBell: Failed to poll devices
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 326, in recv_into
    raise timeout("The read operation timed out")
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 423, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 330, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 251, in poll_device
    self._lastrecording_url = self._rdevice.recording_url(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
    return super(OAuth2Session, self).request(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)
2021-01-02 16:30:31,481 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 17:26:10,918 - ERROR    - RingDoorBell: Failed to poll devices
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 326, in recv_into
    raise timeout("The read operation timed out")
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 423, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 330, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 251, in poll_device
    self._lastrecording_url = self._rdevice.recording_url(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
    return super(OAuth2Session, self).request(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)
2021-01-02 17:28:16,419 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 18:26:32,555 - ERROR    - RingDoorBell: Failed to poll devices
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
    six.raise_from(e, None)
  File "", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/lib/python3.8/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 326, in recv_into
    raise timeout("The read operation timed out")
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 423, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 330, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 251, in poll_device
    self._lastrecording_url = self._rdevice.recording_url(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
    return super(OAuth2Session, self).request(
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)
2021-01-02 20:14:45,167 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 22:18:38,287 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9
2021-01-02 23:28:00,406 - ERROR    - RingDoorBell: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/__init__.py", line 95, in query
    return self.auth.query(
  File "/opt/fhem/.local/lib/python3.8/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9


Internals:
   BindingType Python
   DEF        Python
   DeviceName ws:127.0.0.1:15733
   FUUID      5fd1520c-f33f-6a06-6ce1-3a0f3126c85bd37b
   FVERSION   10_BindingsIo.pm:0.182830/2019-01-16
   IP         127.0.0.1
   NAME       pybinding
   NEXT_OPEN  1609676922.00261
   NR         313
   NTFY_ORDER 50-pybinding
   PARTIAL   
   PORT       15733
   STATE      disconnected
   TYPE       BindingsIo
   localBinding 1
   nextOpenDelay 10
   Helper:
     DBLOG:
       state:
         Logdb:
           TIME       1609675554.2258
           VALUE      DISCONNECTED
       version:
         Logdb:
           TIME       1609508985.61191
           VALUE      0.1.13
   READINGS:
     2021-01-03 13:28:32   state           disconnected
     2021-01-01 14:49:45   version         0.1.13
   args:
     pybinding
     BindingsIo
     Python
   argsh:
Attributes:

   devStateIcon opened:rc_GREEN@green disconnected:rc_RED@red
   group      _connector
   room       _Hood->System
   verbose    1


Die Fehlermeldungen würde ich mal als "übliche" Fehlermeldungen mit ring abtun, da das scheinbar immer wieder auftritt wenn zu oft angefragt wird. Ich habe die Fehlermeldungen auch noch sehr ausführlich gelassen, damit man vielleicht im Fehlerfall doch mal nachvollziehen kann woran es liegt.

Das "disconnected" von fhempy muss aber mit etwas anderen zu tun haben. Der Disconnect dürfte auch ca. 20min später (13:28:32) passiert sein. Leider ist im Log nichts zu erkenne. Läuft der Prozess noch? Oder hast du schon neu gestartet?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

Zitat von: JF Mennedy am 03 Januar 2021, 14:02:16
Bei mir laufen alle verwendeten PythonBindings recht stabil ohne weitere Ausfälle (Ring, GoogleCast mit ca 15 Devices, Spotify) . Ich würge nachts aber auch über ein at das Pythonbinding einmal ab -> fhem "{system ('sudo killall python3')};

Lässt sich wahrscheinlich auch über set Pythonbinding_15733 restart realisieren...

Lass bitte mal paar Tage laufen und schick mir Fehler :) Ich freue mich immer über gute Fehlerlogs, weil sonst bekomme ich fhempy nicht aus der BETA raus ;)
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

dominik

@Jan, hast du gar keine Fehlermeldungen im Log? Weil das würde bedeuten, dass ich einen erneuten Login eventuell alle 24h triggern muss.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

JF Mennedy

Doch ich habe immer mal wieder diese beiden Fehler im Log:

2020-12-28 23:56:26,679 - ERROR    - ringdev: Failed to poll dings...
Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ring/ring.py", line 127, in update_dings_loop
    await utils.run_blocking(functools.partial(self.poll_dings))
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 28, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ring/ring.py", line 238, in poll_dings
    self._ring.update_dings()
  File "/opt/fhem/.local/lib/python3.7/site-packages/ring_doorbell/__init__.py", line 89, in update_dings
    self.dings_data = self.query(DINGS_ENDPOINT).json()
  File "/opt/fhem/.local/lib/python3.7/site-packages/ring_doorbell/__init__.py", line 101, in query
    timeout=timeout,
  File "/opt/fhem/.local/lib/python3.7/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/usr/local/lib/python3.7/dist-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.ring.com/clients_api/dings/active?api_version=9


Traceback (most recent call last):
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ring/ring.py", line 109, in update_loop
    await utils.run_blocking(functools.partial(self.poll_device))
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 28, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/ring/ring.py", line 252, in poll_device
    self._rdevice.last_recording_id
  File "/opt/fhem/.local/lib/python3.7/site-packages/ring_doorbell/doorbot.py", line 368, in recording_url
    req = self._ring.query(url)
  File "/opt/fhem/.local/lib/python3.7/site-packages/ring_doorbell/__init__.py", line 101, in query
    timeout=timeout,
  File "/opt/fhem/.local/lib/python3.7/site-packages/ring_doorbell/auth.py", line 84, in query
    req = getattr(self._oauth, method.lower())(url, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/opt/fhem/.local/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 516, in request
    method, url, headers=headers, data=data, **kwargs
  File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.ring.com', port=443): Read timed out. (read timeout=10)


Trotzdem läufts alles unterbrechungsfrei.. Ich hatte anfangs ja auch mal das Problem, dass irgendwann die Readings nicht mehr beschrieben wurden... Hab mir dann aber die Ring Elite gekauft, die über LAN und PoE betrieben wird und eine echt starke Verbesserung zu den WiFi-betriebenen gebracht hat. Ich schalte mal mein Reset ab und schaue ob es dann wieder passiert...


GreenFHEMfan

Zitat von: JF Mennedy am 03 Januar 2021, 13:57:04
Hallo Maik,

ja richtig ringdev ist der Name der Kamera...

bei mir funktioniert es mit mit Chrome und Firefox, Edge oder andere wie Safari habe ich nicht und kann nicht testen... Eventuell etwas in den Einstellungen vom Browser?

Ich hatte es am Anfang mal mit iFrame versucht (return "<iframe src=$url width=700 height=440></iframe>") Damit funktionierte es aber nicht gut unter Chrome, dafür aber in Firefox... Komischerweise wurde in Chrome 1 Kamera immer angezeigt und die andere nicht, da startete ein Download des Videos, obwohl die Definitions gleich waren...

Ich habe dann irgendwann herausgefunden, dass der Typ der Streams nicht beide mp4 waren, daher der Download von einem der beiden...

Bis das bei mir lief habe ich auch ziemlich lange rumgefummelt und mir Beispiele bei selfhtml angeschaut...

Gruss Jan

Ja, das war es - mit dem Firefox-Browser läuft es. Ich schau mal, ob ich am Chrome was einstellen kann - der läuft bei mir nämlich nicht!

Gruß
Rasp 3B+,4 / CUL /  Duofernstick / SIGNALduino (nanocul CC1101 optiboot) / mqtt

Manos

#508
Zitat von: dominik am 03 Januar 2021, 14:07:45
Die Fehlermeldungen würde ich mal als "übliche" Fehlermeldungen mit ring abtun, da das scheinbar immer wieder auftritt wenn zu oft angefragt wird. Ich habe die Fehlermeldungen auch noch sehr ausführlich gelassen, damit man vielleicht im Fehlerfall doch mal nachvollziehen kann woran es liegt.

Das "disconnected" von fhempy muss aber mit etwas anderen zu tun haben. Der Disconnect dürfte auch ca. 20min später (13:28:32) passiert sein. Leider ist im Log nichts zu erkenne. Läuft der Prozess noch? Oder hast du schon neu gestartet?

pybinding habe ich noch nicht neu gestartet, es bleibt noch "disconnected" (Bilder anbei).

Ich verstehe etwas nicht, event-on-change-reading finde ich beim Pythonbinding_15733
aber nicht beim pybinding

Ich habe Schwierigkeiten das disconnect des pybinding zu identifizieren bzw. danach dem Pythonbinding_15733 neuzustarten:
Mein Notify reagiert nicht:
defmod Python_Notify1 notify pybinding:state:.* {if (ReadingsVal("pybinding","state","??") eq "disconnected") {\
fhem("set myTelegramBot _msg @139 'Python disconnected'");;\
fhem("set Pythonbinding_1533 restart");;\
}  }
attr Python_Notify1 room _Hood->Logic


Update:
Notify war nie mein Ding, ich habe DOIF aufgemacht und
defmod Python_restart_DOIF DOIF (ReadingsVal("pybinding","state","??") eq "disconnected") \
(\
set myTelegramBot _msg @1391745765 'Python disconnected', \
set Pythonbinding_15733 restart\
)
attr Python_restart_DOIF do always


jetzt laeuft wieder.
HP Microserver GEN8 XEON, Ubuntu 22.04, FHEM, ConBee II, CCU2, CUL433, Tradfri, Luxtronik2, Volkszaehler (und wenig Ahnung...)

dominik

event-on-change-reading kann ich beim nächsten Update mit aufnehmen, war noch nicht mit dabei. Macht aber keinen Unterschied, da generell ein Event ausgelöst wird.

Kannst du bitte prüfen, ob fhempy noch läuft?
ps -efa|grep fhempy
Poste bitte die Ausgabe. Danke!

Notify nutze ich nicht, per DOIF sollt es so funktionieren
define fhempy_restart DOIF ([pybinding] eq "disconnected") ((set myTelegramBot _msg @139 'Python disconnected')) (set Pythonbinding_15733 restart)
attr do always
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik