Skip to content

Instantly share code, notes, and snippets.

@arthurbenemann
Last active December 19, 2023 17:24
Show Gist options
  • Save arthurbenemann/16732b60c95afa0e5f480b25269a4731 to your computer and use it in GitHub Desktop.
Save arthurbenemann/16732b60c95afa0e5f480b25269a4731 to your computer and use it in GitHub Desktop.
linux sensor plotting
rm /tmp/sensor
while true; do
echo -ne "\r"
echo $1
cat $1 >> /tmp/sensor
tail -n 60 /tmp/sensor | gnuplot -p -e "set terminal dumb size 120, 30; set autoscale; plot '-' with lines notitle"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment