Skip to content

A printer that can show you all the information you need to start your day! Powered by a ESP-8266 board.

License

Notifications You must be signed in to change notification settings

claywebb/iot-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iot-printer

This is the code that powers a daily memo printer.

Parts

Client

You can find the arduino code in the client folder. Change the backend url to your server url and flash the code to your arduino.

Server

The backend of this project is a flask server. It generates the memo in the format of a Jinja2 templated html page. It then converts this html page into a png image of the correct width for a printer using wkhtmltoimage. The image is then converted to a bitmap image and sent to the printer in json format in small chunks.

To run the server, first install wkhtmltopdf

Then start the flask server:

cd server
export FLASK_ENV=development
export FLASK_APP=app.py
flask run
  • note: you might have to install some dependencies using pip install

About

A printer that can show you all the information you need to start your day! Powered by a ESP-8266 board.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published