tchellomello / python-arlo

Python Arlo is a library written in Python 2.7/3x that exposes the Netgear Arlo cameras as Python objects.
GNU Lesser General Public License v3.0
100 stars 35 forks source link

`last_image` and `snapshot_url` returns stale images #72

Closed alexeystrakh closed 6 years ago

alexeystrakh commented 6 years ago

I'm trying to fetch a last know camera image on a periodic basis. I'm trying to use last_image (bytes) as well as the snapshot_url (with schedule_snpashot() method call to update it) but unfortunately, it seems it returns me stale images (different).

  1. This one always returns the same URL and doesn't update it even though schedule_snapshot() return True: http://python-arlo.readthedocs.io/index.html#pyarlo.camera.ArloCamera.snapshot_url

  2. This one returns a stale image, the same image I can see as a streaming preview and it's never updated, it could stay the same for days and I didn't find a way to update it expect of start streaming via the user interface (web or app): http://python-arlo.readthedocs.io/index.html#pyarlo.camera.ArloCamera.last_image

What is the approach to refresh the current image and download it?

alexeystrakh commented 6 years ago

Sorry, I got it, the URL is the same but the image is different.

schedule_snapshot() works fine