From 5f879edb72fc94633cd5e3278fff1a7f7f9d0b28 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Mon, 3 Jun 2024 15:21:28 -0500 Subject: [PATCH] More lux options, wind speed, and direction as well as DF Robot lark support --- meshtastic/telemetry.options | 3 ++- meshtastic/telemetry.proto | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/meshtastic/telemetry.options b/meshtastic/telemetry.options index 2fe657c..72aba92 100644 --- a/meshtastic/telemetry.options +++ b/meshtastic/telemetry.options @@ -1,4 +1,5 @@ # options for nanopb # https://jpa.kapsi.fi/nanopb/docs/reference.html#proto-file-options -*EnvironmentMetrics.iaq int_size:16 \ No newline at end of file +*EnvironmentMetrics.iaq int_size:16 +*EnvironmentMetrics.wind_direction int_size:16 \ No newline at end of file diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index 87e7755..42c5a93 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -92,6 +92,27 @@ message EnvironmentMetrics { * VEML7700 high accuracy white light(irradiance) not calibrated digital 16-bit resolution sensor. */ float white_lux = 10; + + /* + * Infrared lux + */ + float ir_lux = 11; + + /* + * Ultraviolet lux + */ + float uv_lux = 12; + + /* + * Wind direction in degrees + * 0 degrees = North, 90 = East, etc... + */ + uint32 wind_direction = 13; + + /* + * Wind speed in m/s + */ + float wind_speed = 14; } /* @@ -349,4 +370,9 @@ enum TelemetrySensorType { * AHT10 Integrated temperature and humidity sensor */ AHT10 = 23; + + /* + * DFRobot Lark Weather station (temperature, humidity, pressure, wind speed and direction) + */ + DFROBOT_LARK = 24; }