-
Main public logs
Jump to navigation
Jump to search
Combined display of all available logs of Geekworm Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 04:25, 28 March 2025 37.201.192.11 talk performed unknown action "comments/add" on X1201 (#!/usr/bin/env python3 # This script is only suitable for UPS Shield X1200, X1201, and X1202 import struct import smbus2 import time import os import logging import gpiod from subprocess import call # Define the log file locations LOG_FILE = "/var/log/ups_battery.log" # Main log with timestamps GLANCES_FILE = "/var/log/ups_battery_glances.log" # Always contains only the latest log entry MAX_LOG_SIZE = 10 * 1024 * 1024 # 10MB maximum log file size KEEP_LINES = 500 # Number of lines to re...)