From f68dc8bd62167833edf553dce6c46bf5d6c63aa5 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Tue, 30 Oct 2018 23:17:08 +0100 Subject: [PATCH] Fixes --- views/plot.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/views/plot.html b/views/plot.html index f5994bf..b8cc655 100644 --- a/views/plot.html +++ b/views/plot.html @@ -64,9 +64,9 @@

live bpm: ...

Data - Last hour - Last day - Last week + hour + day + week
@@ -133,12 +133,14 @@ Plotly.d3.csv("/1h.csv", function(err, rows){ let tick = function() { var duration = 10000; + con if(currentBpm != null) { audio.play(); duration = 60000 / currentBpm; } setTimeout(tick, duration); } + tick(); });