feat: Implement image fetching and storage system
Some checks failed
Deploy to BeePC / deploy (push) Has been cancelled

- Add image-fetcher module for downloading and saving images from various sources.
- Create storage module for managing image files, including downloading, verifying integrity, and cleaning up orphaned files.
- Develop gallery HTML page for displaying images with sorting and filtering options.
- Set up RESTful API routes for image management, including fetching, adding tags, and deleting images.
- Introduce setup script for initializing the database and configuring image sources.
- Implement a batch process for verifying image integrity and cleaning up old images.
- Add setup batch script for easy installation and configuration of the image storage system.
This commit is contained in:
2026-02-12 13:13:36 -05:00
parent ea6cc3fc85
commit 9c72b00b1b
19 changed files with 3004 additions and 71 deletions

19
image-sources.json Normal file
View File

@@ -0,0 +1,19 @@
{
"sources": [
{
"name": "Bedroom Exterior",
"url": "http://192.168.254.66:8080/",
"tags": ["lake", "road"],
"enabled": true
}
],
"fetchInterval": 0.033,
"comments": {
"sources": "Array of image sources to fetch from",
"name": "Human-readable name for the source",
"url": "Full URL to the image",
"tags": "Array of tags to apply to fetched images (useful for ML training)",
"enabled": "Set to true to include this source in fetching",
"fetchInterval": "Minutes between fetch cycles. Examples: 0.033 = 2 seconds, 0.05 = 3 seconds, 0.083 = 5 seconds, 1 = 1 minute, 2.5 = 2.5 minutes (default)"
}
}