Jelajahi Sumber

docs: describe the MQTT settings card and fleet propagation

gnacho 2 bulan lalu
induk
melakukan
a5191ac5a3
8 mengubah file dengan 25 tambahan dan 17 penghapusan
  1. 3 3
      README.es.md
  2. 3 3
      README.md
  3. 4 0
      docs/manual.en.md
  4. 4 0
      docs/manual.es.md
  5. 3 3
      web/features.html
  6. 3 3
      web/home-assistant.html
  7. 2 2
      web/i18n.js
  8. 3 3
      web/index.html

+ 3 - 3
README.es.md

@@ -144,9 +144,9 @@ por SNMP también son ciudadanos de primera.
 - **MQTT + Home Assistant (opcional)**: publica el estado de la flota (salud,
   clientes, vitales por router y alertas) en un broker MQTT; Home Assistant
   descubre las entidades solo. Los routers que se exponen solos con NetGrip no
-  se duplican. Desactivado por defecto y sin nube: se configura
-  con las variables de entorno `NETPULSE_MQTT_*` (o las opciones UCI `mqtt_*` en
-  on-box). Topics, entidades y limitaciones en el
+  se duplican. Desactivado por defecto y sin nube: se configura desde la
+  tarjeta MQTT de Ajustes (o con las variables de entorno `NETPULSE_MQTT_*`,
+  o las opciones UCI `mqtt_*` en on-box). Topics, entidades y limitaciones en el
   [manual](docs/manual.es.md#home-assistant-mqtt).
 
 Esto sigue siendo una selección: **[todas las funcionalidades están en la

+ 3 - 3
README.md

@@ -137,9 +137,9 @@ client splits. SNMP-polled managed switches are first-class citizens too.
 - **MQTT + Home Assistant (opt-in)**: publish the fleet state (health, clients,
   per-router vitals and alerts) to an MQTT broker; Home Assistant discovers the
   entities on its own. Routers that expose themselves with NetGrip are not
-  duplicated. Off by default and cloud-free: configured with the
-  `NETPULSE_MQTT_*` environment variables (or the equivalent `mqtt_*` UCI options
-  on-box). Topics, entities and limits in the
+  duplicated. Off by default and cloud-free: configured from the MQTT card in
+  Settings (or with the `NETPULSE_MQTT_*` environment variables, or the
+  equivalent `mqtt_*` UCI options on-box). Topics, entities and limits in the
   [manual](docs/manual.en.md#home-assistant-mqtt).
 
 That is still a selection: **[every feature is on the website](https://netpulse.cloudless.club/features)**,

+ 4 - 0
docs/manual.en.md

@@ -610,6 +610,10 @@ The temperature, signal and latency thresholds that define health and alerts are
 
 ### Procedure: enable it
 
+The usual way is the **MQTT card in Settings**: turn it on, enter host, port and credentials, test the connection and save; it applies live, without a restart. From the same card you can **propagate the configuration to the NetGrip routers** in the fleet, so you do not configure them one by one.
+
+The alternative is environment variables (or the UCI options `mqtt_*` with the on-box install):
+
 1. Make sure the broker is running and note host, port (1883 by default) and credentials.
 2. Set the variables where the NetPulse service starts:
    - `NETPULSE_MQTT_ENABLED=1`

+ 4 - 0
docs/manual.es.md

@@ -610,6 +610,10 @@ Los umbrales de temperatura, señal y latencia que definen la salud y las alerta
 
 ### Procedimiento: activarlo
 
+La forma habitual es la **tarjeta MQTT de Ajustes**: la activas, pones host, puerto y credenciales, pruebas la conexión y guardas; se aplica en caliente, sin reiniciar. Desde esa misma tarjeta puedes **propagar la configuración a los routers NetGrip** de la flota, para no configurarlos uno a uno.
+
+La alternativa son las variables de entorno (o las opciones UCI `mqtt_*` en modo on-box):
+
 1. Comprueba que el broker está en marcha y anota host, puerto (1883 por defecto) y credenciales.
 2. Define las variables en el arranque del servicio de NetPulse:
    - `NETPULSE_MQTT_ENABLED=1`

+ 3 - 3
web/features.html

@@ -36,7 +36,7 @@
   <link rel="preconnect" href="https://fonts.googleapis.com" />
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
   <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
-  <link rel="stylesheet" href="styles.css?v=20260923b" />
+  <link rel="stylesheet" href="styles.css?v=20260924a" />
   <script type="application/ld+json">
   {
     "@context": "https://schema.org",
@@ -459,8 +459,8 @@
     </div>
   </div>
 
-  <script src="i18n.js?v=20260923b"></script>
-  <script src="app.js?v=20260923b"></script>
+  <script src="i18n.js?v=20260924a"></script>
+  <script src="app.js?v=20260924a"></script>
 <script defer src="https://stat.domatix.com/script.js" data-website-id="b9a57c48-cfbb-59fb-af00-e21b868371d9"></script>
 </body>
 </html>

+ 3 - 3
web/home-assistant.html

@@ -36,7 +36,7 @@
   <link rel="preconnect" href="https://fonts.googleapis.com" />
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
   <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
-  <link rel="stylesheet" href="styles.css?v=20260923b" />
+  <link rel="stylesheet" href="styles.css?v=20260924a" />
 <script data-goatcounter="https://stats.netpulse.cloudless.club/count" async src="//stats.netpulse.cloudless.club/count.js"></script>
 </head>
 <body>
@@ -322,8 +322,8 @@ NETPULSE_MQTT_INSTANCE=casa</code>
     </div>
   </div>
 
-  <script src="i18n.js?v=20260923b"></script>
-  <script src="app.js?v=20260923b"></script>
+  <script src="i18n.js?v=20260924a"></script>
+  <script src="app.js?v=20260924a"></script>
 <script defer src="https://stat.domatix.com/script.js" data-website-id="b9a57c48-cfbb-59fb-af00-e21b868371d9"></script>
 </body>
 </html>

+ 2 - 2
web/i18n.js

@@ -55,7 +55,7 @@ const I18N = {
       req2: 'MQTT discovery enabled in Home Assistant (the norm with Mosquitto)',
       req3: 'An instance name if you run more than one install (home, office...)',
       req4: 'Nothing else: no ports to open, no router to touch',
-      codeTitle: 'Environment variables',
+      codeTitle: 'Environment variables (or the MQTT card in Settings)',
       codeNote: 'After a restart the log shows "[mqtt] connected ... as instance \\"home\\"". The first state takes at most one interval.',
       entEyebrow: 'Entities',
       entTitle: 'What shows up in Home Assistant',
@@ -238,7 +238,7 @@ const I18N = {
       req2: 'Descubrimiento MQTT activo en Home Assistant (lo normal con Mosquitto)',
       req3: 'Un nombre de instancia si tienes más de una instalación (casa, oficina...)',
       req4: 'Nada más: no hay que abrir puertos ni tocar el router',
-      codeTitle: 'Variables de entorno',
+      codeTitle: 'Variables de entorno (o la tarjeta MQTT de Ajustes)',
       codeNote: 'Tras reiniciar, el registro muestra «[mqtt] connected ... as instance "casa"». El primer estado tarda como mucho un intervalo.',
       entEyebrow: 'Entidades',
       entTitle: 'Lo que aparece en Home Assistant',

+ 3 - 3
web/index.html

@@ -36,7 +36,7 @@
   <link rel="preconnect" href="https://fonts.googleapis.com" />
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
   <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
-  <link rel="stylesheet" href="styles.css?v=20260923b" />
+  <link rel="stylesheet" href="styles.css?v=20260924a" />
   <script type="application/ld+json">
   {
     "@context": "https://schema.org",
@@ -856,8 +856,8 @@
     <p class="lightbox-caption" id="lightboxCaption"></p>
   </div>
 
-  <script src="i18n.js?v=20260923b"></script>
-  <script src="app.js?v=20260923b"></script>
+  <script src="i18n.js?v=20260924a"></script>
+  <script src="app.js?v=20260924a"></script>
 <script defer src="https://stat.domatix.com/script.js" data-website-id="b9a57c48-cfbb-59fb-af00-e21b868371d9"></script>
 </body>
 </html>