inertiacreeping / Unifi-Timelapse

Creating a timelapse from your Unifi camera snaps.
11 stars 0 forks source link

[Feature Request] Make CHECK_EXTENSION configurable #1

Open KristiyanHristov opened 1 month ago

KristiyanHristov commented 1 month ago

I don't have unify cameras but this tool can be used for all sorts of cameras if the extension is configurable. In my case (ESP3D on a ESP32CAM) snapshots are available at "/snap" not "snap.jpeg"

inertiacreeping commented 1 month ago

Holy shit, my first feature request on GitHub!

When you say /snap (no extension), how does that work? Is it somehow an image file without an extension, and an extension has to be added to be viewed on something like Win10?

KristiyanHristov commented 1 month ago

You are welcome :) /snap is a url provided by esp32cam. It serves/opens an image called capture.jpg in the browser.

I used the python script to test it, works fine without file extension.

Screenshot 2024-07-12 090932

inertiacreeping commented 1 month ago

Hey! Just dug out an old ESPcam I had collecting dust, after a few headaches I got it working - however, stills are present at /capture for me, not /snap

I'll see if I can get the script to scan for any instance of /snap or /capture (wish me luck)

KristiyanHristov commented 1 month ago

My suggestion is to not overthink it and just make it a config parameter. This is easy and adds support for most use cases. Leave the default value for Unify cameras.