Display image posts from a Mastodon personal, hashtag or public timeline on a Raspberry Pi with the Pimoroni Inky Developer E Ink
You will need a Raspberry Pi (I used a Zero W) and the Pimoroni Inky Developer 7-colour Eink display.
- Follow the installation instructions for the Python library at https://github.com/pimoroni/inkydev-python
sudo raspi-config nonint do_i2c 0
sudo raspi-config nonint do_spi 0
pip3 install inkydev
pip3 install inky[rpi,fonts]
- Install Python libraries
pip3 install Mastodon.py
pip3 install pillow
- Download MastoInky to your Pi
wget https://github.com/axwax/MastoInky/archive/refs/heads/main.zip
unzip main.zip
cd MastoInky-main
-
Get a Mastodon access token at https://{your mastodon instance}/settings/applications
-
Enter your API credentials in
credentials_example.py
and rename tocredentials.py
-
If you want to follow an account's timeline, you first have to find the account id
python3 search_for_account_id.py
and add it to credentials.py
.
-
At the bottom of
mastoinky.py
uncomment the relevant line for the timeline to use (account, public or hashtag). -
run
python3 mastoinky.py