Skip to content

Luka5W/eink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Stuff for open e paper link displays

Based on https://github.com/OpenEPaperLink/OpenEPaperLink/wiki/Image-upload/e1cd235984c7ed3b5c54e3f862e783ea196ef40d

Requirements

  1. Access Point, flashed with openepaperlink.de or compatible
  2. python3 (with PIL)
  3. Any good operating system (this - of course - excludes Micro$oft Windows; might work but untested)

Example Usage

Generate Image

for a 1.54" tag

./eink_create_img.py -i '{"t":"Hello","f":"/usr/share/fonts/truetype/freefont/FreeMono.ttf","s":16,"c":1,"x":0,"y":0,"a":0}' \
                        '{"t":"World","f":"/usr/share/fonts/truetype/freefont/FreeMono.ttf","s":16,"c":2,"x":0,"y":20,"a":0}' \
	             -o helloworld.jpg \
	             -r 0 \
	             -s 1.54 \
	             -vv

Produced Image:

A generated image showing Hello in black and World in red on a white background

Generate and Upload Image

for a 2.9" tag, in wide (not tall) orientation

./eink_create_img.py -i '{"t":"Hello","f":"/usr/share/fonts/truetype/freefont/FreeMono.ttf","s":16,"c":1,"x":0,"y":0,"a":0}' \
                        '{"t":"World","f":"/usr/share/fonts/truetype/freefont/FreeMono.ttf","s":16,"c":2,"x":0,"y":20,"a":0}' \
	             -o helloworld.jpg \
	             -r 0 \
	             -s 2.9w \
	             -vv \
		     -u 'http://192.168.178.192' '00000197E5CB3B38' # the first four '0' can be ommitted

How it Works

Its ugly documented python. The code is documentation enough.

About

stuff, scripts for openepaperlink (.de)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages