mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-10-31 03:01:58 +01:00
latest updates
This commit is contained in:
1 parent
f936b32a1c
commit
daeed58042
7 files changed
+19
-6
No files matched your search
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>"true"</code> / <code>"false"</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>"true"</code> / <code>"false"</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>"true"</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>
|
||||
"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,
|
||||
|
||||
@@ -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("");
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user