From 6ae27a2fbf288f7d984f048ee47c7ae71b24dd28 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Fri, 5 Apr 2024 12:00:06 -0500 Subject: [PATCH 1/3] Add time_offset to support local timezone --- meshtastic/config.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meshtastic/config.proto b/meshtastic/config.proto index 5b93649..4b12829 100644 --- a/meshtastic/config.proto +++ b/meshtastic/config.proto @@ -180,6 +180,11 @@ message Config { * Disables the triple-press of user button to enable or disable GPS */ bool disable_triple_click = 10; + + /* + * Timezone offset against UTC in minutes, to support the few places with fractional offsets. + */ + int32 time_offset = 11; } /* From 6a4da15a16d125b1cb10923ab4e214c7de6cdac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sun, 7 Apr 2024 14:48:07 +0200 Subject: [PATCH 2/3] change offset to tz definition --- meshtastic/config.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshtastic/config.proto b/meshtastic/config.proto index 4b12829..77e1bef 100644 --- a/meshtastic/config.proto +++ b/meshtastic/config.proto @@ -182,9 +182,9 @@ message Config { bool disable_triple_click = 10; /* - * Timezone offset against UTC in minutes, to support the few places with fractional offsets. + * POSIX Timezone definition string from https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv. */ - int32 time_offset = 11; + string tzdef = 11; } /* From 4a77f8bc0842fd482f4b9ffb0c195fd767206a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sun, 7 Apr 2024 14:50:39 +0200 Subject: [PATCH 3/3] Update config.options limit to 64 chars plus zero terminator --- meshtastic/config.options | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meshtastic/config.options b/meshtastic/config.options index 4490f08..22dcc88 100644 --- a/meshtastic/config.options +++ b/meshtastic/config.options @@ -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