This is an old revision of the document!
…project “made & run(s)” by mecci@c-base.org & zet@c-base.org (since/ano 2022)
“build next level systemterminal for each spacestation zone to get sensors & infoscreens data, play music like the “mpd”-stations, play videos from lan, play stream(s) & media from local network & different internet sources… –> one central terminal per zone (with a full linuxserver behind every codi instance & low power use, ~29W max@running PoC)!” the codi-project is inspired by the spacestation Babylon 5's Babcom System:
“Babcom was (Spacestation) Babylon 5's internal communications network. Public terminals were available in most public areas including the Passenger Lounges, Zocalo as well as modest and better quarters and can link in to StellarCom.”
tribute & thanks @ these opensource projects & software that we use:
codi showcase setup for 38c3 congress: autoboot / offline useable / 6x rpi3 with rasberian OS (bookworm), 5x codi-terminal(s) / remote controllable setups (z.b. android core) + 1x rpi3 (server) 4lan-service codi-base 🥳 (remote syncronized content play service):
(customized multios kodi client @ central mediadb) :
device list @ “\\mfs\mfs\kodi-sync\codis-tribution-system\all-mac-codi-project-devices.txt”
custom codi terminal stations (logo identify) overview:
ws:10.0.0.152:9090/; # leuchtetisch win
# ws:10.0.1.168:9090/; # libreelec zet
# ws:10.0.1.171:9090/; # kodi20 zet
# ws:10.0.1.170:9090/; # kodi20 zet
ws:10.0.1.173:9090/; # brückenecke
# ws:10.0.1.167:9090/; # nerdcouch
# ws:10.0.1.176:9090/; # p400z
ws:10.0.1.169:9090/; # scratecke
# ws:10.0.0.69:9090/; # brückenecke
#
# UNTERDECK POC
#
ws:rpi3-12OS:9090/;
ws:rpi3-17OS:9090/;
ws:rpi3-19OS:9090/;
# ws:10.0.0.75:9090/;
# ws:rpi3-22OS:9090/;
# ws:10.0.0.250:9090/; #wlan rpi3-22
#
# ws:10.0.0.156:9090/;
# # ws:10.0.1.176:9090/;
# ws:10.0.1.168:9090/;
# ws:10.0.0.197:9090/;
# # ws:10.0.0.108:9090/;
#
# # ws:10.0.0.160:9090/;
# # ws:10.0.0.181:9090/;
#
# # ws:10.0.0.245:9090/;
# # ws:10.0.1.170:9090/; #brückenecke
# # ws:10.0.1.178:9090/;
# # ws:10.0.0.210:9090/;
# # ws:10.0.0.251:9090/;
# # ws:10.0.0.115:9090/;
# ws:10.0.0.234:9090/;
# ws:10.0.1.172:9090/;
#
working notes by zet (full howto + scripts: zet's codi-project folder). no passwords here.
kodi with the codi ssh key, only from inside the c-base lan (10.0.0.0/23)kodi.service; several share the image hostname rpi3-trixie, so identify them by address / dns namevcgencmd get_throttled first, they differ more than the common image suggests| name | address | hardware / place | state 2026-11-16 |
|---|---|---|---|
| rpi3-trixie | 10.0.1.166 (wlan) | pi 3b, monitor 1680×1050 | tuned, warm-up addon 1.0.2, render direct to plane, screensaver = nerdstatus stream + watchdog |
| rpi3-23OS | 10.0.1.179 (lan) | pi 3b+, 1920×1080 | tuned, warm-up addon 1.0.2, screensaver = nerdstatus stream + watchdog, undervoltage |
| rpi3-24 (dns rpi3-24OS) | 10.0.1.180 (lan) | pi 3b+, screen unknown, edid unreadable → only 1024×768 | tuned, warm-up addon 1.0.1, screensaver = nerdstatus stream + watchdog, undervoltage; not reachable since 2026-11-16 20:00 |
| rpi3-20 (dns rpi3-20OS) | 10.0.1.175 (lan) + wlan | pi 3b+, samsung 24“ 1920×1080 | tuned, warm-up addon 1.0.2, screensaver = nerdstatus stream, wlan fix, undervoltage |
| rpi3-09 (dns rpi3-9OS) | 10.0.1.163 (wlan) | pi 3b, bigscreen mainhall (hisense 65”) | tuned, warm-up addon 1.0.2, wlan fix, c-base loop, fixed 1080p edid |
| rpi3-piss (dns rpi3-13OS) | 10.0.1.168 (wlan) | pi 3b, samsung tv mainhall above the wc | tuned, warm-up addon 1.0.2, c-base loop |
| rpi3-16 / rpi3-15 / rpi3-22 | wlan, dynamic | pi 3b+, debian 12 (older image) | only looked at, nothing changed, undervoltage |
(photos 2026-11-16: rpi3-09 @ bigscreen mainhall, rpi3-piss above the wc, both playing the c-base loop)
screensaver.videosaver plays /home/kodi/Videos/c-base-loop-720p.mp4 (or the nerdstatus stream, see infoscreen section) after 1-3 min idleservice.codi.warmup plays the local loop ~3 s fullscreen at every kodi start, after that the plane is right. install without root: copy the folder to ~/.kodi/addons/, send builtin UpdateLocalAddons, enable via json-rpc Addons.SetAddonEnabledcrtc-pos of the video plane must show the screen size, not 0x0+0+0:sudo sh -c 'cat /sys/kernel/debug/dri/*/state' | awk '/^plane\[86\]/{f=1} /^plane\[98\]/{f=0} f&&/crtc-pos/'
copy to the pi, run with sudo bash <script>, take back with sudo bash <script> undo:
codi-rpi3-tune.sh: kodi Restart=always, daily kodi restart at 06:00 (kodi grows: 265 MB fresh, 490 MB after 19 h, killed by the kernel at 650 MB after 8 days), cloud-init / wait-online / man-db timer off, bluetooth off if nothing is paired, swappiness 100 (swap is zram)codi-wlan-fix.sh: networkmanager gives up a wifi profile after a failed handshake and never retries → unlimited retries, wifi powersave off, watchdog every 2 mincodi-screensaver-watchdog.sh and codi-nerdstatus-stream.sh: see infoscreen sectionRestartApp/lib/firmware/edid/codi-1080p.bin and in /boot/firmware/cmdline.txt: video=HDMI-A-1:1920x1080@60D drm.edid_firmware=HDMI-A-1:edid/codi-1080p.binedid-set-hdmi-port.py), otherwise the tv switches to another input and kodi pauses the video(batocera running on rpi4 @55'' touchscreen, location: mainhall)
https://wiki.batocera.org/start
5x codi terminals (rpi3 arm64) in testing for rollout @all underdeck sections (29W max power, per setup)
these file "\\mfs\mfs\kodi-sync\advancedsettings.xml" --> copy2your "~homedir/.kodi/userdata/" & these file "\\mfs\mfs\kodi-sync\sources.xml" --> copy2your "~homedir/.kodi/userdata/"
«readme»
kodi im c-base netz nutzen mit zentraler mysql@mfs by zet@c-base.org
install kodi auf android oder fireos … einmal anstarten wieder beenden die advancedsettings.xml aus diesem ordner in den kodiordner: android: “…/Android/data/org.xbmc.kodi/files/.kodi/userdata/” kopieren kodi starten sollte sowohl datenbank für filme derien & musik vom \\mfs\ mit allen medieninformationen haben!!!
…habt spass … geht auch bei linux & co & natürlich windoof! (wenn dann gibt es probleme mit netzprotokollunterschieden z.b. nfs mounten)
btw …das kodidevice muss im gleichen internen netz wie der mfs sein! …ausbau der kodis folg …der zet
«/readme»
(lan service 4 syncronized terminal video playing) —self coded (by mecci) network service for syncronized remote video playing on connected codi terminal[s]:
all codi central spacestation files here via smb (syncpoint kodi, installers, sdcard images,codi-base, etc):
https://kodi.wiki/view/Advancedsettings.xml
(video screensaver source)
rtsp://10.0.1.102:8554/nerdstatusrtmp://ctreamer.cbrp3.c-base.org:1935/nerdstatusc-info-nerd.strm (the rtmp url), templates @ \\mfs\mfs\kodi-sync\infoscreens-streams\the three commands the script starts (invisible display, firefox with the status page, ffmpeg to the server):
Xvfb :99 -screen 0 1280x720x24 -nolisten tcp -nocursor & DISPLAY=:99 MOZ_ENABLE_WAYLAND=0 firefox --no-remote --profile ~/.cache/codi-nerdstatus-profile --kiosk --width 1280 --height 720 "$PAGE_URL" & ffmpeg -nostdin -hide_banner -loglevel warning \ -f x11grab -draw_mouse 0 -video_size 1280x720 -framerate 15 -i :99 \ -f lavfi -i anullsrc=r=44100:cl=stereo \ -c:v libx264 -preset veryfast -tune zerolatency -profile:v main -pix_fmt yuv420p \ -g 30 -crf 26 -maxrate 2000k -bufsize 4000k \ -c:a aac -b:a 64k \ -f rtsp -rtsp_transport tcp rtsp://10.0.1.102:8554/nerdstatus
x11grab grabs the xvfb :99, anullsrc adds a silent audio track (some players hang without audio), -g 30 = keyframe every 2 s so kodi joins fast, -crf 26 capped at 2 mbit/s keeps the load on the pi400 low. $PAGE_URL is the c-flo infodisplay url above. full script + details: howto
the old generator vm has to be rebuilt (other member). until then a pi400 feeds the stream:
codi-nerdstatus.service (script /usr/local/bin/codi-nerdstatus-stream, settings /etc/default/codi-nerdstatus), starts at boot, restarts itself, independent of the desktop session; firefox is restarted every 6h without interrupting the streamcurl -sL -b "" -o /dev/null -w '%{http_code}' http://10.0.1.102:8888/nerdstatus/index.m3u8 → 200 yes / 404 nosystemctl status codi-nerdstatus / journalctl -u codi-nerdstatus -f / still picture: bash ~/codi-nerdstatus-stream.sh shotsudo bash ~/codi-nerdstatus-stream.sh undo), two sources on the same path fight each other:0 via x11grab / kmsgrab) did not work under wayland, see \\mfs\mfs\kodi-sync\infoscreens-streams\fed-zet-ffmpeg-cmds.strmscreensaver.videosaver, setting “VideoFile” = /home/kodi/Videos/c-info-nerd.strm (kodi reads addon settings only at start → restart kodi after changing the file by hand). back to the loop: copy settings.xml.bak-20261116-mp4 back in the addon data folder/home/kodi/Videos/c-base-loop-720p.mp4codi-screensaver-watchdog (systemd timer, every minute, log: journalctl -t codi-ssw): closes the dialog, plays the stream again or, while the stream is missing, the fallback video, and switches back as soon as the stream is there again. installed on .166 / .179 / .180 (not yet on rpi3-20)(picture screensaver source)