Commit Graph

69 Commits

Author SHA1 Message Date
Peter Stockings
1dccd85711 Add next,prev month to view model for user workout calendar 2023-10-13 17:01:02 +11:00
Peter Stockings
c7598f970d Show workouts on monthly calendar, not yet interactive (Will make it so you can change month and select workout to view on click) 2023-10-13 16:56:23 +11:00
Peter Stockings
861d83f828 Change look of users list of workouts, added month calendar (static for now), & and added in hyperscript (will switch to using this for client side stuff) 2023-10-13 15:56:56 +11:00
Peter Stockings
f251240dc8 Check if weekly workouts is zero before calculating duratio by week to avoid division by zero error 2023-09-14 18:20:12 +10:00
Peter Stockings
60a7ec3d15 Attempt to parse date string as ISO 2023-07-31 13:22:39 +10:00
Peter Stockings
38867a234a Minor refactor to workout submission handling of hear rate readings 2023-07-31 13:09:56 +10:00
Peter Stockings
6628d8a40f Js date is being sent as a string and therefore when attempting to calculate duration an error is thrown 2023-07-31 13:07:17 +10:00
Peter Stockings
c826b9180a Fix for error introduced in last commit where submitting workout attempts to access misnamed properties 2023-07-31 12:55:37 +10:00
Peter Stockings
27d3fbf681 When a new workout is created, calculate and persist distance, calories, average, min, max rpm|bpm etc (Need to test this) 2023-07-29 20:39:34 +10:00
Peter Stockings
2e37b1e22a Read distance, calories, max_rpm, min_rpm, average_rpm etc from workout rather then recalculating on each render, still need to modify add workout endpoint to calculate properties and set on workout 2023-07-29 20:24:41 +10:00
Peter Stockings
a4004c6e00 Minor refactor 2023-07-13 16:10:19 +10:00
Peter Stockings
70cbb9af2b If a workout was tracked with a hear rate monitor heart rate graph will be selected by default, and average bpm will be rendered as well 2023-05-08 20:15:40 +10:00
Peter Stockings
786b068874 Delete workout associated heart rate readings 2023-05-08 19:55:09 +10:00
Peter Stockings
01078d6b08 Live plot cadence and heart rate when both devices are connected and display heart rate graph in workout view 2023-05-07 21:36:48 +10:00
Peter Stockings
43e5f66cc1 Add ability to connect to hear rate sensor and post data back to server on workout complete, currently not rendering graphing data 2023-05-07 18:15:31 +10:00
Peter Stockings
02a2c9552c Add duration sparkline on user workouts accordion 2023-03-30 21:00:16 +11:00
Peter Stockings
5baa91df82 Fix redirect to new workout page 2023-03-30 20:42:14 +11:00
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