plotti.co icon indicating copy to clipboard operation
plotti.co copied to clipboard

implement a "speed" filter

Open grandrew opened this issue 8 years ago • 0 comments

need automatic derivative calculation. This will greatly reduce complexity with "speed" types of plots:

#!/bin/sh
S=1; F=/sys/class/net/eth0/statistics/tx_bytes
while true; do
  X=`cat $F`; sleep $S; Y=`cat $F`; BPS="$(((Y-X)/S*8))";
  wget http://plotti.co/lock/plotticonet?d=${BPS}bps -q -O /dev/null
done

to

#!/bin/sh
while true; do
  wget  -q -O /dev/null http://plotti.co/lock/plotticonet_speed?d=`cat /sys/class/net/eth0/statistics/tx_bytes`bps
  sleep 1
done

grandrew avatar Mar 25 '16 06:03 grandrew