A simple script for generating "Keep Calm" messages on Inky WHAT display.
Follow the instruction in Getting Started with Inky wHAT page
or simply install einky and pil python packages:
sudo pip install einky
sudo pip install pilJust clone this repo:
git clone https://github.com/roblan/keep-calm.git
Script uses font stored in font.tff file inside it's main folder.
To download Keep Calm font from dafont.com type in terminal
cd ./keep-calm
wget https://dl.dafont.com/dl/?f=keep_calm -O font.zip
unzip ./font.zip
mv ./KeepCalm-Medium.ttf ./font.ttfScript takes 2 arguments: --colour (or -c) and --text or (-t):
--colouris image background color, and should be one of"red","black"or"yellow"(according to your Inky wHAT version).--textshould be list of 5 lines to display. It's set to"Keep" "calm" "and" "carry" "on"by default.
python ./keep-calm.py --colour "red" --text "I can't keep calm" "and carry on" " I'm a programmer " "I get 21 errors" "in a 20 line program"Sometimes (on smaller font sizes usually) text is cropped. To fix this you can simply add spaces to both sides of cropped line (like in the example above).

