Skip to content

Installation

Kamil Brylew edited this page Oct 30, 2026 · 1 revision

Installation

Supported target

Use a 64-bit Raspberry Pi 4 with Raspberry Pi OS Bookworm Desktop and labwc, a powered Monarco HAT, and an 800×600 touch display. Connect the GM boards to the external RS485 bus at Modbus addresses 1 and 2 and 9600 baud. The Pi-to-HAT UART uses 115200 baud. The verified tower mapping is DOUT1 red, DOUT2 orange, DOUT3 green. Check the tower supply and actual cable splices before enabling its outputs.

Run the installers as the intended desktop user with sudo access, not as root. The Pi needs network access to GitHub, APT, NodeSource, npm, and Python package sources. The installer also fetches the separate nlab-modbus-devices backend from internal Gitea, so authorized access to that service is still required.

Base dashboard and tower

Enable SSH and networking on a new desktop image, then:

sudo apt-get update
sudo apt-get install -y git
git clone https://github.com/nucliflare/nlab-dosimeter-gate.git ~/node-red-dosimeter-gate
cd ~/node-red-dosimeter-gate
./dashboard/scripts/provision-pi.sh install
sudo reboot

After reconnecting as the same user:

cd ~/node-red-dosimeter-gate
./dashboard/scripts/provision-pi.sh check

The installer sets up Node.js 24, Node-RED 5.0.7, FlowFuse Dashboard 1.32.0, Chromium, Python 3.12.10, the pinned Modbus backend, UART/SPI access, a localhost-only Node-RED service, and a labwc kiosk. It enables desktop autologin for the installation user. It backs up an existing flow and changed boot files. It refuses to replace certain conflicting local installations without inspection.

The base check verifies software versions, backend import, user groups, device nodes, service and kiosk state, deployed flow, and an HTTP response from the dashboard. It does not prove detector reads or lamp wiring. On the touchscreen, confirm both boards show LIVE with plausible values, then verify each tower color against the actual wiring. GM 1 has been intermittent on the reference installation, so investigate an OFFLINE status at the hardware and Modbus connection.

Optional 90-day history

Once the base installer and check have completed:

cd ~/node-red-dosimeter-gate
./dashboard/scripts/provision-timeseries.sh install
./dashboard/scripts/provision-timeseries.sh check

This installs InfluxDB OSS 2.x and Grafana OSS as boot services, creates the dosimeter-gate organization and 90-day geiger bucket, provisions separate write and read tokens, and deploys the Dosimeter gate · GM history dashboard. Credentials stay under /etc/dosimeter-gate/, outside the repository. The check needs a fresh sample from at least one connected GM board and recent Grafana dose-panel data. If both boards are offline, restore a detector connection and rerun the check.

Access

On the Pi, open the live dashboard at http://127.0.0.1:1880/dashboard/geiger. For maintenance from another computer, forward the loopback services over SSH:

ssh -N -L 1880:127.0.0.1:1880 -L 3000:127.0.0.1:3000 nlab-pi

Then use http://127.0.0.1:1880/dashboard/geiger for the live dashboard and http://127.0.0.1:3000/d/dosimeter-gate/dosimeter-gate-gm-history for Grafana. The reference setup uses the nlab-pi SSH alias; replace it with your Pi host name or address. The kiosk About panel shows the current Pi IP and individual tunnel commands. Grafana permits anonymous Viewer access through this tunnel. Admin and InfluxDB credentials are in the root-only /etc/dosimeter-gate/credentials.json on the Pi.

For deployment details and known acceptance limits, see the project README.

Clone this wiki locally