Skip to content

This is a raspberry pi/google photos smart picture frame. It uses the google photos api to download pictures from your google photos library and display them in a slideshow format (THIS IS ONLY MEANT FOR RASPBERRY PI SYSTEMS)

License

Notifications You must be signed in to change notification settings

Mikeymac02/PiFrame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkedIn


Logo

PI Frame

A digital picture frame powered by google photos api
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

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.

(back to top)

Required Components

  • Rapsberry Pi 3B/4B/5
  • A display(I am using the official Raspberry Pi 7" Touchscreen)
  • A google account
  • A mobile device
  • Internet connection

(back to top)

Getting Started

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.

Setting up Google API Access

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.


Frame1

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.


Frame3

You will then see a blue 'New Project button on your screen, click it.


Frame4

Once you create your project, you will be presented with this dashboard. Click 'APIs & Services'


Frame5

You will now see this dashboard. We need to enable the Google Photos Picker API, so we need to click '+ ENABLE APIS AND SERVICES'


Frame7

Once you search 'Google Photos API', click on the result and enable it via the enable button


Frame8

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


Frame9

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'


Frame10

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.


Frame11

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.

Installation

  1. 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
  1. You now need to install each of the dependencies
    • The first 3 imports are default with python and do not need to be installed

(back to top)

  1. Now you need to put the Credentials JSON file that you generated earlier into the project folder

Startup

  • 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).

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Top contributors:

contrib.rocks image

License

Distributed under the Apache License. See LICENSE.txt for more information.

(back to top)

Contact

Project Link: https://github.com/Mikeymac02/PiFrame

(back to top)

About

This is a raspberry pi/google photos smart picture frame. It uses the google photos api to download pictures from your google photos library and display them in a slideshow format (THIS IS ONLY MEANT FOR RASPBERRY PI SYSTEMS)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages