CCCPaste

Plotting data in the shell with ttyplot - Graphing

#ping time plot
ping filmsbykris.com | sed -u 's/^.*time=//g'|ttyplot -t "Pings" -u ms
ping 8.8.8.8 | sed -u 's/^.*time=//g'|ttyplot -t "Pings" -u ms
ping 192.168.1.1 | sed -u 's/^.*time=//g'|ttyplot -t "Pings" -u ms
ping 192.168.1.1 | sed -u 's/^.*time=//g'|ttyplot -t "Pings" -u ms -s 5

#monitor free memory
while [ 1 ];do free -h|grep "^Mem"|awk '{print $3}';sleep 1;done|ttyplot

#daily FPL power usage
cat fpl_data_daily_2020.json|jq .|grep kwhUsed|awk '{print $2}'|tr -d ","| TERM=vt100 ttyplot -t "Power Usage 2020" -u kwh