latest updates

This commit is contained in:
pablorevilla-meshtastic committed 2026-10-26 15:17:14 -07:00
1 parent f936b32a1c
commit daeed58042
7 files changed
+19 -6

No files matched your search

+2
View File
@@ -307,6 +307,8 @@ stats = True
net = True
map = True
top = True
# Show the API documentation link in the navigation bar (default: True).
api = True
# Map boundaries (used for the map view).
# Defaults will show the San Francisco Bay Area
+6 -1
View File
@@ -380,7 +380,11 @@ fields shown here are exposed; credentials and the database connection string ar
not returned. Feature flags and cleanup booleans are lowercase strings (`"true"` /
`"false"`), not JSON booleans. Cleanup scheduling values are strings; map bounds are
numbers and refresh intervals are integers. The removed `starting` option is not
returned: `/` always serves the dashboard. Handler failures return HTTP 500.
returned: `/` always serves the dashboard. `site.api` controls visibility of the API
documentation link in the navigation bar, defaults to `"true"`, and can be disabled
with `api = False` in `[site]`. This setting does not disable documentation or API
routes. Restart the web server and reload the page after changing it. Handler
failures return HTTP 500.
Restart the web server and reload the map after changing these settings. Omitting
the section uses generated colors for every channel.
@@ -401,6 +405,7 @@ Response Example
"net": "true",
"map": "true",
"top": "true",
"api": "true",
"map_top_left_lat": 39.0,
"map_top_left_lon": -123.0,
"map_bottom_right_lat": 36.0,
+2 -1
View File
@@ -223,7 +223,7 @@ curl 'http://localhost:8081/api/coverage/1234?mode=perimeter&radius_km=2
<pre><code class="language-ini">[map_channel_colors]
LongFast = #4363d8
LocalChat = #18aa18</code></pre>
<p>No query parameters are supported. Only the <code>site</code>, MQTT server/topics, and cleanup fields shown here are exposed; credentials and the database connection string are not returned. Feature flags and cleanup booleans are lowercase strings (<code>&quot;true&quot;</code> / <code>&quot;false&quot;</code>), not JSON booleans. Cleanup scheduling values are strings; map bounds are numbers and refresh intervals are integers. The removed <code>starting</code> option is not returned: <code>/</code> always serves the dashboard. Handler failures return HTTP 500.</p>
<p>No query parameters are supported. Only the <code>site</code>, MQTT server/topics, and cleanup fields shown here are exposed; credentials and the database connection string are not returned. Feature flags and cleanup booleans are lowercase strings (<code>&quot;true&quot;</code> / <code>&quot;false&quot;</code>), not JSON booleans. Cleanup scheduling values are strings; map bounds are numbers and refresh intervals are integers. The removed <code>starting</code> option is not returned: <code>/</code> always serves the dashboard. <code>site.api</code> controls visibility of the API documentation link in the navigation bar, defaults to <code>&quot;true&quot;</code>, and can be disabled with <code>api = False</code> in <code>[site]</code>. This setting does not disable documentation or API routes. Restart the web server and reload the page after changing it. Handler failures return HTTP 500.</p>
<p>Restart the web server and reload the map after changing these settings. Omitting the section uses generated colors for every channel.</p>
<p>Response Example</p>
<pre><code class="language-json">{
@@ -240,6 +240,7 @@ LocalChat = #18aa18</code></pre>
&quot;net&quot;: &quot;true&quot;,
&quot;map&quot;: &quot;true&quot;,
&quot;top&quot;: &quot;true&quot;,
&quot;api&quot;: &quot;true&quot;,
&quot;map_top_left_lat&quot;: 39.0,
&quot;map_top_left_lon&quot;: -123.0,
&quot;map_bottom_right_lat&quot;: 36.0,
+3 -1
View File
@@ -301,7 +301,9 @@ async function initializePage() {
items.push(`<a href="${urls[i]}"${(location.pathname === urls[i] || (key === "map" && location.pathname === "/map.html")) ? ' class="active" aria-current="page"' : ""}>${escapeHtml(dict[key] || (key === "everything" ? "Live Traffic" : key))}</a>`);
}
}
items.push('<a href="/api.html">API</a>');
if (site.api !== "false" && site.api !== false) {
items.push('<a href="/api.html">API</a>');
}
items.push('<a href="https://meshview.world" target="_blank" rel="noopener noreferrer">MeshviewWorld</a>');
menu.innerHTML = items.join("");
+3 -3
View File
@@ -157,7 +157,7 @@
<option value="21600">Last 6 hours</option>
<option value="86400">Last 24 hours</option>
<option value="172800">Last 2 days</option>
<option value="259200">Last 3 days</option>
<option value="259200" selected>Last 3 days</option>
<option value="432000">Last 5 days</option>
<option value="604800">Last 7 days</option>
</select>
@@ -1415,7 +1415,7 @@ document.addEventListener("DOMContentLoaded", async () => {
await drawNeighbors(fromNodeId, neighborIds);
}
await loadPackets();
await reloadPackets();
initPacketPortFilter();
await loadTelemetryCharts();
await loadNeighborTimeSeries();
@@ -1485,7 +1485,7 @@ async function loadNodeStats(nodeId) {
filters.portnum = portSel;
}
loadPackets(filters);
return loadPackets(filters);
}
function exportPacketsCSV() {
+1
View File
@@ -738,6 +738,7 @@ async def api_config(request):
"net": get_bool(site, "net", True),
"map": get_bool(site, "map", True),
"top": get_bool(site, "top", True),
"api": get_bool(site, "api", True),
"map_top_left_lat": get_float(site, "map_top_left_lat", 39.0),
"map_top_left_lon": get_float(site, "map_top_left_lon", -123.0),
"map_bottom_right_lat": get_float(site, "map_bottom_right_lat", 36.0),
+2
View File
@@ -40,6 +40,8 @@ stats = True
net = True
map = True
top = True
# Show the API documentation link in the navigation bar (default: True).
api = True
# Map boundaries (used for the map view).
map_top_left_lat = 39