From 789f801102ac981f919cc5acdbcdfa8756c7061e Mon Sep 17 00:00:00 2001 From: Halcy0nic Date: Mon, 28 Oct 2024 10:02:53 -0600 Subject: [PATCH] Refactor: Adding a form for gateway values --- templates/index.html | 271 ++++++++++++++++++++++++++++++++----------- 1 file changed, 204 insertions(+), 67 deletions(-) diff --git a/templates/index.html b/templates/index.html index 1653ebf..0481b8b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -202,7 +202,7 @@ }) .catch(error => { console.error('Error:', error); - Swal.fire('Oops!', 'Something went wrong. The port might already be in use.', 'error'); + Swal.fire('Oops!', 'Something went wrong.', 'error'); }); } }); @@ -398,7 +398,7 @@ }) .catch(error => { console.error('Error:', error); - Swal.fire('Oops!', 'Something went wrong. The port might already be in use.', 'error'); + Swal.fire('Oops!', 'Something went wrong.', 'error'); }); } }); @@ -594,7 +594,7 @@ }) .catch(error => { console.error('Error:', error); - Swal.fire('Oops!', 'Something went wrong. The port might already be in use.', 'error'); + Swal.fire('Oops!', 'Something went wrong.', 'error'); }); } }); @@ -682,75 +682,212 @@

-
+

Configure LoRaWAN Gateways

-

- The 'Configure LoRaWAN Gateway' section allows you to set up to ten Dragino LPS8N LoRaWAN gateways. -

-
    -
  • Click the "Configure Gateway" button to start configuring each gateway's IP address.
  • -
  • Skip configuring a gateway or disconnect an existing one by leaving the input field empty.
  • -
  • All entered IP addresses are validated for correct formatting.
  • -
  • Once configured, the application automatically retrieves and stores LoRaWAN traffic from each active gateway.
  • -
  • Access and analyze stored traffic in 'survey mode'.
  • -
-
-
- - +
+

+ The Configure LoRaWAN Gateway section allows you to set up to ten Dragino LPS8N LoRaWAN gateways. +

+ +

Empty values will be ignored, and the Gateway IP address will remain unchanged

+
+
+
+ +
+ + + + + }); + + // Initial status check + this.checkAllGateways(); + } + } + + // Initialize the gateway manager + document.addEventListener('DOMContentLoaded', () => { + new GatewayManager(); + }); + - - +