A digital picture frame powered by google photos api
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This project was made as a Christmas gift for someone but I decided to post the code for all to use, thus is the Christmas Spirit.
- Rapsberry Pi 3B/4B/5
- A display(I am using the official Raspberry Pi 7" Touchscreen)
- A google account
- A mobile device
- Internet connection
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow this tutorial.
The project requires a Google API account to access your google photos account. The next steps are how to correctly set up your api account and project.
Go to Google Cloud Api. If you are signed in, you will see the blue 'Try Google Cloud Free' button, press it and you will be prompted to create your account.
You will then see a blue 'New Project button on your screen, click it.
Once you create your project, you will be presented with this dashboard. Click 'APIs & Services'
You will now see this dashboard. We need to enable the Google Photos Picker API, so we need to click '+ ENABLE APIS AND SERVICES'
Once you search 'Google Photos API', click on the result and enable it via the enable button
After that, we need to set up the authentication consent screen. Click 'OAuth Consent Screen' on the left bar & set the user type to be external (it will never be internal), then hit create
Now we need to set up the credentials so your api can get authenticated and work properly. Click the 'Credentials' tab on the left, then '+ CREATE CREDENTIALS' and click 'OAuth client ID'
You will be prompted with the above creation screen. Set the Application type to be 'Web application', name your client, and set the Authorized redirect URIs to have 'https://localhost:8080/'. After that, press create.
After that, you'll be prompted with a confirmation screen. Make sure you hit the 'DOWNLOAD JSON' button and label the file Credentials.json, you will need to put this into your project directory.
- You can either clone this repository or copy the main.py file and build the folders yourself
- If you clone the repository, make sure to delete all items in the "images" & "backup" folders
- If you only copy the main.py, you will have to create the "images" & "backup" folders in the same location of your main.py file
- You now need to install each of the dependencies
- The first 3 imports are default with python and do not need to be installed
- Now you need to put the Credentials JSON file that you generated earlier into the project folder
- Upon running the code, a QR Code will appear. I reccomend using the google app on your phone to scan it as it lets the photos selection be much more streamlined.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the Apache License. See LICENSE.txt for more information.
Project Link: https://github.com/Mikeymac02/PiFrame
