A collection of various programs that run on a custom circular display.
To build and deploy to a Raspberry Pi:
- Install Odin compiler on local machine.
- Update Makefile
HOSTandHOMEvariables. - Run
make dependenciesto install dependencies on Raspberry Pi. - Run
make deployto build and upload to Raspberry Pi. - Add
.envfile with following information:
HA_URL=
HA_MEDIA_ENTITY=
HA_TOKEN=
- Start the program using
sudo systemctl start portal.service
To enable auto-start on boot:
- Enable console auto-login via
sudo raspi-config(System Options > Auto Login > Console Autologin) - Run
sudo systemctl enable portal.service. - Use
client.shto remotely change the scene.
To prevent SD card wear, configure logging to RAM (/run/log/journal)
- Enable
journaldvolatile storage with memory limits:
# /etc/systemd/journald.conf
Storage=volatile
RuntimeMaxUse=50M
RuntimeKeepFree=10M- Restart journald:
sudo systemctl restart systemd-journald - Verify configuration:
journalctl --disk-usage
Audio capture is not working or very quiet.
- Check if microphone is detected:
arecord -l. - Use
amixerto increase the microphone gain. Note, this is device-dependent; reduce the percentage if the input is too noisy. (e.g.,sudo amixer -c 0 sset 'Mic' 90%)
