b06066c4c0
Update build pack to archived version of python#v210
Peter Stockings2025-12-17 23:54:14 +11:00
f1c3824671
In attempt to fix build error after updating dokku setting build pack to heroku-buildpack-python#v210
Peter Stockings2024-12-18 23:27:25 +11:00
57753fc2fc
Persists list of rendered user graphs in db, graph is removed list on click
Peter Stockings2023-10-24 21:29:52 +11:00
b128ede9d0
Change default user graphs from hardcoded to loaded from user object as array,TODO: perhaps store loaded graphs for each user
Peter Stockings2023-10-24 20:31:56 +11:00
5a1c2409cf
Fix error thrown when trying to render a user overview graph with duration as seconds
Peter Stockings2023-10-24 15:26:59 +11:00
bf1ea4d32d
Add duration in minutes option to user overview graph, this section needs a refactor - too many layers of abstraction thanks to chatgpt
Peter Stockings2023-10-23 22:05:48 +11:00
ed3c21afed
Hide user graphs and form when workout is selected from calendar
Peter Stockings2023-10-22 14:57:54 +11:00
ae34386835
Show formatted name for attribute label on graphs
Peter Stockings2023-10-22 14:46:22 +11:00
e96001edf4
Add default graph showing average rpm/bpm over week, and remove default selected attribute 'workout_count'
Peter Stockings2023-10-22 14:29:21 +11:00
a4f5897365
Modify sparkline so it ranges from earliest workout date to current date
Peter Stockings2023-10-21 22:48:25 +11:00
32643a0ba8
Change user overview graph form so it updates on newly added Add button click, which now adds images in a list. Clicking on generated graph images in list removes them from dom
Peter Stockings2023-10-21 22:15:41 +11:00
a111292dbc
Remove search filter on attributes & periods dropdowns for user overview graph form
Peter Stockings2023-10-21 21:51:11 +11:00
dc13b05420
Rename some templates and convert remaining js to hyperscript
Peter Stockings2023-10-20 20:04:07 +11:00
996e47d2b4
Remove js used to open/close workout list accordion for each user, also animate icon on open/close
Peter Stockings2023-10-20 19:54:14 +11:00
c7974190ce
Redirect to new workout page using <a> rather then js onlick handler (Not sure why I did this in the first place)
Peter Stockings2023-10-20 19:45:00 +11:00
f340d1d3a9
Switch to using render_partial instead of include
Peter Stockings2023-10-20 19:40:43 +11:00
f801c3c615
Refactor get/add workouts for user endpoint, and update message on completion of workout
Peter Stockings2023-10-20 18:40:40 +11:00
5423f8b8bb
Fix bug introduced in last few commits where list of workouts wouldnt be shown in order
Peter Stockings2023-10-20 18:31:58 +11:00
86930f1f88
Load workouts from user object in get_workouts_for_user method
Peter Stockings2023-10-19 23:07:27 +11:00
0c8fca4642
Add basic authentication using username/password sourced from env on delete user/workout endpoints
Peter Stockings2023-10-19 22:45:44 +11:00
dafc23af49
Change matplotlib backend to speed up plottng time (~0.25 to ~0.03 seconds)
Peter Stockings2023-10-19 22:19:24 +11:00
339b8722fc
Hide button to load more workouts when all workouts have been fetched
Peter Stockings2023-10-13 19:17:40 +11:00
9b43d7a8f4
Revert logic for lazy loading workout list, instead just load it all when requested
Peter Stockings2023-10-13 19:05:58 +11:00
b23e6064d7
By default only load 5 most recent workouts for list, but on click of button at bottom load them all
Peter Stockings2023-10-13 18:52:47 +11:00
cd03256245
Allow user to browse next/prev month on calendar
Peter Stockings2023-10-13 17:27:06 +11:00
1dccd85711
Add next,prev month to view model for user workout calendar
Peter Stockings2023-10-13 17:01:02 +11:00
c7598f970d
Show workouts on monthly calendar, not yet interactive (Will make it so you can change month and select workout to view on click)
Peter Stockings2023-10-13 16:56:23 +11:00
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)
Peter Stockings2023-10-13 15:33:14 +11:00
c18beba563
Add 90s timeout to gunicorn to attempt to avoid startup loop error(Matplotlib is building the font cache -> Worker timeout)
Peter Stockings2023-09-14 18:30:06 +10:00
f251240dc8
Check if weekly workouts is zero before calculating duratio by week to avoid division by zero error
Peter Stockings2023-09-14 18:20:12 +10:00
38867a234a
Minor refactor to workout submission handling of hear rate readings
Peter Stockings2023-07-31 13:09:56 +10:00
6628d8a40f
Js date is being sent as a string and therefore when attempting to calculate duration an error is thrown
Peter Stockings2023-07-31 13:07:17 +10:00
c826b9180a
Fix for error introduced in last commit where submitting workout attempts to access misnamed properties
Peter Stockings2023-07-31 12:55:37 +10:00
27d3fbf681
When a new workout is created, calculate and persist distance, calories, average, min, max rpm|bpm etc (Need to test this)
Peter Stockings2023-07-29 20:39:34 +10:00
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
Peter Stockings2023-07-29 20:24:41 +10:00
6954882a62
Dont redirect to home page after successfully comitting workout
Peter Stockings2023-07-13 16:07:52 +10:00
a0e66280f5
Update graph on new heart rate reading(Most likely will cause performance issues, need to monitor)
Peter Stockings2023-05-13 23:12:32 +10:00
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
Peter Stockings2023-05-08 20:15:40 +10:00
01078d6b08
Live plot cadence and heart rate when both devices are connected and display heart rate graph in workout view
Peter Stockings2023-05-07 21:36:48 +10:00
43e5f66cc1
Add ability to connect to hear rate sensor and post data back to server on workout complete, currently not rendering graphing data
Peter Stockings2023-05-07 18:15:31 +10:00
5f1a5e6a4a
Fix sparklines overflowing on mobile and move location to below users name
Peter Stockings2023-05-01 22:58:30 +10:00
9b43de849e
Fix issue where updating graph list for a workout would update all workouts
Peter Stockings2023-03-16 23:13:32 +11:00
699390c28a
Add ability to choose graphs to render, speed by default
Peter Stockings2023-03-16 23:09:37 +11:00
3c5661e7b2
Graph speed, distance, calories, & power (crashes locally, possible revert, will attempt to combine graphs)
Peter Stockings2023-03-16 22:06:58 +11:00
c3bf6c7ee3
Display calories & distance as integers for each workout
Peter Stockings2023-03-15 13:33:42 +11:00
db655431e8
Fix issue where duration on new workout page incorrectly formats seconds
Peter Stockings2023-03-15 13:30:52 +11:00
2a3c5f6eb1
push distance, watts, calories, & speed to api (not yet persisting it)
Peter Stockings2023-03-11 22:17:21 +11:00
dd76d01e3d
Using rpm->speed/power functions display distance, calories, speed and power (Not yet sending to backend,, need to confirm this is working first)
Peter Stockings2023-03-11 21:51:33 +11:00
a0210ec9a5
Add rpm -> speed/power for 6 air bikes (Including Assault Air Bike)
Peter Stockings2023-03-11 21:50:18 +11:00