You need rustc and cargo (default tooling for Rust). Folow the instructions.
If you have Nix installed, you can get all dependencies using nix-shell.
After dependencies are installed, execute the following command.
cargo buildUse the next command to run Zink.
cargo run -- [-f/--file <file to append results to>] jsonpathsIf file is not specified, result is appended to stdout.
Imagine device sending the following data to the Zink:
[
{"time": 10, "temp": 16, "bat": 28},
{"bat": 27.9, "temp": 16.25, "time": 11}
]You can extract it into CSV using the following call.
cargo run -- time,bat,tempThe result is next.
10,28,16
11,27.9,16.25