Erweiterte Suche
Suchergebnisse
669 insgesamt gefundene Ergebnisse
Monitoring and alerting | collectd
apt install collectd vim /etc/collectd/collectd.conf FQDNLookup true BaseDir "/var/lib/collectd" PluginDir "/usr/lib/collectd" TypesDB "/usr/share/collectd/types.db" LoadPlugin syslog MaxPacketSize 1452 <Plugin syslog> LogLevel info </Plugin> Lo...
Monitoring and alerting | GPIO Status of Relays
Relay for the LED lighting Relay for the power supply unit collectd Python plugin script Use Python3 interpreter! It's not tested with old legacy Python 2.X. Please not that this script does not work by calling it manually with "python relay_states....
Monitoring and alerting | Smart Stepper value monitoring
For debugging purposes we monitor Smart Stepper values by the provided Python control service. See Smart Stepper - calibration and control modes (sPID mode, pPID mode and torque mode) for code.
Monitoring and alerting | InfluxDB
Install InfluxDB instance local database on Raspberry Pi A remote database, which is used also, allows to monitor Trikarus network status. The installation of this second database is not described in this documentation. https://www.influxdata.com/blog/g...
Monitoring and alerting | Monitoring USB device availability
A simple script is checking if the Smart Steppers are connected by USB. vim /opt/monitorUSBdevices.sh #!/bin/bash while true; do A_MOT=$(ls -alF /dev |grep "ttyUSB-SMART-A-AXIS") B_MOT=$(ls -alF /dev |grep "ttyUSB-SMART-B-AXIS") C...
Monitoring and alerting | Monitoring iostat
A simple script is checking if the Smart Steppers are connected by USB. vim /opt/iostat.sh #!/bin/bash while true; do VAL_USER=$(iostat -c|awk '/^ /{print $1}') VAL_NICE=$(iostat -c|awk '/^ /{print $2}') VAL_SYSTEM=$(iostat -c|awk '/^ /{print $3}')...
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 /opt/collectd_plugins/cpu_temp.py import collectd PATH = '/sys/class/thermal/thermal_zone0/temp' def config_func(config): path_set = False for n...
Monitoring and alerting | MPU 6050 (GY-521) Gyro + Accelerometer monitoring
Hardware → Gyroscope and acceleration sensor GY-521 (MPU6050) and basic configuration for Raspberry Pi Features for Hangprinter The MPU 6050 is a gyro which is used to measure room temperature and vibrations at the installation location. It helps to check fo...
Monitoring and alerting | Monitoring systemctl units
vim /opt/monitorSystemctl.sh #!/bin/bash MAIL="/opt/monitorSystemctl.mail" FAILED=$(systemctl list-units --failed) if [[ $FAILED == *"failed"* ]]; then systemctl list-units --failed > $MAIL cat $MAIL | mail -s "systemctl service(s) failed @ hangprin...
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 like MCU temperature or general printer status. This is done by triggering M408 S4 GCode. In Repetier Server a callback function is registered to monitor this comm...
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) Targets The rotary encoder can be used to monitor the direction and speed of filament feeding or retracting (mm/s), or at least the amount of moved filament (mm). If i...
Monitoring and alertings | Raspberry Pi Power States
This is based on https://harlemsquirrel.github.io/shell/2019/01/05/monitoring-raspberry-pi-power-and-thermal-issues.html Make vcgencmd available apt install libraspberrypi-bin /opt/collectd_plugins/pwr_states.py ''' Returns the throttled state of the syst...
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 | Repetier Server Monitor Desktop App
This application is perfect for multiple servers or just for displaying some stats remotely or doing quick control. For Trikarus it is used just sometimes, for example for some testing purposess. It does not replace the browser view completely because it does ...
Monitoring and alerting | Grafana
Setup apt-get install -y adduser libfontconfig1 wget https://dl.grafana.com/oss/release/grafana_6.7.3_armhf.deb dpkg -i grafana_6.7.3_armhf.deb rm grafana_6.7.3_armhf.deb Enable as service systemctl enable grafana-server.service service grafana-server s...
Smart Stepper - USB, Soft and hard reset
USB Reset way #1 - bind/unbind The following unbind command will kill complete USB chip for session if you type only "1-1". It will cut through SSH so you need to reboot manually. You only want to kill certain parts. So at first list all usb devices and then ...
Smart Stepper - flashing the firmware
How to change Vendor / Product ID? For a better control of the dev rules for Smart Stepper the Vendor IDs and product IDs can be changed! This omits to connect to static / fixed ports. https://github.com/Misfittech/nano_stepper/issues/47#issuecomment-5839147...
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 smart stepper uses a command line interface where the prompt is “:>” help The help command will return a list of commands that the smart stepper support...