mirror of
https://github.com/l5yth/potato-mesh.git
synced 2026-08-08 01:42:59 +02:00
data,web: ingest every telemetry family from both protocols (#850)
* data,web: ingest every telemetry family from both protocols * data: 24h per-node telemetry poll cooldown; RX_ONLY ingestor switch
This commit is contained in:
+80
-1
@@ -56,7 +56,86 @@ CREATE TABLE IF NOT EXISTS telemetry (
|
||||
soil_temperature REAL,
|
||||
ingestor TEXT,
|
||||
protocol TEXT NOT NULL DEFAULT 'meshtastic',
|
||||
telemetry_type TEXT
|
||||
telemetry_type TEXT,
|
||||
-- PowerMetrics (TI-A2): per-channel INA voltage/current readings.
|
||||
ch1_voltage REAL,
|
||||
ch1_current REAL,
|
||||
ch2_voltage REAL,
|
||||
ch2_current REAL,
|
||||
ch3_voltage REAL,
|
||||
ch3_current REAL,
|
||||
ch4_voltage REAL,
|
||||
ch4_current REAL,
|
||||
ch5_voltage REAL,
|
||||
ch5_current REAL,
|
||||
ch6_voltage REAL,
|
||||
ch6_current REAL,
|
||||
ch7_voltage REAL,
|
||||
ch7_current REAL,
|
||||
ch8_voltage REAL,
|
||||
ch8_current REAL,
|
||||
-- AirQualityMetrics (TI-A2): PM mass/particle series, CO2, formaldehyde, VOC/NOx.
|
||||
pm10_standard INTEGER,
|
||||
pm25_standard INTEGER,
|
||||
pm100_standard INTEGER,
|
||||
pm40_standard INTEGER,
|
||||
pm10_environmental INTEGER,
|
||||
pm25_environmental INTEGER,
|
||||
pm100_environmental INTEGER,
|
||||
particles_03um INTEGER,
|
||||
particles_05um INTEGER,
|
||||
particles_10um INTEGER,
|
||||
particles_25um INTEGER,
|
||||
particles_40um INTEGER,
|
||||
particles_50um INTEGER,
|
||||
particles_100um INTEGER,
|
||||
particles_tps REAL,
|
||||
co2 INTEGER,
|
||||
co2_temperature REAL,
|
||||
co2_humidity REAL,
|
||||
form_formaldehyde REAL,
|
||||
form_humidity REAL,
|
||||
form_temperature REAL,
|
||||
pm_temperature REAL,
|
||||
pm_humidity REAL,
|
||||
pm_voc_idx REAL,
|
||||
pm_nox_idx REAL,
|
||||
-- HealthMetrics (TI-A2): body sensors; kept apart from ambient temperature.
|
||||
heart_bpm INTEGER,
|
||||
spo2 INTEGER,
|
||||
health_temperature REAL,
|
||||
-- LocalStats (TI-A2): radio/network counters.
|
||||
num_packets_tx INTEGER,
|
||||
num_packets_rx INTEGER,
|
||||
num_packets_rx_bad INTEGER,
|
||||
num_online_nodes INTEGER,
|
||||
num_total_nodes INTEGER,
|
||||
num_rx_dupe INTEGER,
|
||||
num_tx_relay INTEGER,
|
||||
num_tx_relay_canceled INTEGER,
|
||||
heap_total_bytes INTEGER,
|
||||
heap_free_bytes INTEGER,
|
||||
num_tx_dropped INTEGER,
|
||||
noise_floor INTEGER,
|
||||
-- HostMetrics (TI-A2): companion-host gauges.
|
||||
freemem_bytes INTEGER,
|
||||
diskfree1_bytes INTEGER,
|
||||
diskfree2_bytes INTEGER,
|
||||
diskfree3_bytes INTEGER,
|
||||
load1 INTEGER,
|
||||
load5 INTEGER,
|
||||
load15 INTEGER,
|
||||
user_string TEXT,
|
||||
-- TrafficManagementStats (TI-A2): router traffic counters.
|
||||
packets_inspected INTEGER,
|
||||
position_dedup_drops INTEGER,
|
||||
nodeinfo_cache_hits INTEGER,
|
||||
rate_limit_drops INTEGER,
|
||||
unknown_packet_drops INTEGER,
|
||||
hop_exhausted_packets INTEGER,
|
||||
router_hops_preserved INTEGER,
|
||||
-- EnvironmentMetrics repeated one-wire probe list (JSON float array).
|
||||
one_wire_temperature TEXT
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_telemetry_rx_time ON telemetry(rx_time);
|
||||
|
||||
Reference in New Issue
Block a user