mirror of
https://github.com/norohind/navroute-eddn-storage.git
synced 2025-04-16 01:00:45 +03:00
add README.md
This commit is contained in:
parent
551643fa38
commit
83639ecb01
12
README.md
Normal file
12
README.md
Normal file
@ -0,0 +1,12 @@
|
||||
Simple script to process `NavRoute` events from EDDN and store data about routes and systems from it.
|
||||
The script should be fed by entering jsonl events from EDDN to stdin (it makes Bravada's archives very easy to use.
|
||||
Thank you, Bravada), then script will fill with new data sqlite database `navroutes.sqlite`.
|
||||
This DB contains three tables:
|
||||
1. `systems` - contains main information about systems.
|
||||
2. `systems_history` - contains history of `systems` changes.
|
||||
3. `routes` - contain routes.
|
||||
|
||||
For more information you can examine `doc.txt` file, database itself or source code of the script.
|
||||
|
||||
This repo contains `example.jsonl` - it is example of input data, to use it type `cat example.jsonl | python3 main.py`
|
||||
and check DB for results.
|
1
example.jsonl
Normal file
1
example.jsonl
Normal file
@ -0,0 +1 @@
|
||||
{"$schemaRef": "https://eddn.edcd.io/schemas/navroute/1", "header": {"softwareName": "E:D Market Connector [Windows]", "softwareVersion": "5.2.0-beta1", "uploaderID": "Aleksey31"}, "message": {"timestamp": "2021-10-18T17:09:18Z", "event": "NavRoute", "Route": [{"StarSystem": "Pleiades Sector HR-W d1-79", "SystemAddress": 2724879894859, "StarPos": [-80.625, -146.65625, -343.25], "StarClass": "F"}, {"StarSystem": "Maia", "SystemAddress": 8216113749, "StarPos": [-81.78125, -149.4375, -343.375], "StarClass": "B"}]}}
|
Loading…
x
Reference in New Issue
Block a user