Package Details: plot-git 0.5.1-3

Git Clone URL: https://aur.archlinux.org/plot-git.git (read-only, click to copy)
Package Base: plot-git
Description: plot on the command line
Upstream URL: https://github.com/annacrombie/plot
Licenses: MIT
Conflicts: plot
Provides: plot
Submitter: moe_narrow
Maintainer: moe_narrow
Last Packager: moe_narrow
Votes: 1
Popularity: 0.000371
First Submitted: 2022-10-13 18:22 (UTC)
Last Updated: 2022-10-23 22:57 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

m040601 commented on 2022-10-24 23:29 (UTC)

Thanks for tidying up the PKGBUILD and adding the README and man page. Usefull.

That "plotnet" example is very cute.

But it didnt work on my system. I think it's because that hardcoded "ifconfig" is not very robust in finding the correct net adapter ?

I dont even have the tool "ifconfig" and the package "net-tools", as ifconfig is deprecated towards "ip"

core/net-tools 2.10-1
    usr/bin/ifconfig

So, on my system the example landed on "/usr/bin/plotnet" as

#!/bin/bash
    plot -d10 -f -p "avg:5|roc:5"   -c l -i "/sys/class/net//statistics/rx_packets:r"   -c r -i "/sys/class/net//statistics/tx_packets:r" 

Anyway, on my personal arch system, I changed it to ,

plot -d10 -f -p "avg:5|roc:5"   -c l -i "/sys/class/net/enp3s0/statistics/rx_packets:r"

And voila it worked. Very nice terminal plotting.

It had never occurred to me to do such plot.

Hope they continue to come up with more examples.

moe_narrow commented on 2022-10-14 15:39 (UTC)

@m040601 I don't know how i overlooked that this was actually already in the AUR as "plot". I thought i searched for it before packaging it. perhaps it was buried among the other numerous results.

https://asciinema.org/a/421164

that is the demonstration that inspired me to package it.

as far as the example usage shown there, this should suffice for a one-liner

plot -d10 -f -p "avg:5|roc:5" \
-c l -i "/sys/class/net/$(ifconfig -a | head -n1 | awk -v FS=':' '{print $1}')/statistics/rx_packets:r" \
-c r -i "/sys/class/net/$(ifconfig -a | head -n1 | awk -v FS=':' '{print $1}')/statistics/tx_packets:r"

I will try to get the docs included in this package soon, and fix that it provides and conflicts with the other plot package

m040601 commented on 2022-10-14 10:57 (UTC) (edited on 2022-10-14 11:07 (UTC) by m040601)

Thank for providing this PKGBUILD for this very usefull, cute and underrated tool.

There seems to be a kind of a man page in docs. To be built with stupidly complicated scdoc ???. And of course the README.

    $ ls
cli   examples  lib      meson.build        packaging  tests
docs  include   LICENSE  meson_options.txt  README.md

Maybe in the future the devoleper will also include more examples and one liners on how to use this tool. I hate so much installing a tool and having to go back to the internet just to see some examples.

Could you make sure these man pages, simple doc or .md markdown files end up in the right place, ex, "/usr/share/plot/README" or "/usr/share/doc/plot/README,examples,etc"

Couldnt the maintainers of "plot" and "plot-git" get together and share and coordinate their work ? Such a waste of effort with 2 different people for the same tool.

Thanks in advance