Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

rasendubi/zink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

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 build

Run

Use the next command to run Zink.

cargo run -- [-f/--file <file to append results to>] jsonpaths

If file is not specified, result is appended to stdout.

Example

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,temp

The result is next.

10,28,16
11,27.9,16.25

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published