Added jq filter to convert new format to old format

This makes it easily possible to continue using the legacy ffmap-d3
front end with the new backend while migrating.
This commit is contained in:
Jan-Philipp Litza 2015-05-16 09:38:23 +02:00
commit 11ef32178d
2 changed files with 67 additions and 0 deletions

View file

@ -79,6 +79,21 @@ will prefix `sudo` where necessary.
- online
- gateway
## Old data format
If you want to still use the old [ffmap-d3](https://github.com/ffnord/ffmap-d3)
front end, you can use the file `ffmap-d3.jq` to convert the new output to the
old one:
```
jq -n -f ffmap-d3.jq \
--argfile nodes nodedb/nodes.json \
--argfile graph nodedb/graph.json \
> nodedb/ffmap-d3.json
```
Then point your ffmap-d3 instance to the `ffmap-d3.json` file.
# Removing owner information
If you'd like to redact information about the node owner from `nodes.json`,