summaryrefslogtreecommitdiff
path: root/chart.gnuplot
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-11-11 22:55:28 -0500
committerSteph Enders <steph@senders.io>2023-11-11 22:55:28 -0500
commita9ea07699e4f8c7b65d9ccb84d1ccc993f9e3cad (patch)
treee5ca8f2a2b444184bba32daf651668e64dde8049 /chart.gnuplot
Initial commit of simple functional speedtest log
This series of scripts simply calls speedtest-cli python module to basically log its data to a tsv file (expected log.tsv) This will basically allow then ./plot.sh to plot the file datapoints The idea is to set this up as a cron and then you can plot the data over time
Diffstat (limited to 'chart.gnuplot')
-rw-r--r--chart.gnuplot12
1 files changed, 12 insertions, 0 deletions
diff --git a/chart.gnuplot b/chart.gnuplot
new file mode 100644
index 0000000..1d674e3
--- /dev/null
+++ b/chart.gnuplot
@@ -0,0 +1,12 @@
+set datafile separator ' '
+#set xlabel "timestamp"
+set ylabel "Mbps"
+set title "Speedtest"
+#set xdata time
+#set timefmt "%Y-%m-%dT%H:%M:%S%Z"
+#set format x "%m-%dT%H"
+set format y "%.2s%cb"
+#plot "log.tsv" using 4:7 with lines title "Download", \
+#"log.tsv" using 4:8 with lines title "Upload"
+plot "log.tsv" using :7 with linespoint title "Download", \
+"log.tsv" using :8 with linespoint title "Upload" \ No newline at end of file