aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2019-03-20 20:25:25 +0000
committerdakkar <dakkar@thenautilus.net>2019-03-20 20:25:25 +0000
commit76bf44591aa2dd0c3f6c81243cd70b7c2cc6b6c6 (patch)
treebc6a5adca27192a4cb4a8fd73959142fbcb2d998
parentplot the data from the BT server (diff)
downloadgobbledegook-76bf44591aa2dd0c3f6c81243cd70b7c2cc6b6c6.tar.gz
gobbledegook-76bf44591aa2dd0c3f6c81243cd70b7c2cc6b6c6.tar.bz2
gobbledegook-76bf44591aa2dd0c3f6c81243cd70b7c2cc6b6c6.zip
allow plotting multiple log filesbt-temp-print
-rw-r--r--plot-log-plotly.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/plot-log-plotly.pl b/plot-log-plotly.pl
index 27992af..10f32d5 100644
--- a/plot-log-plotly.pl
+++ b/plot-log-plotly.pl
@@ -8,7 +8,7 @@ use Chart::Plotly;
use Chart::Plotly::Plot;
use Chart::Plotly::Trace::Scatter;
-my @rows = path($ARGV[0])->lines_utf8({chomp=>1});
+my @rows = map { path($_)->lines_utf8({chomp=>1}) } @ARGV;
my @column_names = qw(humidity temperature battery);
my %data_for_src;