Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent Data Retrieval #475

Closed
kb3mpn opened this issue Jan 3, 2024 · 3 comments
Closed

Consistent Data Retrieval #475

kb3mpn opened this issue Jan 3, 2024 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@kb3mpn
Copy link

kb3mpn commented Jan 3, 2024

clickety

In the former command, I'm able to see the GPS data for the extant node. In the latter, I get a simple text version of some of the data. For the purposes of grep/sed/awk, it would be lovely to be able to poll a meshtastic node and get a common response -- preferably one without ascii tables to fight over.

It would be nice to have a python library that manages this, or the ability to pull the information down in JSON from an API endpoint.

Thank you for all of the work that you're doing on Meshtastic, it's fun as hell and I look forward to playing with it a lot this year.

@ethzero
Copy link

ethzero commented Mar 15, 2024

I heartily +1 this.

Currently I can only crudely dump this information into a webpage as-is (wrapping it with pre tags).

It would be fantastic to have JSON output for all Meshtastic commands much in the way nmap and the like have an output type flag for JSON,XML,YAML, etc.

This would also help solve the issue that the --info command squirts out JSON-like strings but is otherwise un-parsable as JSON because it's peppered with plain-text.

@garthvh garthvh added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 16, 2024
@garthvh
Copy link
Member

garthvh commented Mar 16, 2024

There is not really anyone maintaining the CLI, the best approach is to use the python API https://python.meshtastic.org

@ianmcorvidae
Copy link
Contributor

This is a great thing that I'd like to do, now that I'm the maintainer for this (i.e., we have one again)! I've made #569 as an issue to discuss the data format we might want (and will be making other issues for discussion of things like CLI options & subcommands, which is related). I'll close this to direct discussion there, and input would be appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants