Crates.io | dataviewer |
lib.rs | dataviewer |
version | 0.1.6 |
source | src |
created_at | 2023-08-27 18:31:59.057398 |
updated_at | 2023-09-09 20:20:47.916464 |
description | Watch and view your data in real-time |
homepage | |
repository | https://github.com/guillaumepellegrino/dataviewer |
max_upload_size | |
id | 956311 |
size | 244,555 |
This application allow you to watch your data in real-time (using a simple and documented protocol) or view them from files.
This crate make it easy to display the data from third-party applications.
GTK4 must be installed to build this application:
sudo apt install libgtk-4-dev
(under development)
DataView format is a user-friendly format based on TOML.
Usage examples are available here: https://github.com/guillaumepellegrino/dataviewer/tree/master/examples
Format is defined with SERDE here: https://github.com/guillaumepellegrino/dataviewer/blob/master/src/dataview.rs
https://github.com/guillaumepellegrino/dataviewer/blob/master/examples/speedtest.dv.toml
https://github.com/guillaumepellegrino/dataviewer/blob/master/examples/speedtest.sh
Data can be streamed in real-time through an ipc socket defined in /tmp/dataviewer.ipc. The ipc is using the same format than files. The only difference is each message/update must be termined by a NULL character. So, you may very well cat your dataview file in the ipc terminated by a '\0' followed up by updates each terminated by a '\0'.