Skip to content

tsbarnes/epdtext-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

epdtext-web

epdtext-web is a Flask web app to control epdtext

Basics

Simply put, epdtext-web is an addon for epdtext that allows you to control the screen via a web app, accessible from any computer on the same network as your Raspberry Pi.

Installation

Note: you'll need epdtext installed first, see the epdtext README

  • First, make sure you have git and pip3 using this command:
sudo apt install git python3-pip
  • Second, clone the repository and change directory into it:
git clone https://github.com/tsbarnes/epdtext-web.git /home/pi/epdtext-web
cd /home/pi/epdtext-web
  • Third, install the Python dependencies:
sudo pip3 install -r requirements.txt
  • Fourth, configure your secret key by creating app.cfg with the following contents:
SECRET_KEY = "<your secret key here>"
  • You can generate a new secret key with this command:
python -c 'import os; print(os.urandom(16))'
  • Last, copy the service file and start the server:
sudo cp /home/pi/epdtext-web/epdtext-web.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable epdtext-web
sudo systemctl start epdtext-web
  • Congratulations, you're set up! Now access the web app by visiting your Pi's address in a web browser!