aaronwmorris / indi-allsky

Software to manage a Linux-based All Sky Camera.
GNU General Public License v3.0
189 stars 31 forks source link

Expose latest generated timelapse as "latest.mp4" #1366

Open henrikeri opened 3 days ago

henrikeri commented 3 days ago

Hi Aaron,

It is possible relatively easily to expose the latest timelapse as "latest.mp4" similar to the latest photo? I expose the photo on a separate web page and would like to add the video as well if there is an easy way for indi-allsky to put it as the name above in a folder. I use this to show the data to non-tech-savvy users whom one could not expect to be able to open it from the timelapse menu after entering user names and passwords :)

Best regards, Henrik

aaronwmorris commented 3 days ago

Merged #1368 . This uses the "watch timelapse" view to show the latest timelapse if no ID is specified:

https://hostname/indi-allsky/watch_timelapse

henrikeri commented 2 days ago

Thanks Aaron this is awesome Is there a meaningful way to access this server side? I am exposing this on a separate webpage to my non-tech users.

I had a look at the folder structure and there does not seem to be an easy way to implement it wihout implementing server side parsing of the folders.

aaronwmorris commented 2 days ago

Querying the database is how that view does it. What programming language would you want to do this in?