d4fef7bc5f
Try to fix crash on start caused by matplotlib
master
Peter Stockings
2025-12-17 23:58:58 +11:00
b06066c4c0
Update build pack to archived version of python#v210
Peter Stockings
2025-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 Stockings
2024-12-18 23:27:25 +11:00
57753fc2fc
Persists list of rendered user graphs in db, graph is removed list on click
Peter Stockings
2023-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 Stockings
2023-10-24 20:31:56 +11:00
5a1c2409cf
Fix error thrown when trying to render a user overview graph with duration as seconds
Peter Stockings
2023-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 Stockings
2023-10-23 22:05:48 +11:00
17d20109fd
Add options to graph max rpm/bpm for workouts
Peter Stockings
2023-10-23 14:08:22 +11:00
ed3c21afed
Hide user graphs and form when workout is selected from calendar
Peter Stockings
2023-10-22 14:57:54 +11:00
ae34386835
Show formatted name for attribute label on graphs
Peter Stockings
2023-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 Stockings
2023-10-22 14:29:21 +11:00
a4f5897365
Modify sparkline so it ranges from earliest workout date to current date
Peter Stockings
2023-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 Stockings
2023-10-21 22:15:41 +11:00
a111292dbc
Remove search filter on attributes & periods dropdowns for user overview graph form
Peter Stockings
2023-10-21 21:51:11 +11:00
da8c432b0b
Append date range on user overview graph title
Peter Stockings
2023-10-21 21:31:41 +11:00
2f16d926e1
Add title to user overview graphs
Peter Stockings
2023-10-21 21:20:59 +11:00
07ad592895
Add form to create user overview graphs
Peter Stockings
2023-10-21 19:20:49 +11:00
3e110a7d4f
Create endpoint that returns graphs of an overview of users workouts (Needs to be refactored)
Peter Stockings
2023-10-21 18:35:03 +11:00
536e0b28bc
Refactor create user endpoint/template
Peter Stockings
2023-10-20 20:10:27 +11:00
dc13b05420
Rename some templates and convert remaining js to hyperscript
Peter Stockings
2023-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 Stockings
2023-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 Stockings
2023-10-20 19:45:00 +11:00
f340d1d3a9
Switch to using render_partial instead of include
Peter Stockings
2023-10-20 19:40:43 +11:00
18ac5d3fbc
Very very minor refactor, why even do this
Peter Stockings
2023-10-20 18:45:21 +11:00
f801c3c615
Refactor get/add workouts for user endpoint, and update message on completion of workout
Peter Stockings
2023-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 Stockings
2023-10-20 18:31:58 +11:00
86930f1f88
Load workouts from user object in get_workouts_for_user method
Peter Stockings
2023-10-19 23:07:27 +11:00
0c8fca4642
Add basic authentication using username/password sourced from env on delete user/workout endpoints
Peter Stockings
2023-10-19 22:45:44 +11:00
dafc23af49
Change matplotlib backend to speed up plottng time (~0.25 to ~0.03 seconds)
Peter Stockings
2023-10-19 22:19:24 +11:00
fa1e76df47
Refactor render_users_and_workouts method
Peter Stockings
2023-10-19 22:03:35 +11:00
f0fba96746
Removed extra db call for workouts for user
Peter Stockings
2023-10-19 21:43:26 +11:00
320a2d1ffc
Minor refactor to generate_calendar_monthly_view function
Peter Stockings
2023-10-19 21:26:53 +11:00
76eb290865
Refactor render user and workouts function
Peter Stockings
2023-10-19 21:12:00 +11:00
b60f1a2445
Change sparkline to show duration of workouts daily displayed most recent on the left
Peter Stockings
2023-10-19 20:57:49 +11:00
8fe110d159
Minor style update to workout list accordion, removed background and padding
Peter Stockings
2023-10-19 20:38:23 +11:00
dcff73d85e
Fix bug where clicking on a workout will always show the same workout in accordion
Peter Stockings
2023-10-16 14:22:23 +11:00
fecd4a08d1
Minor styling changes for calendar
Peter Stockings
2023-10-13 22:48:06 +11:00
797fc19a75
When a day with a workout is selected a workout overview is rendered
Peter Stockings
2023-10-13 22:15:37 +11:00
9b0d37fa6a
Minor refactor to calendar template
Peter Stockings
2023-10-13 20:57:41 +11:00
f17bfb7408
Minor stlying change
Peter Stockings
2023-10-13 20:22:50 +11:00
6add399c3c
Format workout stats better
Peter Stockings
2023-10-13 20:18:02 +11:00
339b8722fc
Hide button to load more workouts when all workouts have been fetched
Peter Stockings
2023-10-13 19:17:40 +11:00
9b43d7a8f4
Revert logic for lazy loading workout list, instead just load it all when requested
Peter Stockings
2023-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 Stockings
2023-10-13 18:52:47 +11:00
2009be51ad
Attempt to fix url_quote error on start
Peter Stockings
2023-10-13 17:36:45 +11:00
cd03256245
Allow user to browse next/prev month on calendar
Peter Stockings
2023-10-13 17:27:06 +11:00
1dccd85711
Add next,prev month to view model for user workout calendar
Peter Stockings
2023-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 Stockings
2023-10-13 16:56:23 +11:00
8386789a2a
Change icon to a bike
Peter Stockings
2023-10-13 15:57:15 +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 Stockings
2023-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 Stockings
2023-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 Stockings
2023-09-14 18:20:12 +10:00
60a7ec3d15
Attempt to parse date string as ISO
Peter Stockings
2023-07-31 13:22:39 +10:00
38867a234a
Minor refactor to workout submission handling of hear rate readings
Peter Stockings
2023-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 Stockings
2023-07-31 13:07:17 +10:00
c826b9180a
Fix for error introduced in last commit where submitting workout attempts to access misnamed properties
Peter Stockings
2023-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 Stockings
2023-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 Stockings
2023-07-29 20:24:41 +10:00
a4004c6e00
Minor refactor
Peter Stockings
2023-07-13 16:10:19 +10:00
6954882a62
Dont redirect to home page after successfully comitting workout
Peter Stockings
2023-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 Stockings
2023-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 Stockings
2023-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 Stockings
2023-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 Stockings
2023-05-07 18:15:31 +10:00
5f1a5e6a4a
Fix sparklines overflowing on mobile and move location to below users name
Peter Stockings
2023-05-01 22:58:30 +10:00
9b9b899177
Fix errors due to package urls changing on cdn
Peter Stockings
2023-04-15 20:15:20 +10:00
02a2c9552c
Add duration sparkline on user workouts accordion
Peter Stockings
2023-03-30 21:00:16 +11:00
5baa91df82
Fix redirect to new workout page
Peter Stockings
2023-03-30 20:42:14 +11:00
114b501adf
Set bike per workout and more style changes
Peter Stockings
2023-03-30 11:32:37 +11:00
7c655e9a2c
Change select elements to tailwind element and add padding to workout list
Peter Stockings
2023-03-29 21:51:34 +11:00
a155613005
Improve users and workouts overview page WIP
Peter Stockings
2023-03-29 21:39:46 +11:00
7021ee14cf
Fix issue where screen would eventually turn off if you switched apps and then came back
Peter Stockings
2023-03-25 20:25:22 +11:00
b06c6281b4
Attempt to keep screen unlocked
Peter Stockings
2023-03-22 17:47:31 +11:00
9b43de849e
Fix issue where updating graph list for a workout would update all workouts
Peter Stockings
2023-03-16 23:13:32 +11:00
699390c28a
Add ability to choose graphs to render, speed by default
Peter Stockings
2023-03-16 23:09:37 +11:00
3c5661e7b2
Graph speed, distance, calories, & power (crashes locally, possible revert, will attempt to combine graphs)
Peter Stockings
2023-03-16 22:06:58 +11:00
c3bf6c7ee3
Display calories & distance as integers for each workout
Peter Stockings
2023-03-15 13:33:42 +11:00
db655431e8
Fix issue where duration on new workout page incorrectly formats seconds
Peter Stockings
2023-03-15 13:30:52 +11:00
fc26a89793
Minor cleanup
Peter Stockings
2023-03-14 20:16:59 +11:00
65a6ac8287
Display total distance for workouts
Peter Stockings
2023-03-14 19:36:11 +11:00
ea010602b2
Display total calories for each workout
Peter Stockings
2023-03-14 19:26:33 +11:00
e75c45b419
Update watts -> power
Peter Stockings
2023-03-14 14:08:22 +11:00
faf9b82137
Add options to choose type of bike, and also persist distance, power, calories, speed to db
Peter Stockings
2023-03-14 10:19:37 +11:00
f1c89e967a
Fix error thrown during calorie tracking
Peter Stockings
2023-03-12 11:07:42 +11:00
d7fd30a3c8
Add sql script to generate tables
Peter Stockings
2023-03-11 22:55:43 +11:00
1532ac05c5
Remove unused attributes from workout list dom
Peter Stockings
2023-03-11 22:55:25 +11:00
dd6b5b95da
Center workout graph image
Peter Stockings
2023-03-11 22:29:35 +11:00
879a83fd9e
Minor style changes
Peter Stockings
2023-03-11 22:17:38 +11:00
2a3c5f6eb1
push distance, watts, calories, & speed to api (not yet persisting it)
Peter Stockings
2023-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 Stockings
2023-03-11 21:51:33 +11:00
a0210ec9a5
Add rpm -> speed/power for 6 air bikes (Including Assault Air Bike)
Peter Stockings
2023-03-11 21:50:18 +11:00
aa869a3acc
Add top padding to navbar title
Peter Stockings
2023-03-11 17:37:27 +11:00
f402839020
Add more details to user/workout delete confirmation
Peter Stockings
2023-03-11 17:31:51 +11:00
0625b1e3bf
Remove unused graph file and packages
Peter Stockings
2023-03-11 17:24:12 +11:00
762af9caef
Move add user form from navbar to under user list and add icon to navbar
Peter Stockings
2023-03-11 17:21:56 +11:00
eb8c8c2532
Only fetch workout graphs when accordion is opened to reduce self dos'ing
Peter Stockings
2023-03-11 16:56:01 +11:00
5dd4fae766
For new workout page move scripts to below html to reduce white screen lag
Peter Stockings
2023-03-11 16:55:34 +11:00
92b1805617
Remove dupuplicate workout query and only count workouts with cadence readings
Peter Stockings
2023-03-10 23:36:10 +11:00