Merge pull request #1311 from meshtastic/rcarteraz-patch-3

Add `tzdef` to Device Config
This commit is contained in:
rcarteraz 2024-06-24 08:07:18 -07:00 committed by GitHub
commit 2d96bccfce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,6 +81,12 @@ Acceptable values: `true` or `false`
Disabling this will disable the SerialConsole by not initializing the StreamAPI. Disabling this will disable the SerialConsole by not initializing the StreamAPI.
## TZDEF (Timezone Definition)
The `tzdef` setting allows the local offset to be defined for the device. It uses the TZ Database format to display the correct local time on the device display and in its logs.
To set the timezone, use the POSIX TZ Database string for the relevant region. Here is a list of [supported timezones](https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv).
## Debug Log ## Debug Log
Acceptable values: `true` or `false` Acceptable values: `true` or `false`
@ -181,6 +187,10 @@ meshtastic --set device.role CLIENT
meshtastic --set device.serial_enabled false meshtastic --set device.serial_enabled false
``` ```
```shell title="Set `tzdef`"
meshtastic --set device.tzdef UTC0
```
```shell title="Enable debug logging" ```shell title="Enable debug logging"
meshtastic --set device.debug_log_enabled true meshtastic --set device.debug_log_enabled true
``` ```