No description
Find a file
2026-04-19 21:38:28 +01:00
internal refactor: rename fontFilePath parameter to be clearer 2026-04-19 20:59:36 +01:00
systemd systemd: increase OnBootSec 2026-04-18 21:59:27 +01:00
.gitignore gitignore: fonts/ 2026-04-19 21:05:27 +01:00
args.go get config file path from args 2026-03-26 19:52:16 +00:00
config.example.toml docs: add font option to config.example.toml 2026-04-19 17:53:29 +01:00
config.go add font to config 2026-04-19 17:50:51 +01:00
go.mod render pressure chart 2026-04-01 21:16:16 +01:00
go.sum render pressure chart 2026-04-01 21:16:16 +01:00
justfile use build tag 'nodisplay' for preview mode 2026-04-19 16:06:54 +01:00
main.go add font to config 2026-04-19 17:50:51 +01:00
README.md docs: disable power LED on raspberry pi 2026-04-19 21:38:28 +01:00
tuxwithfriends.png load png image and display 2026-03-30 18:53:37 +01:00

homedisplay

Copy config.example.toml to config.toml and fill in the values.

just run

# To specify config file location
just run -config=config.toml

# Usage help
just run -h

Systemd Service

To update the display on boot and every hour, register the systemd service:

./systemd/install

Dependencies

https://www.waveshare.com/wiki/5.83inch_e-Paper_HAT_Manual

Install the lgpio C library

wget https://github.com/joan2937/lg/archive/master.zip
unzip master.zip
cd lg-master
make
sudo make install

The last step gives a Python error but this is OK as we only need the C libs.

Waveshare display demo

git clone https://github.com/waveshare/e-Paper.git

Hardware Setup

This project was designed for the Waveshare 5.83" e-Paper display.

Set the switches on the e-Paper driver HAT according to the docs.

Editing files over SSH

Use SSHFS to mount the Raspberry Pi project dir on your local machine. Then use your local editor for the full editing experience, and changes are made on the Pi's filesystem.

sshfs user@pi:/home/user/homedisplay ~/mnt/homedisplay

Note: using sudo will cause SSH key authentication to fail, so run as non-root user.

Before powering down the Raspberry Pi or your local machine, disconnect the SSHFS.

umount ~/mnt/homedisplay

Running without the C libraries

You can run the project in preview mode if you don't have the C libraries installed. This is enabled by the nodisplay build tag (e.g. go build -tags=nodisplay). The image that would get output to the display is saved to output.png.

just preview

# In kitty terminal
just preview && icat output.png

To get the LSP working with the correct flags in NeoVim, export GOFLAGS="-tags=nodisplay" before opening the editor.

Docs

Disable power LED on the Raspberry Pi Zero W

Add the following to the bottom of /boot/firmware/config.txt:

[all]
dtparam=act_led_trigger=none
dtparam=act_led_activelow=on