Network infrastructure and software
arp-scan
Monitoring the network neighbours can possibly help to find attack vectors in Freifunk Network. O...
AutoHotkey Emergency Button script
We use this script in local mode to have a quick emergency halt possibilty. Never use this over i...
Backups and misc cron jobs
Mount USB stick (backup stick) #format SD card mkfs.ext4 /dev/sda vim /etc/fstab configure fs...
Clearing the swap
vim /opt/swappy.sh #!/bin/bash free_data="$(free)" mem_data="$(echo "$free_data" | grep 'Mem...
Duet 2 and Duet Web Control
Network configuration The Duet controller is attached to Raspberry Pi by USB and by LAN to route...
Duet Web Control and Repetier Server Macros
Baby Stepping - clear (set zero) M290 R0 S0 ;clear babystepping Baby Stepping - Down 0.1 mm M2...
Duet Web Control vs Repetier Server
The following table compares some essential features required for Trikarus project. Featur...
Freifunk Mesh Repeater / Access Point
Trikarus uses Freifunk firmware router to build up a network which can be used remotely. The rout...
mkcert & Go
We use mkcert tool to make secure localhost connections. For mkcert we need Go language installed...
Mobile access using tablet
Trikarus uses a Tablet Lifetab P9812 by Medion to show the Repetier Server frontend and Grafana. ...
Monitoring and alerting
Hangprinter consists of a lot of electronic components which can be monitored in different ways. ...
Monitoring and alerting | Filament sensing with KY-040 Rotary Encoder
The encoder is not mounted at the moment because hardware failed (but software works well) Targe...
Monitoring and alerting | GPIO Status of Relays
Relay for the LED lighting Relay for the power supply unit collectd Python plugin scrip...
Monitoring and alerting | InfluxDB
Install InfluxDB instance local database on Raspberry Pi A remote database, which is used a...
Monitoring and alerting | Longterm monitoring of Duet 2 and automatic Hotend PowerOff/Movement Stop
To monitor some important values from Duet Trikarus project is going to monitor different values ...
Monitoring and alerting | MPU 6050 (GY-521) Gyro + Accelerometer monitoring
Hardware → Gyroscope and acceleration sensor GY-521 (MPU6050) and basic configuration for Raspber...
Monitoring and alerting | Repetier Server integrated monitoring
Repetier Server offers a new quick status monitoring of the system since version 0.94.0
Monitoring and alerting | collectd
apt install collectd vim /etc/collectd/collectd.conf FQDNLookup true BaseDir "/var/lib/collect...
Monitoring and alerting | Grafana
Setup apt-get install -y adduser libfontconfig1 wget https://dl.grafana.com/oss/release/grafana...
Monitoring and alerting | Monitoring iostat
A simple script is checking if the Smart Steppers are connected by USB. vim /opt/iostat.sh #!/b...
Monitoring and alerting | Monitoring systemctl units
vim /opt/monitorSystemctl.sh #!/bin/bash MAIL="/opt/monitorSystemctl.mail" FAILED=$(systemctl ...
Monitoring and alerting | Monitoring USB device availability
A simple script is checking if the Smart Steppers are connected by USB. vim /opt/monitorUSBdevic...
Monitoring and alerting | Raspberry Pi CPU temperature
This is a bare copy of https://github.com/dbrgn/collectd-python-plugins/blob/master/cpu_temp.py ...
Monitoring and alerting | Repetier Server Monitor Desktop App
This application is perfect for multiple servers or just for displaying some stats remotely or do...
Monitoring and alerting | Smart Stepper value monitoring
For debugging purposes we monitor Smart Stepper values by the provided Python control service. Se...
Monitoring and alertings | Raspberry Pi Power States
This is based on https://harlemsquirrel.github.io/shell/2019/01/05/monitoring-raspberry-pi-power-...
Python 3.7
Trikarus uses Python 3.7 scripts. Before using Raspbian buster release the stretch version was us...
Raspberry Pi 3 B - GPIO config
GPIO (General Purpose Input/Output) pins on the Raspberry Pi https://www.raspberrypi.org/documen...
Raspberry Pi 3 B - power optimizations and boot adjustments
Raspberry Pi overview Image source: https://www.elektronik-kompendium.de/sites/raspberry-pi/19...
Raspberry Pi 3 B - system wide USB handling
Persisting connected USB devices The following external hardware is connected to hangdevice #su...
Raspberry Pi 3 B - watchdog
Install apt-get install watchdog Warning: Do never call "cat /dev/watchdog" because it will res...
Raspbian buster basic OS configuration
The OS is installed on Raspberry Pi 3 B featuring a High Endurance Micro-SDHC card 32 GB 100 MB/s...
Repetier Server
Installation of Repetier Server https://www.repetier-server.com/manuals/0.85/index.html sudo su...
Smart Stepper - calibration and control modes (sPID mode, pPID mode and torque mode)
Smart Stepper command line interface Docs from https://github.com/Misfittech/nano_stepper The s...
Smart Stepper - flashing the firmware
How to change Vendor / Product ID? For a better control of the dev rules for Smart Stepper the V...
Smart Stepper - USB, Soft and hard reset
USB Reset way #1 - bind/unbind The following unbind command will kill complete USB chip for sess...
Updating software
Backup the SD card image for larger upgrade → see High Endurance Micro-SDHC card 32 GB 100 MB/s U...
Used Software / Firmware stack
Overview of used firmware and software + where to donate What? Why Version Source ...
Webcam streaming with mjpg-streamer
The webcam used at Trikarus is used to deal for monitoring purposes and timelapse videos. Public ...
Wireguard Server/Client
We use Wireguard VPN client on hangdevice because it allows us to have a secure privat IPv4 (and ...