--set-time improvements and documentation

オープン
#863 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
40/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli, documentation

調査の方向性

Start with the --set-time option in the CLI and the error message that lists it, then compare that against the online documentation to confirm it is missing. The first doc fix is to document the flag and its TIMESTAMP format (seconds since the Unix epoch). The suggested --set preference syntax is a separate design change; it needs maintainer agreement before anyone implements it. Done means the flag is documented and the epoch format is stated.

索引モデルが issue の本文から書いたものです。

説明

--set-time [TIMESTAMP] is included in the CLI error message, but not in the online documentation. If this is a supported feature, it should be documented.

The command would be more useful if it used the general Meshtastic syntax --set preference PREFERENCE and had the matching -- get avaible. That way it could be used as an admin command.

By POSIX definition, TIMESTAMP should be the integer number of seconds that have elapsed since January 1, 1970, at 00:00:00 Coordinated Universal Time (UTC)

This command sequence works for me in CLI:

MDATE=$(date +%s)
...
    --set device.tzdef 'EST5EDT,M3.2.0,M11.1.0' \
    --set position.time $MDATE \

I do notice that my Heltec v3.2 with firmware 2.6.11 displays New York time as requested.
My Heltec V4 with firmware 2.7.12 prefers to display Zulu time (UTC)

主要言語
Python
スター
855
フォーク
355
平均マージ
3日 3時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

meshtastic/python のほかの issue

meshtastic/python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。