How jhonka1006-prog/foto_logger works
foto_logger is a local-network Flask app for recording photos and videos with capture time and GPS burned into the processed media. The main workflow is browser upload, metadata extraction, user coordinate confirmation, media processing, and cataloging; users can then browse, delete, and export records. SQLite, local media directories, monthly exports, and rotating asynchronous backups provide persistence. The map uses README documentation and the shown source/index references; unsampled route details are represented only where the README documents them.
Main entry points: routes.py HTTP routes · backup.py Backup snapshots · database.py Media catalog · main.py App factory
Components 17
Web experience
- App factory
app/main.py - HTTP routes
app/routes.py - Web templates
templates
Media workflow
- Original media
- Metadata extraction
app/routes.py - Image processing
app/image_processor.py - Video processing
app/video_processor.py - Processed media
Persistence
- Media catalog
app/database.py - SQLite database
Exports and backups
- Monthly export
app/exporter.py - Monthly PDF
app/routes.py - Export files
- Backup snapshots
app/backup.py - Backup storage
Other components
- Mobile / desktop browser
- Address geocoder
Connections 25
- Mobile / desktop browser → HTTP routes: sends requests
README.md - HTTP routes → Web templates: renders pages
README.md - App factory → HTTP routes: registers routes
app/main.py - App factory → Media catalog: initializes schema
app/main.py - App factory → Backup snapshots: starts backup
app/main.py - HTTP routes → Original media: stores uploads
README.md - HTTP routes → Metadata extraction: reads metadata
README.md - Metadata extraction → Image processing: extracts image EXIF
README.md - Metadata extraction → Video processing: extracts video metadata
README.md - Mobile / desktop browser → HTTP routes: confirms coordinates
README.md - HTTP routes → Image processing: processes images
README.md - HTTP routes → Video processing: processes videos
README.md - Image processing → Processed media: writes JPEG
README.md - Video processing → Processed media: writes video
README.md - HTTP routes → Media catalog: records media
README.md - Media catalog → SQLite database: reads and writes
app/database.py - HTTP routes → Media catalog: queries and deletes
app/routes.py - HTTP routes → Monthly export: requests raw export
README.md - Monthly export → Export files: copies processed files
app/exporter.py - HTTP routes → Monthly PDF: builds monthly PDF
README.md - HTTP routes → Backup snapshots: triggers backup
app/backup.py - Backup snapshots → SQLite database: copies database
app/backup.py - Backup snapshots → Processed media: copies processed media
app/backup.py - Backup snapshots → Backup storage: writes snapshots
app/backup.py - HTTP routes → Address geocoder: geocodes addresses
README.md