Commit Graph

102 Commits

Author SHA1 Message Date
Peter Stockings
114b501adf Set bike per workout and more style changes 2023-03-30 11:32:37 +11:00
Peter Stockings
a155613005 Improve users and workouts overview page WIP 2023-03-29 21:39:46 +11:00
Peter Stockings
699390c28a Add ability to choose graphs to render, speed by default 2023-03-16 23:09:37 +11:00
Peter Stockings
3c5661e7b2 Graph speed, distance, calories, & power (crashes locally, possible revert, will attempt to combine graphs) 2023-03-16 22:06:58 +11:00
Peter Stockings
c3bf6c7ee3 Display calories & distance as integers for each workout 2023-03-15 13:33:42 +11:00
Peter Stockings
fc26a89793 Minor cleanup 2023-03-14 20:16:59 +11:00
Peter Stockings
65a6ac8287 Display total distance for workouts 2023-03-14 19:36:11 +11:00
Peter Stockings
ea010602b2 Display total calories for each workout 2023-03-14 19:26:33 +11:00
Peter Stockings
faf9b82137 Add options to choose type of bike, and also persist distance, power, calories, speed to db 2023-03-14 10:19:37 +11:00
Peter Stockings
92b1805617 Remove dupuplicate workout query and only count workouts with cadence readings 2023-03-10 23:36:10 +11:00
Peter Stockings
1a1417920a After successfully adding workout and confirming prompt user is redirected back to overview page 2023-03-10 22:54:44 +11:00
Peter Stockings
2c3fefdb89 Improve format of workout start date on overview page 2023-03-10 22:44:06 +11:00
Peter Stockings
56cf6813b7 Add the ability to add/delete users from overview page 2023-03-10 22:27:30 +11:00
Peter Stockings
11d350082d Minor changes 2023-03-10 21:54:46 +11:00
Peter Stockings
2498aa44c9 Change homepage to users overview with link to new workout page 2023-03-10 21:31:48 +11:00
Peter Stockings
e943f45625 Show time on yaxis and start y-axis from 0 2023-03-10 10:33:29 +11:00
Peter Stockings
36438b125c Return number of workouts for users and average/max rpm for workouts 2023-03-08 22:37:32 +11:00
Peter Stockings
6b8c22d13c Fix error thrown when successfully submitting workout due to json->JSON and improve look of graphs 2023-03-08 21:17:49 +11:00
Peter Stockings
ec2e848f48 Change schema and switch to flask-sqlalchemy, comment out existing endpoints and add new endpoints to add/delete users & workouts 2023-03-08 20:32:54 +11:00
Peter Stockings
a1a14b5aaf Beta: Switch to using static site instead(doesnt yet post data back to server) 2023-03-07 23:45:03 +11:00
Peter Stockings
5c1a3acec3 Display duration of current workout 2023-01-30 22:31:42 +11:00
Peter Stockings
fa3a8990cf Only fetch last 100 cadence readings and display as sparklines graph 2023-01-30 22:12:10 +11:00
Peter Stockings
08753c8bfe Remove all references to socket.io 2023-01-26 22:12:51 +11:00
Peter Stockings
9ec6693031 Switch from socket.io to REST for cadence streaming in attempt to fix timeout issue 2023-01-26 21:53:54 +11:00
Peter Stockings
763f8832c8 Display device name in breadcrumbs 2023-01-24 21:10:31 +11:00
Peter Stockings
bbf67f5768 Change flow so home page is device select from where you can browse to overview 2023-01-24 20:51:53 +11:00
Peter Stockings
5dc2b866f4 Display devices and there status 2023-01-24 20:16:12 +11:00
Peter Stockings
2085ff21da Move graph generation logic into seperate file 2023-01-23 21:51:24 +11:00
Peter Stockings
6f5b76ac64 Plot every 2nd datapoint in attempt to reduce file size 2023-01-23 20:30:56 +11:00
Peter Stockings
49c1c7df29 Apply custom styling to rpm graph and only display last 15 live readings on table 2023-01-23 20:24:43 +11:00
Peter Stockings
cd7411eac7 Switch to server side rendered SVG based graph library 2023-01-22 22:39:32 +11:00
Peter Stockings
f35c30aeb1 Plot live cadence data 2023-01-22 20:01:26 +11:00
Peter Stockings
aa82db6678 Add basic ui that displays live/history cadence data 2023-01-22 19:37:19 +11:00
Peter Stockings
032f3a0d62 Fix device id reference error 2023-01-22 10:02:45 +11:00
Peter Stockings
56069547c3 Store cadence values in database 2023-01-22 09:59:39 +11:00
Peter Stockings
dfc1988a88 Disable socketio logging 2023-01-04 18:08:50 +11:00
Peter Stockings
7d14a40cd6 Message is being sent as json(dict) 2023-01-04 18:04:11 +11:00
Peter Stockings
cc1ee982c5 Add websocket logging in attempt to debug disconnect issue from esp32 2023-01-04 14:58:58 +11:00
Peter Stockings
06a279abe6 Revert message logging changes in attempt to fix JSON decoder error 2023-01-04 10:57:34 +11:00
Peter Stockings
a477d17fe1 Attempt to fix JSON decoder error 2023-01-04 02:08:03 +11:00
Peter Stockings
4eff9ce850 Further cleanup message logging statement 2023-01-04 01:46:07 +11:00
Peter Stockings
4a903c5701 Cleanup message logging 2023-01-04 01:35:27 +11:00
Peter Stockings
a6b7107e55 Fix datetime module issue 2023-01-04 01:16:58 +11:00
Peter Stockings
05e0c432f4 Log server timestamp on message 2023-01-04 01:13:27 +11:00
Peter Stockings
0556fb4c9e Configure session with hardcoded temp secret (Replace) 2023-01-03 14:04:31 +11:00
Peter Stockings
2cf880b548 Fix cors whitelist 2023-01-03 13:51:47 +11:00
Peter Stockings
86b2c26df2 Add cors whitelist for socket.io 2023-01-03 13:45:26 +11:00
Peter Stockings
a82e350366 Rename socket.io message->event 2023-01-03 13:12:42 +11:00
Peter Stockings
1a1cfc5ffd esp32 is taking 2-3s for TLS negotiation, try switching from https to wss 2023-01-03 11:41:27 +11:00
Peter Stockings
c59260f9f1 Format request dump 2023-01-02 22:30:23 +11:00