FR: Pure json mode for cli --info
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 855
- Fork
- 355
- Merge trung bình
- 3 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của meshtastic/python
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
meshtastic/python#972 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: Can't run on TermuxCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
meshtastic/python#969 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
meshtastic/python#506 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
meshtastic/python#985 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Undocumented `--set` choicesCó thể đã có người làm @Cryptoteep đã nhận 54 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
meshtastic/python#978 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của meshtastic/python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sagemathinc/sagebrush#2768 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
vllm-project/vllm-ascend#23791 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
QuantConnect/lean-cli#792 ·
Maintainer thường phản hồi trong vòng 1 ngày