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(); });