Redirect Views - aaronwmorris/indi-allsky GitHub Wiki

Overview

indi-allsky supports several views to redirect requests to the latest images or videos. This is achieved by returning a 302 redirect to the asset. These views allow you to integrate the latest image into another web site.

Direct file redirects

These redirect directly to the image or video file

Curl download example

curl -L -o "latest_$(date +%Y%m%d_%H%M%S).jpg" https://localhost/indi-allsky/latestimage

Latest Image

Redirects to latest timelapse image file

Latest Keogram

Redirects to latest keogram image file

Latest Startrail

Redirects to latest startrail image file

Latest Panorama Image

Redirects to latest panorama image file

Latest RAW Image

Redirects to latest RAW image file

Latest Timelapse Video

Redirects to latest timelapse video

Latest Startrail Timelapse Video

Redirects to latest startrail timelapse video

Latest Panorama Video

Redirects to latest panorama video

View redirects

These redirect to the templated view for the media

Latest Timelapse Image view

Latest Keogram view

Latest Startrail view

Latest Panorama Image view

Latest RAW Image view

Latest Timelapse Video view

Latest Startrail Video view

Latest Panorama Video view