mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-20 22:05:11 +00:00
test2
This commit is contained in:
parent
1b28beb3f4
commit
0870ae39d8
6 changed files with 45 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
16
data/script.js
Normal file
16
data/script.js
Normal file
|
|
@ -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);
|
||||
}
|
||||
10
data/testx.html
Normal file
10
data/testx.html
Normal file
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue