Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ibnadam/info_epd

Repository files navigation

e-Paper Info

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.

demo image

Setup

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

Configure

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

Requirements

  • Waveshare e-Paper Display (code tested on 2.13 inch Rev2)

  • Raspberry Pi

Run

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

Credits

Waveshare: https://github.com/waveshare/e-Paper

PrayTimes: http://praytimes.org/

AltStyle によって変換されたページ (->オリジナル) /