Skip to content

Instantly share code, notes, and snippets.

@Bouni
Bouni / notes.txt
Created June 3, 2025 09:55
RPi Kiosk
sudo apt update && sudo apt upgrade -y
sudo apt install -y lightdm openbox chromium-browser unclutter xorg
sudo nano /etc/lightdm/lightdm.conf
[Seat:*]
autologin-user=pi
autologin-user-timeout=0
user-session=openbox
@Bouni
Bouni / wallboard-setup.sh
Last active June 19, 2025 11:25
A script to setup a minimal wallboard that displays a webpage in a fullscreen chromium with a RaspberryPi
#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
echo "Run script with sudo!"
echo "sudo ./wallboard-setup.sh"
exit 1
fi
update_system() {
# System upgrade and dependency installation
@Bouni
Bouni / dump.py
Created May 28, 2025 13:03
RPi levelDB
import plyvel
db = plyvel.DB('./Default/Local Storage/leveldb', create_if_missing=False)
for key, value in db:
print(key, value)
db.close()
@Bouni
Bouni / config.env
Created May 22, 2025 07:35
Env file for Alamos FE2
# Lizenz-E-Mail Adresse
[email protected]
# Lizenz-E-Mail Password
FE2_PASSWORD="s7QZ060q5QvyfJ1qtW3Dx@LBn8^3lHR*"
# Gewünschter Aktivierungsname
FE2_ACTIVATION_NAME=FE2-Docker
# Die nachfolgenden Werte müssen in der Regel nicht angepasst werden.
@Bouni
Bouni / Caddyfile
Created May 22, 2025 07:29
Caddyfile for Alamos FE2
{
admin off
log {
format console
}
}
alamos.feuerwehr-musterstadt.de {
reverse_proxy alamos-fe2-server:83
}
@Bouni
Bouni / docker-compose.yaml
Created May 22, 2025 07:25
Docker Compose file for Alamos FE2 + Caddy
services:
caddy:
container_name: caddy
image: caddy
volumes:
- /opt/docker/caddy/Caddyfile:/etc/caddy/Caddyfile
- /opt/docker/caddy/data:/data
- /opt/docker/caddy/config:/config
restart: unless-stopped
@Bouni
Bouni / cloud-init.yml
Last active May 21, 2025 13:42
Cloud init for Hetzner Alamos instance
#cloud-config
locale: de_DE.UTF-8
keyboard:
layout: de
variant: ""
model: pc105
write_files:
@Bouni
Bouni / FE2-restore.sh
Last active June 5, 2025 11:19
FE2 Backup wiederherstellen
#!/bin/sh
if [ $# -ne 3 ]; then
echo "Fehler: 3 Argumente erwartet, erhalten $#"
echo Verwendung: ./FE2-restore.sh Lizenz-E-Mail-Adresse Passwort Domain
echo Besipiel: ./FE2-restore.sh \"[email protected]\" \"s8QZ060q5QvyfJ1qtW3Dx@LBn8^3lHR*\" \"alamos.feuerwehr-musterstadt.de\"
exit 1
fi
# Check if any argument is empty
@Bouni
Bouni / FE2-backup.ps1
Last active June 5, 2025 11:20
Erstellen eines Backups der FE2 Config & Datenbank
$ProgressPreference = 'SilentlyContinue'
Write-Host "FE2 Backup erzeugen"
# Temporäres Verzeichnis für die Config erstellen
$tempFolder = Join-Path -Path $env:TEMP -ChildPath "Alamos_Backup_$(Get-Random)"
New-Item -ItemType Directory -Path "$tempFolder\config", "$tempFolder\db" -Force
Write-Host "Datenbank Dump erzeugen"
@Bouni
Bouni / output.txt
Created November 27, 2024 07:24
Attiny1616 PB5 problem
pio run -v -j1
Processing udpi (upload_flags: --tool, uart, --device, $BOARD_MCU, --uart, $UPLOAD_PORT, --clk, $UPLOAD_SPEED; upload_command: pymcuprog write --erase $UPLOAD_FLAGS --filename $SOURCE; platform: atmelmegaavr; board: ATtiny1616; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/atmelmegaavr/ATtiny1616.html
PLATFORM: Atmel megaAVR (1.9.0) > ATtiny1616
HARDWARE: ATTINY1616 16MHz, 2KB RAM, 16KB Flash
PACKAGES:
- framework-arduino-megaavr-megatinycore @ 2.6.7
- toolchain-atmelavr @ 3.70300.220127 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf