p

portal

v1a40159library

Collection of programs for a custom display

0 stars0 forksUnknownupdated 4 days ago
Open repo

Portal

A collection of various programs that run on a custom circular display.

Installation

To build and deploy to a Raspberry Pi:

  1. Install Odin compiler on local machine.
  2. Update Makefile HOST and HOME variables.
  3. Run make dependencies to install dependencies on Raspberry Pi.
  4. Run make deploy to build and upload to Raspberry Pi.
  5. Add .env file with following information:
HA_URL=
HA_MEDIA_ENTITY=
HA_TOKEN=
  1. Start the program using sudo systemctl start portal.service

To enable auto-start on boot:

  1. Enable console auto-login via sudo raspi-config (System Options > Auto Login > Console Autologin)
  2. Run sudo systemctl enable portal.service.
  3. Use client.sh to remotely change the scene.

Logging

To prevent SD card wear, configure logging to RAM (/run/log/journal)

  1. Enable journald volatile storage with memory limits:
# /etc/systemd/journald.conf
Storage=volatile
RuntimeMaxUse=50M
RuntimeKeepFree=10M
  1. Restart journald: sudo systemctl restart systemd-journald
  2. Verify configuration: journalctl --disk-usage

Troubleshooting

Audio capture is not working or very quiet.

  1. Check if microphone is detected: arecord -l.
  2. 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%)
Package Info
Version
v1a40159
License
Unknown
Author
@ritamsarmah
Type
library
Forks
0
Created
5 months ago
Updated
4 days ago
Health
maintained
has releases
has readme
has license
Activity
last 56 weeks