← Back to Gallery
Camera Gallery API Help
Available Endpoints
GET /
Shows the main gallery page with:
- Latest image with date/time title
- Links to images grouped by hour for the last 12 hours
- Links to images grouped by day for the last 7 days
GET /hour/<hour_str>
Shows all images captured in a specific hour. Format: YYYY-MM-DD HH:00
Example: /hour/2025-11-17 14:00
GET /day/<day_str>
Shows all images captured in a specific day. Format: YYYY-MM-DD
Example: /day/2025-11-17
GET /detail/<filename>
Shows a single image in detail view
POST /uplimg
Upload a new image file. Automatically removes images older than 7 days.
Form parameter: file (the image file to upload)
GET /uploads/<filename>
Serves the original uploaded image file
Features
- Automatic cleanup of images older than 7 days
- Date/time extraction from filenames (format: YYYY-MM-DD_HH-MM-SS.ext)
- Responsive gallery layouts
- Hourly and daily grouping of images