Commit Graph

4 Commits

Author SHA1 Message Date
d1e497cdc2 Add hostname-aware MQTT topics
- Topics now default to systant/{hostname}/stats and systant/{hostname}/commands
- Runtime config automatically includes system hostname in topics
- NixOS module defaults use config.networking.hostName
- Supports multiple hosts without topic conflicts
- Environment variables can still override if needed

Example: systant/orion/stats, systant/server2/stats, etc.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 18:59:46 -07:00
9d8ad1890b Fix Elixir release configuration
- Add explicit cookie to release config to fix missing COOKIE file
- Add config/runtime.exs for environment-based configuration
- Release now supports runtime environment variables
- Binary starts successfully without COOKIE errors

Environment variables supported:
- SYSTANT_MQTT_HOST, SYSTANT_MQTT_PORT
- SYSTANT_MQTT_USERNAME, SYSTANT_MQTT_PASSWORD
- SYSTANT_STATS_TOPIC, SYSTANT_COMMAND_TOPIC
- SYSTANT_PUBLISH_INTERVAL

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 17:48:24 -07:00
92fc90e3b4 Rename project from system-stats-daemon to systant
- Updated all module names from SystemStatsDaemon to Systant
- Renamed application config from :system_stats_daemon to :systant
- Updated service files and documentation
- Release binary now at _build/prod/rel/systant/bin/systant

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 17:06:03 -07:00
9d8306a64b Initial commit: Elixir MQTT system stats daemon
- MQTT client with configurable broker connection
- Periodic system stats publishing (30s interval)
- Command listening on MQTT topic with logging
- Systemd service configuration
- NixOS module for declarative deployment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-02 16:56:10 -07:00