FR: Pure json mode for cli --info
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 855
- Forks
- 355
- Merge moyen
- 3 j 3 h
- PR mergées (30 j)
- 12
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de meshtastic/python
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
meshtastic/python#972 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: Can't run on TermuxPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
meshtastic/python#969 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
meshtastic/python#506 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
meshtastic/python#985 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Undocumented `--set` choicesPeut-être pris @Cryptoteep l’a pris il y a 54 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
meshtastic/python#978 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de meshtastic/python
Issues similaires
-
[Bug]: test_remote_realpath_uses_argument_vector fails on Windows with Python 3.13+ (ntpath.isabs)Peut-être pris @gouyu-hou l’a pris aujourd’hui. Ouvertetriage/confirmed
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
agentscope-ai/agentscope#4397 ·
Les mainteneurs répondent en général sous 2 jours
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
NousResearch/hermes-agent#161712 ·
Les mainteneurs répondent en général sous 1 jour
-
[New Check]: postgresql_flexible_server_public_network_access_disabledPeut-être pris @pouria-l l’a pris aujourd’hui. Ouvertefeature-request status/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
prowler-cloud/prowler#13615 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
SACGF/variantgrid#2941 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
linkedin/Liger-Kernel#1730 ·
Les mainteneurs répondent en général sous 3 jours