Portal service for Raspberry Pi devices.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-02-09 22:48:10 -06:00
.github repalce vcgencmds with xscreensaver commands 2024-02-09 22:48:10 -06:00
commands add logs when packages are imported 2023-03-21 20:31:46 -05:00
modules add logs when packages are imported 2023-03-21 20:31:46 -05:00
net add print 2024-02-09 21:47:05 -06:00
util repalce vcgencmds with xscreensaver commands 2024-02-09 22:48:10 -06:00
.gitignore update to use proper user 2023-09-30 11:10:14 -05:00
LICENSE Create LICENSE 2022-01-23 21:16:34 -06:00
portal.py run python unbuffered so that it outputs to stdout so i can see it in journalctl 2024-02-09 22:31:56 -06:00

portal-rpi

interface between the rpi and the portal

Networking

The system binds a listener to a TCP socket, utilising the port specified in config.ini, to receive commands from the Portal.

Modules

To reduce complexity and resource requirements, the system is broken up into several modules.

Kiosk

This module requires the Motion module to turn the screen off after a period of inactivity, reported by xscreensaver using xprintidle. Requires both screensaver, and xprintidle.

If you wish to access streaming services, it may be necessary to install Widevine.
sudo apt install libwidevinecdm0

Motion

This module requires a method of sensing, and particularly supports either a HC-SR501 PIR or an RCWL-0516 radar sensor.

Pins used

  • The Motion modules use pin 17 for input from the sensor, and two pins of your choice for power and ground.
  • The Lights module uses pins 13, 6, and 5, for the colors red, green, and blue, respectively, and a single pin of your choice for a ground.