diff --git a/assets/heartbeat.mp3 b/assets/heartbeat.mp3 new file mode 100644 index 0000000..c0a344a Binary files /dev/null and b/assets/heartbeat.mp3 differ diff --git a/heartbeat/server.py b/heartbeat/server.py index 1eebdfa..967512a 100644 --- a/heartbeat/server.py +++ b/heartbeat/server.py @@ -41,6 +41,7 @@ def start(args): (r"/", FrontendHandler, {"conn": conn}), (r"/ws", WebSocketHandler, {"conn": conn, "token": token}), (r"/(.*).csv", ExportHandler, {"conn": conn}), + (r"/assets/(.*)", tornado.web.StaticFileHandler, {"path": "assets/"}), ],debug=True) application.listen(8888) diff --git a/views/plot.html b/views/plot.html index b55776a..f5994bf 100644 --- a/views/plot.html +++ b/views/plot.html @@ -1,13 +1,57 @@ - WebSocket Test + Quantified Other: Heart Edition -

current bpm: ...

+

live bpm: ...

- Claim data - Last hour as CSV. - Last day as CSV. - Last week as CSV. + Data + Last hour + Last day + Last week