FR: Pure json mode for cli --info
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The request concerns the output of the --info command and the --config-export behaviour that it is compared against, both in the Python CLI. Run meshtastic --info with stdout redirected to a file to see the mixed output, then compare it with --config-export. The issue leaves open whether to add a new flag or change the default, and that decision needs a maintainer answer before any patch. Done means a JSON-only mode in which status messages go to stderr and the output is a single top-level object.
索引モデルが issue の本文から書いたものです。
説明
At current the output of --info is a mix of command feedback (Connected to radio), protobuf style direct top level fields Owner: Meshtastic wxyz (wxyz) and json objects prefixed with a protobuf field name-ish: Nodes in mesh: { ...
Reading this format in any consistent way to extract information is painful to say the least. I'd propose the following:
- Output session specific feedback to STDERR (
Connected to radio). This will never be useful in redirected output and is omitted completely for example in--config-export. - Stick to one format that's easy to process for downstream users/admins/devs. While I understand protobuf is core to the project, it sadly lacks the proliferation of useful tooling that is available for json. If backwards compatibility is desired (although I doubt anyone has written a parser for the current format that they would want to keep) I'd say add a
--json-infoflag to explicitly export pure json. - The json mode should output only a single object, i.e. it should wrap the distinct objects under a top level object. Example much simplified format proposed below. The goal is for example to be able to do:
meshtastic --info-json | jq .Owner
{
"Owner": "Meshtastic wxyz (wxyz)",
"My_info": { "myNodeNum": 12345, "minAppVersion": 30200, "deviceId": "xxx==", "pioEnv": "tracker-t1000-e", "rebootCount": 0, "firmwareEdition": "VANILLA", "nodedbCount": 0 },
"Nodes_in_mesh": {
"!xxx": { "num": 12345 }
},
"Preferences": {
"device": {
"buzzerGpio": 25
}
},
"Module_preferences": {
"mqtt": {
"address": "mqtt.meshtastic.org"
}
}
}
.. and so on, you get the point.
- 主要言語
- Python
- スター
- 855
- フォーク
- 355
- 平均マージ
- 3日 3時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
meshtastic/python のほかの issue
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
meshtastic/python#972 ·
メンテナーはふだん 1 日以内に返信
-
Bug: Can't run on Termux対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
meshtastic/python#969 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
meshtastic/python#506 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
meshtastic/python#985 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Undocumented `--set` choices対応中かも @Cryptoteep が 54 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
meshtastic/python#978 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
meshtastic/python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sagemathinc/sagebrush#2768 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vllm-project/vllm-ascend#23791 ·
メンテナーはふだん 1 日以内に返信
-
priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
QuantConnect/lean-cli#792 ·
メンテナーはふだん 1 日以内に返信