Digital photo frame from photos received on Gmail or in Firebase
pip install -r requirements.txt
- Create project on https://console.cloud.google.com/
- Activate Gmail API
- Create credentials "OAuth client ID"
- Download JSON and save as credentials.json in root project
On gmail, create a new label where your photos will be stored. Yan can also create a filter that will sort all the photos under this label
python labels_gmail.py
Outputs all labels : ID - Label
Copy the ID of your new Label and paste in the .env file GMAIL_LABEL_ID
NOTE: First time you launch the app, you will be redirected to google in order to login.
A "token.json" file will be created. This file contains information to stay logged in.
Optional if Gmail is configured
- Create Firebase project
- Firebase Admin SDK service account
- Service account credential file : Set GOOGLE_APPLICATION_CREDENTIALS key in .env file with the path
Follow this setup : https://firebase.google.com/docs/admin/setup/
This digital photo frame displays temperature and time in specified city.
On weather.com, You need to retrieve the city ID by searching for its name in the search bar and copying the ID contained in the URL.
Then, add your own city in weather_com.py.
In the .env file, these values are required
-
FIREBASE_STORAGE_BUCKET (if you use firebase) : storage bucket's name found on https://console.firebase.google.com page where you see all files uploaded
When slideshow is running, screen is divided into 3 columns :
PREVIOUS | PAUSE | NEXT |
When paused, the screen is divided into 9 pieces to allows 9 user actions :
PREVIOUS | RESUME | NEXT |
ZOOM - | MOVE UP | ZOOM + |
MOVE LEFT | MOVE DOWN | MOVE RIGHT |