Skip to content

Conversation

@mrx23dot
Copy link

@mrx23dot mrx23dot commented Mar 15, 2025

usage

interactive mode

python3 main.py

batch add

python3 main.py -a 1
JSON {name:"GFMT-46ff94e254", eid:"xxxx"}

python3 main.py -a 10
JSON {name:"GFMT-46ff94e254", eid:"xxxx"}
JSON {name:"GFMT-ccffcce254", eid:"xxxx"}
...

batch query positions for group of device names

python3 main.py -q "GFMT-46ff94e254,GFMT-ccffcce254"
JSON {"timestamp":"2025-03-10 17:17:01", "lat":0.0, "lon":0.0, "altitude":0, "posname":""}
JSON {"timestamp":"2025-03-10 17:24:29", "lat":0.0, "lon":0.0, "altitude":0, "posname":""}

stdout parsable by other tools, grep for JSON lines.

feel free to modify it

@leonboe1
Copy link
Owner

Sorry for the delay, I'll look over this in the next weeks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants