Initial commit
This commit is contained in:
+64
@@ -0,0 +1,64 @@
|
||||
============================================================
|
||||
INSTALLATION GUIDE - FLEET CONTROL AGENT
|
||||
============================================================
|
||||
|
||||
This script is meant to be installed on each remote node
|
||||
(e.g., Raspberry Pi, MMDVM host).
|
||||
|
||||
------------------------------------------------------------
|
||||
1. PRE-REQUISITES & INSTALLATION
|
||||
------------------------------------------------------------
|
||||
Ensure Python 3 is installed.
|
||||
|
||||
Install dependencies:
|
||||
pip install -r requirements.txt
|
||||
|
||||
------------------------------------------------------------
|
||||
2. CONFIGURATION
|
||||
------------------------------------------------------------
|
||||
1. Copy 'system_monitor.py' and 'node_config.json' to
|
||||
your preferred folder (e.g., '/opt/node_agent/').
|
||||
2. Edit 'node_config.json' with a unique 'client_id' and
|
||||
your MQTT broker credentials.
|
||||
3. (Optional) Install 'RPi.GPIO' if you want hardware reset.
|
||||
|
||||
------------------------------------------------------------
|
||||
3. RUNNING AS A SERVICE (SYSTEMD)
|
||||
------------------------------------------------------------
|
||||
1. sudo cp fleet-agent.service /etc/systemd/system/
|
||||
2. sudo systemctl daemon-reload
|
||||
3. sudo systemctl enable fleet-agent
|
||||
4. sudo systemctl start fleet-agent
|
||||
|
||||
|
||||
============================================================
|
||||
GUIDA ALL'INSTALLAZIONE - AGENTE REMOTO
|
||||
============================================================
|
||||
|
||||
Questo script va installato su ogni nodo remoto
|
||||
(es. Raspberry Pi, MMDVM host).
|
||||
|
||||
------------------------------------------------------------
|
||||
1. REQUISITI E INSTALLAZIONE
|
||||
------------------------------------------------------------
|
||||
Assicurarsi di avere Python 3 installato.
|
||||
|
||||
Installa le dipendenze:
|
||||
pip install -r requirements.txt
|
||||
|
||||
------------------------------------------------------------
|
||||
2. CONFIGURAZIONE
|
||||
------------------------------------------------------------
|
||||
1. Copia 'system_monitor.py' e 'node_config.json' in
|
||||
una cartella (es. '/opt/node_agent/').
|
||||
2. Modifica 'node_config.json' inserendo un 'client_id'
|
||||
univoco e i dati del server MQTT.
|
||||
3. (Opzionale) Installa 'RPi.GPIO' per il reset hardware.
|
||||
|
||||
------------------------------------------------------------
|
||||
3. ESECUZIONE COME SERVIZIO (SYSTEMD)
|
||||
------------------------------------------------------------
|
||||
1. sudo cp fleet-agent.service /etc/systemd/system/
|
||||
2. sudo systemctl daemon-reload
|
||||
3. sudo systemctl enable fleet-agent
|
||||
4. sudo systemctl start fleet-agent
|
||||
Reference in New Issue
Block a user