Switch MQTT to TLS, fix last_heard fallback, downgrade CDN to HTTP

This commit is contained in:
Will Bradley
2026-04-14 09:08:49 -07:00
parent 74f41c5044
commit 150c61fe65
5 changed files with 27 additions and 29 deletions
+3 -3
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Meshtastic MQTT Dashboard</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<link rel="stylesheet" href="http://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
</head>
<body>
<!-- Login Screen -->
@@ -190,8 +190,8 @@
</div>
<!-- Scripts -->
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="https://unpkg.com/d3@7/dist/d3.min.js"></script>
<script src="http://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="http://unpkg.com/d3@7/dist/d3.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>
+3 -3
View File
@@ -701,7 +701,7 @@ function displayNodes(nodes) {
</div>
<div style="display: flex; gap: 8px; align-items: center;">
${node.latitude && node.longitude ? `
<a href="https://www.openstreetmap.org/?mlat=${node.latitude}&mlon=${node.longitude}&zoom=11"
<a href="http://www.openstreetmap.org/?mlat=${node.latitude}&mlon=${node.longitude}&zoom=11"
target="_blank"
rel="noopener noreferrer"
onclick="event.stopPropagation()"
@@ -779,7 +779,7 @@ window.showNodeDetail = async function(nodeId) {
<span class="detail-label">Location</span>
<span class="detail-value">
${node.latitude.toFixed(6)}, ${node.longitude.toFixed(6)}
<a href="https://www.openstreetmap.org/?mlat=${node.latitude}&mlon=${node.longitude}&zoom=11"
<a href="http://www.openstreetmap.org/?mlat=${node.latitude}&mlon=${node.longitude}&zoom=11"
target="_blank"
rel="noopener noreferrer"
style="background: #4CAF50; color: white; padding: 4px 8px; border-radius: 4px; text-decoration: none; font-size: 14px; line-height: 1; margin-left: 8px; display: inline-block;">🌍</a>
@@ -948,7 +948,7 @@ function displayPositions(positions) {
<a href="#"
onclick="event.preventDefault(); window.showNodeDetail('${pos.node_id}'); return false;"
style="background: #2196F3; color: white; padding: 4px 12px; border-radius: 4px; text-decoration: none; font-size: 14px; line-height: 1; flex: 1; text-align: center;">View Details</a>
<a href="https://www.openstreetmap.org/?mlat=${pos.latitude}&mlon=${pos.longitude}&zoom=11"
<a href="http://www.openstreetmap.org/?mlat=${pos.latitude}&mlon=${pos.longitude}&zoom=11"
target="_blank"
rel="noopener noreferrer"
style="background: #4CAF50; color: white; padding: 4px 8px; border-radius: 4px; text-decoration: none; font-size: 16px; line-height: 1;">🌍</a>