mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-08-12 03:43:09 +02:00
test2
This commit is contained in:
+10
-10
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"callsign": "CD2RXU-11",
|
||||
"stationMode": 2,
|
||||
"callsign": "NOCALL-10",
|
||||
"stationMode": 1,
|
||||
"iGateComment": "LoRa_APRS_iGate",
|
||||
"wifi": {
|
||||
"AP": [
|
||||
{ "ssid": "Richon",
|
||||
"password": "k4fPnmg5qnyf",
|
||||
"latitude": -32.8805195,
|
||||
"longitude": -71.4282433
|
||||
{ "ssid": "Wifi_1",
|
||||
"password": "wifi_1_password",
|
||||
"latitude": 0.0000000,
|
||||
"longitude": 0.0000000
|
||||
},
|
||||
{ "ssid": "Wifi_2",
|
||||
"password": "wifi_2_password",
|
||||
@@ -22,8 +22,8 @@
|
||||
"longitude": 0.0000000
|
||||
},
|
||||
"aprs_is": {
|
||||
"passcode": "23201",
|
||||
"server": "soam.aprs2.net",
|
||||
"passcode": "VWXYZ",
|
||||
"server": "euro.aprs2.net",
|
||||
"port": 14580,
|
||||
"reportingDistance": 30
|
||||
},
|
||||
@@ -50,8 +50,8 @@
|
||||
"active": false
|
||||
},
|
||||
"ota": {
|
||||
"username":"richon",
|
||||
"password": "totoro"
|
||||
"username":"",
|
||||
"password": ""
|
||||
},
|
||||
"other": {
|
||||
"beaconInterval": 15,
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
// 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);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>JSON Data Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="json-container"></div>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user