diff options
author | Andreas Lindhé <andreas@lindhe.io> | 2017-10-31 13:50:36 +0100 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-31 14:46:05 +0100 |
commit | da4c77d51f971e6abe838db76d55c7fc4c103d5d (patch) | |
tree | 1f2373a25bda4ac3c3a5f5200f6c358510256dd6 /script/livegraph.sh | |
parent | 87779bb56295a2c20076c9670522490b91789dc0 (diff) | |
download | midbro-da4c77d51f971e6abe838db76d55c7fc4c103d5d.tar.gz midbro-da4c77d51f971e6abe838db76d55c7fc4c103d5d.tar.bz2 |
Repo cleanup
Diffstat (limited to 'script/livegraph.sh')
-rwxr-xr-x | script/livegraph.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/livegraph.sh b/script/livegraph.sh index 67111bc..54560af 100755 --- a/script/livegraph.sh +++ b/script/livegraph.sh @@ -2,7 +2,7 @@ if [[ $# -ne 1 ]] then - echo "Reads the sensor.dat and distance.dat from a running Pasad" + echo "Reads the sensor.dat and distance.dat" echo "instance and draws a graph from them." echo echo "Usage:" @@ -17,10 +17,10 @@ then fi function plot() { - scp -i /home/andreas/.ssh/pasadpi_rsa -P 8022 "${SCP_EXPR}/sensor.dat" "${SCP_EXPR}/distance.dat" . + scp -i /path/to/id_rsa -P 8022 "${SCP_EXPR}/sensor.dat" "${SCP_EXPR}/distance.dat" . tail -1000 sensor.dat > sensor-1000.dat tail -1000 distance.dat > distance-1000.dat - echo "set terminal png; set yrange [17000:17300]; set y2range [0:300]; set ytics nomirror; set y2tics nomirror; set title 'Midbro/PASAD demo'; set ylabel 'sensor value'; set y2label 'distance'; plot 'sensor-1000.dat' using 0:1 with line title 'sensor value', 'distance-1000.dat' using 0:1 axis x1y2 with line title 'distance'" | gnuplot > live-tmp.png + echo "set terminal png; set yrange [17000:17300]; set y2range [0:300]; set ytics nomirror; set y2tics nomirror; set title 'Midbro demo'; set ylabel 'sensor value'; set y2label 'distance'; plot 'sensor-1000.dat' using 0:1 with line title 'sensor value', 'distance-1000.dat' using 0:1 axis x1y2 with line title 'distance'" | gnuplot > live-tmp.png mv live-tmp.png live.png } |