An visual experience for rendering prometheus alerts
- 1 raspberry 3+
- nodejs
- 32x64 RGB-LED panels, default two
- 5V 5A powersupply
cd /opt
git clone https://github.com/dhtech/alertsquarer.git
cd alertsquarer
npm install
# to run via ts-node, start in sepatare terminal windows:
npm run dev
# to build ts to js and run
npm run build
npm run start
The matrix driver doesn't work at all when the module snd_bcm2835
is loaded so it needs to be blacklisted.
echo "blacklist snd_bcm2835" > /etc/modprobe.d/no_rpi_sound.conf
echo "isolcpus=3" >> /boot/cmdline.txt
Autostart the service
echo <<EOF >/etc/systemd/system/alertsquarer.service
[Unit]
Description=alertsquarer
After=network.target
[Service]
ExecStart=/usr/bin/npm run start
Restart=always
User=root
Group=root
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/opt/alertsquarer
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable alertsquarer.service
systemctl start alertsquarer.service
You might have forgotten to disable snd_bcm2835, see above.
The LED-library: https://github.com/hzeller/rpi-rgb-led-matrix/tree/master Has a lot of debug information
The Node binding: https://github.com/alexeden/rpi-led-matrix