Code demonstares how to display information on Waveshare e-Paper Display connected to Raspberry Pi. In this case it displays prayer times on the 2.13 inch display.
-
Clone this repository
-
Optional: Activate virtual Python environment.
-
Install included dependencies:
python setup.py install
Note: you can then delete directories build and dist
- Download and install dependencies (make changes to file as necessary):
pip install -r requirements.txt
NOTE: numpy is installed because waveshare library imports it (but does not use).
It could take a while to install on Raspberry Pi. If that happens then your choices are: either comment out the import & don't install numpy, or install the wheel file directly.
Make changes to file config.py, especially the following:
- Location coordinates
- Timezone info
- e-Ink device
Also, if using mixins.salah check settings are appropriate for your case (check comments in source code).
-
Waveshare e-Paper Display (code tested on 2.13 inch Rev2)
-
Raspberry Pi
- Change directory to info_epd
- Run:
python info_epd
To have it run automatically, edit file launcher.sh and add entry crontab file (see comments in file).
Waveshare: https://github.com/waveshare/e-Paper
PrayTimes: http://praytimes.org/