mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-01-22 08:40:16 +01:00
17 lines
489 B
JavaScript
17 lines
489 B
JavaScript
// Retrieve JSON data from the JSON file in SPIFFS
|
|
fetch('igate_conf.json')
|
|
.then(response => response.json())
|
|
.then(data => {
|
|
// Process the JSON data
|
|
displayJSONData(data);
|
|
})
|
|
.catch(error => {
|
|
console.error('Error fetching JSON:', error);
|
|
});
|
|
|
|
// Display JSON data in the HTML
|
|
function displayJSONData(data) {
|
|
const jsonContainer = document.getElementById('json-container');
|
|
jsonContainer.innerHTML = JSON.stringify(data, null, 2);
|
|
}
|