Commit Graph

4 Commits

Author SHA1 Message Date
da8b7c5570 feat(led): HealthBump v2.1.0 with activity detection and K2000 party
- Activity-based brightness: ACTIVE (100) on change, SLEEP (20) when stable
- K2000 (Knight Rider) sweep effect for boot/alerts
- New commands: k2000, success, boot, alert, rainbow
- Aligned I2C timing with secubox-led-safe (300ms write delay)
- Simplified to POSIX /bin/sh for reliability
- Documented I2C bus recovery via platform driver rebind
- Removed unstable connect/activity flash

Ref #52

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-08 11:15:09 +02:00
dbf76b7f29 feat(led): Add 3-tier LED HealthBump system with kernel timer triggers
- LED1 (HW): Orange 4s cycle - hardware layer (CPU, memory, WAN)
- LED2 (SVC): Green 3s cycle - services layer (HAProxy, Nginx, certs)
- LED3 (SEC): Blue 2s cycle - security layer (CrowdSec bans)

Uses slow kernel timer triggers instead of userspace scripts to avoid
I2C bus errors on Debian 6.12 kernel (mv64xxx driver timing issues).

Scripts:
- secubox-led: Manual LED control with layer aliases
- secubox-led-trigger: Kernel timer trigger setup
- secubox-healthbump: Health status checker (30s timer)
- secubox-led-pulse: Userspace pulse daemon (deprecated)

Systemd services:
- secubox-led-trigger.service: Setup timers at boot
- secubox-healthbump.timer: Health check every 30s

Reference: docs/reference/secubox-led-pulse-openwrt.sh (original OpenWrt script)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-08 08:29:08 +02:00
52bd3dd520 docs(led): Update HealthBump with variable pulse speeds and fixes
LED System improvements:
- Brightness value 10 (optimal for IS31FL3199)
- Variable pulse speeds: slow(HW), medium(SVC), fast(SEC)
- Rate-based security detection
- Color gradient for hardware load level
- Fixed I2C communication issues
- Removed conflicting old scripts

Pulse timing:
- LED1 (bottom/HW): 0.15s (slow - infrastructure)
- LED2 (middle/SVC): 0.08s (medium - services)
- LED3 (top/SEC): 0.03s (fast - security alerts)

Ref #39, #60

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-08 07:34:20 +02:00
288b3e7cd6 feat(led): Add HealthBump 3-tier LED status system
LED health indicator system for MOCHAbin:
- LED1 (Bottom): Hardware layer (net, cpu, memory)
- LED2 (Middle): Services layer (vhosts, certs, haproxy)
- LED3 (Top): Security layer (crowdsec, alerts, attacks)

Colors: green=ok, yellow=warn, red=error, blue=message

Files on MOCHAbin:
- /usr/local/bin/secubox-led (manual control)
- /usr/local/bin/secubox-healthbump (auto checker)
- systemd timer runs every 30 seconds

Documentation: docs/LED-HEALTHBUMP.md
Kernel config: board/mochabin/kernel/config-6.12-openwrt-merged.fragment

Ref #39

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-08 07:08:37 +02:00