Porównaj commity

...

6 Commity

Autor SHA1 Wiadomość Data
Andre K a1deb183c4
Merge c01e1dddfe into 68720ed8db 2024-04-08 14:26:33 +02:00
Thomas Göttgens 68720ed8db
Merge pull request #480 from meshtastic/jp-bennett-patch-3
Add time_offset to support local timezone
2024-04-07 15:57:54 +02:00
Thomas Göttgens 4a77f8bc08 Update config.options
limit to 64 chars plus zero terminator
2024-04-07 15:56:50 +02:00
Thomas Göttgens 6a4da15a16 change offset to tz definition 2024-04-07 15:56:50 +02:00
Jonathan Bennett 6ae27a2fbf
Add time_offset to support local timezone 2024-04-05 12:00:06 -05:00
andrekir c01e1dddfe refactor: use repeated fields in `EnvironmentMetrics` 2023-10-26 10:18:11 -03:00
4 zmienionych plików z 62 dodań i 3 usunięć

Wyświetl plik

@ -1,3 +1,6 @@
# longest current is 45 chars, plan with a bit of buffer
*DeviceConfig.tzdef max_size:65
*NetworkConfig.wifi_ssid max_size:33
*NetworkConfig.wifi_psk max_size:65
*NetworkConfig.ntp_server max_size:33

Wyświetl plik

@ -180,6 +180,11 @@ message Config {
* Disables the triple-press of user button to enable or disable GPS
*/
bool disable_triple_click = 10;
/*
* POSIX Timezone definition string from https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv.
*/
string tzdef = 11;
}
/*

Wyświetl plik

@ -1,4 +1,5 @@
# options for nanopb
# https://jpa.kapsi.fi/nanopb/docs/reference.html#proto-file-options
*EnvironmentMetrics.weather max_count:8
*EnvironmentMetrics.power max_count:8

Wyświetl plik

@ -37,6 +37,51 @@ message DeviceMetrics {
* Weather station or other environmental metrics
*/
message EnvironmentMetrics {
/*
* Temperature measured
*/
float temperature = 1 [deprecated = true];
/*
* Relative humidity percent measured
*/
float relative_humidity = 2 [deprecated = true];
/*
* Barometric pressure in hPA measured
*/
float barometric_pressure = 3 [deprecated = true];
/*
* Gas resistance in MOhm measured
*/
float gas_resistance = 4 [deprecated = true];
/*
* Voltage measured
*/
float voltage = 5 [deprecated = true];
/*
* Current measured
*/
float current = 6 [deprecated = true];
/*
* WeatherMetric readings
*/
repeated WeatherMetric weather = 7;
/*
* PowerMetric readings
*/
repeated PowerMetric power = 8;
}
/*
* Weather metrics
*/
message WeatherMetric {
/*
* Temperature measured
*/
@ -56,16 +101,21 @@ message EnvironmentMetrics {
* Gas resistance in MOhm measured
*/
float gas_resistance = 4;
}
/*
* Power metrics
*/
message PowerMetric {
/*
* Voltage measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x)
*/
float voltage = 5;
float voltage = 1;
/*
* Current measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x)
*/
float current = 6;
float current = 2;
}
/*