mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
Restructure: promote working_copy to repo root
Make the stable 'working copy' bot the canonical code at the repository
root so the install/deploy scripts operate against it again.
- Move working_copy/* to root (bot entrypoint is bot.py)
- Restore root-level install/ops scripts from c4fa88e (deploy.sh,
install_main_bot.sh, status_report.*, conjurer.service, etc.)
- Fix deploy.sh: copy bot.py (was thin_client.py) and add the
conanjurer_* modules; bump command count
- Remove side-by-side variant dirs (backup_old_docker, prototype_one,
prototype_musician_one, musician_old, working_copy) and docker cruft
- Keep components as subdirs: conjurer_librarian, conjurer_musician,
spotify_dl, yt_dlp, fonts, utils, docs
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to check and display Raspberry Pi parameters using libgpiod
|
||||
|
||||
echo "=== Raspberry Pi System Information ==="
|
||||
|
||||
# General system information
|
||||
echo "Hostname: $(hostname)"
|
||||
echo "Model: $(cat /proc/device-tree/model | tr -d '\0')"
|
||||
echo "CPU Temperature: $(vcgencmd measure_temp | cut -d '=' -f2)"
|
||||
echo "CPU Frequency: $(vcgencmd measure_clock arm | awk -F= '{print $2}') Hz"
|
||||
echo "GPU Frequency: $(vcgencmd measure_clock core | awk -F= '{print $2}') Hz"
|
||||
echo "Voltage: $(vcgencmd measure_volts | cut -d '=' -f2)"
|
||||
|
||||
# Memory and disk usage
|
||||
echo "Total Memory: $(free -h | grep Mem | awk '{print $2}')"
|
||||
echo "Used Memory: $(free -h | grep Mem | awk '{print $3}')"
|
||||
echo "Free Memory: $(free -h | grep Mem | awk '{print $4}')"
|
||||
echo "Disk Usage:"
|
||||
df -h | grep '^/dev/root'
|
||||
|
||||
# Network information
|
||||
echo "IP Address: $(hostname -I | awk '{print $1}')"
|
||||
echo "MAC Address: $(cat /sys/class/net/eth0/address 2>/dev/null || echo 'No Ethernet')"
|
||||
|
||||
# Uptime
|
||||
echo "Uptime: $(uptime -p)"
|
||||
echo "Last Boot: $(who -b | awk '{print $3, $4}')"
|
||||
|
||||
# GPIO Information using libgpiod
|
||||
echo "GPIO Chip Info:"
|
||||
if command -v gpioinfo &>/dev/null; then
|
||||
gpioinfo
|
||||
else
|
||||
echo "gpiod tools not installed. Please install libgpiod using 'sudo apt install gpiod'."
|
||||
fi
|
||||
|
||||
echo "=== End of Raspberry Pi System Information ==="
|
||||
Reference in New Issue
Block a user