-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from mendhak/raspios
Updated and simplified instructions for Raspberry Pi OS.
- Loading branch information
Showing
3 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,29 +45,19 @@ Connect the ribbon from the epaper display to the extension. To do this you wil | |
|
||
## Setup dependencies | ||
|
||
sudo apt install git ttf-wqy-zenhei ttf-wqy-microhei python3 python3-pip python-imaging libopenjp2-7-dev libjpeg8-dev inkscape figlet wiringpi | ||
sudo pip3 install python-dateutil astral spidev RPi.GPIO Pillow # Pillow took multiple attempts to install as it's always missing dependencies | ||
sudo pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib msal | ||
sudo apt update && sudo apt upgrade | ||
sudo apt install git python3 python3-pip cairosvg pigpio python3-pigpio | ||
sudo pip3 install python-dateutil astral spidev RPi.GPIO Pillow google-api-python-client google-auth-httplib2 google-auth-oauthlib msal | ||
sudo sed -i s/#dtparam=spi=on/dtparam=spi=on/ /boot/config.txt #This enables SPI | ||
sudo reboot | ||
|
||
### Get the BCM2835 driver | ||
|
||
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.58.tar.gz | ||
sudo tar zxvf bcm2835-1.58.tar.gz | ||
cd bcm2835-1.58/ | ||
sudo ./configure | ||
sudo make | ||
sudo make check | ||
sudo make install | ||
|
||
## Using this application | ||
|
||
### Clone it | ||
|
||
git clone this repository in the `/home/pi` directory. | ||
|
||
cd /home/pi | ||
cd ~ | ||
git clone --recursive https://github.com/mendhak/waveshare-epaper-display.git | ||
|
||
This should create a `/home/pi/waveshare-epaper-display` directory. | ||
|
@@ -165,9 +155,12 @@ export [email protected] | |
#### Google Calendar token | ||
|
||
The Oauth process needs to complete once manually in order to allow the Python code to then continuously query Google Calendar for information. | ||
Go to the [Python Quickstart](https://developers.google.com/calendar/quickstart/python) page and enable Google Calendar API. When presented, download or copy the `credentials.json` file and add it to this directory. | ||
|
||
Next, SSH to the Raspberry Pi and run | ||
Go to the [Google Cloud Platform library page](https://console.cloud.google.com/apis/library), search for and enable the [Calendar API](https://console.cloud.google.com/apis/api/calendar-json.googleapis.com/overview). | ||
|
||
Next, head over to the [API Dashboard Credentials page](https://console.cloud.google.com/apis/credentials), and create new credentials of type "OAuth Client ID". For application type, choose "Desktop app" and give it a name such as "Epaper Display". When presented, download or copy the `credentials.json` file and add it to this directory. | ||
|
||
You can now kick off the authentication process. On the Raspberry Pi, run: | ||
|
||
python3 screen-calendar-get.py | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters