How revidm/gdrive_gallery_view_assist works
This Home Assistant add-on serves images from a configured Google Drive folder as a slideshow for View Assist. The main request flow selects an image, fetches or reuses its bytes, optionally resizes it, and returns it from an image endpoint; a health endpoint reports store status. Configuration also enables filtering, recursive/shared-drive listing, shuffle modes, caching, and prefetch. The graph follows the sampled runtime code and README; it does not include the separate OAuth setup helper.
Main entry points: server.py HTTP endpoints · store.py Item store · google_drive.py Drive client · config.py Settings loader
Components 11
HTTP service
- HTTP endpoints
gdrive_gallery_view_assist/app/server.py - Settings loader
gdrive_gallery_view_assist/app/config.py
Image selection
- Item store
gdrive_gallery_view_assist/app/store.py - Item selection
gdrive_gallery_view_assist/app/store.py - Drive item cache
gdrive_gallery_view_assist/app/store.py
Image delivery
- Image cache
gdrive_gallery_view_assist/app/store.py - Resize profiles
gdrive_gallery_view_assist/app/store.py
Google Drive access
- Drive client
gdrive_gallery_view_assist/app/google_drive.py
Other components
- View Assist
- Google Drive API
- Google OAuth
Connections 14
- View Assist → HTTP endpoints: requests slideshow
README.md - HTTP endpoints → Settings loader: loads settings
gdrive_gallery_view_assist/app/server.py - HTTP endpoints → Item store: constructs and queries
gdrive_gallery_view_assist/app/server.py - HTTP endpoints → Item selection: requests next item
gdrive_gallery_view_assist/app/server.py - HTTP endpoints → Image cache: requests image
gdrive_gallery_view_assist/app/server.py - HTTP endpoints → Resize profiles: resolves profile
gdrive_gallery_view_assist/app/server.py - HTTP endpoints → Item store: reads status
gdrive_gallery_view_assist/app/server.py - Item store → Drive item cache: refreshes and reads
gdrive_gallery_view_assist/app/store.py - Item store → Drive client: lists and downloads
gdrive_gallery_view_assist/app/store.py - Item store → Item selection: selects and filters
gdrive_gallery_view_assist/app/store.py - Item store → Image cache: caches and evicts
gdrive_gallery_view_assist/app/store.py - Item store → Resize profiles: resizes images
gdrive_gallery_view_assist/app/store.py - Drive client → Google OAuth: refreshes access token
gdrive_gallery_view_assist/app/google_drive.py - Drive client → Google Drive API: lists and downloads files
gdrive_gallery_view_assist/app/google_drive.py