Table of Contents

…project “made & run(s)” by mecci@c-base.org & zet@c-base.org (since/ano 2022)

codi-project target

“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:

{{:projects:freebsd-trans.jpg?150|


codi-project showcase@38c3:

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):

alpha documentation notes:


codi-project (components)


codi terminal(s) (frontend)

(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:


codi @ rasberianOS (arm64)

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/; #


codi terminals @ rpi3: status & ops notes (2026-11)

working notes by zet (full howto + scripts: zet's codi-project folder). no passwords here.

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 = lan address) 10.0.0.137 (wlan, dynamic), 10.0.1.180 (lan, only with cable) pi 3b+, no screen connected on 2026-11-16 21:20 tuned, warm-up addon 1.0.2, screensaver = nerdstatus stream + watchdog, wlan profile + wlan fix, undervoltage
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

rpi3-09 @ bigscreen mainhall rpi3-09 @ bigscreen mainhall (hisense 65) rpi3-piss @ mainhall above the wc

(photos 2026-11-16: rpi3-09 @ bigscreen mainhall, rpi3-piss above the wc, both playing the c-base loop)

video screensaver

sudo sh -c 'cat /sys/kernel/debug/dri/*/state' | awk '/^plane\[86\]/{f=1} /^plane\[98\]/{f=0} f&&/crtc-pos/'

scripts

copy to the pi, run with sudo bash <script>, take back with sudo bash <script> undo:

kodi without root

screen not detected (edid)


codi @ windows 10+ (64bit)


codi @ firetv (fireos /android app)


codi @ libreelec (rasberry)


codi-gaming

codi @ batocera gaming station

(batocera running on rpi4 @55'' touchscreen, location: mainhall)

https://wiki.batocera.org/start


codi multiscreen-terminal @ nerdarea


PoC: 5x terminal(s) rollout @ spacestation "unterdeck"

5x codi terminals (rpi3 arm64) in testing for rollout @all underdeck sections (29W max power, per setup)


howto connect your local kodi

   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»


remote control the codi terminal(s)


jellyfin [codi-project@browser]


codi-base

(lan service 4 syncronized terminal video playing) —self coded (by mecci) network service for syncronized remote video playing on connected codi terminal[s]:


codi central file base & mediadb(s)

all codi central spacestation files here via smb (syncpoint kodi, installers, sdcard images,codi-base, etc):

https://kodi.wiki/view/Advancedsettings.xml


codi infoscreen content via video streamer

(video screensaver source)

how the stream is made

  1. a firefox in kiosk mode runs inside an invisible xvfb display and opens the c-flo infodisplay url above (rotates events / nerdarea / bar-status / nerdarea-music / bar-history, controlled via the mqtt broker c-beam:1882)
  2. ffmpeg grabs that display (x11grab, 1280×720, 15 fps, h264 + silent audio track) and pushes it to the streaming server ctreamer (10.0.1.102, mediamtx): rtsp://10.0.1.102:8554/nerdstatus
  3. ctreamer hands it out again as rtmp://ctreamer.cbrp3.c-base.org:1935/nerdstatus
  4. on a codi terminal it is a one-line kodi file c-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

temporary stream source (since 2026-11-16)

the old generator vm has to be rebuilt (other member). until then a pi400 feeds the stream:

codi terminals using the stream as video screensaver


codi picture screensaver source

(picture screensaver source)


codi: zweite tonspur via ukw radio in der nerdarea hören

insert fotos »>

codi project hardware storage


codi doku im wiki via qr-code

first codi doku (old)