Commit Graph

150 Commits

Author SHA1 Message Date
Peter Stockings
f1c89e967a Fix error thrown during calorie tracking 2023-03-12 11:07:42 +11:00
Peter Stockings
d7fd30a3c8 Add sql script to generate tables 2023-03-11 22:55:43 +11:00
Peter Stockings
1532ac05c5 Remove unused attributes from workout list dom 2023-03-11 22:55:25 +11:00
Peter Stockings
dd6b5b95da Center workout graph image 2023-03-11 22:29:35 +11:00
Peter Stockings
879a83fd9e Minor style changes 2023-03-11 22:17:38 +11:00
Peter Stockings
2a3c5f6eb1 push distance, watts, calories, & speed to api (not yet persisting it) 2023-03-11 22:17:21 +11:00
Peter Stockings
dd76d01e3d Using rpm->speed/power functions display distance, calories, speed and power (Not yet sending to backend,, need to confirm this is working first) 2023-03-11 21:51:33 +11:00
Peter Stockings
a0210ec9a5 Add rpm -> speed/power for 6 air bikes (Including Assault Air Bike) 2023-03-11 21:50:18 +11:00
Peter Stockings
aa869a3acc Add top padding to navbar title 2023-03-11 17:37:27 +11:00
Peter Stockings
f402839020 Add more details to user/workout delete confirmation 2023-03-11 17:31:51 +11:00
Peter Stockings
0625b1e3bf Remove unused graph file and packages 2023-03-11 17:24:12 +11:00
Peter Stockings
762af9caef Move add user form from navbar to under user list and add icon to navbar 2023-03-11 17:21:56 +11:00
Peter Stockings
eb8c8c2532 Only fetch workout graphs when accordion is opened to reduce self dos'ing 2023-03-11 16:56:01 +11:00
Peter Stockings
5dd4fae766 For new workout page move scripts to below html to reduce white screen lag 2023-03-11 16:55:34 +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
998c64108a Only clear array of workout data once successfully saved 2023-03-10 22:57:21 +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
3ccae605cf Add confirmation before deleting workout 2023-03-10 22:30:41 +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
3a506b83a5 Remove unused code 2023-03-10 22:12:44 +11:00
Peter Stockings
57a38e2132 Change duration to always calculate rather then counting seconds, Remove power display 2023-03-10 22:12:31 +11:00
Peter Stockings
de47debc3f Show uncollapse first workout accordion 2023-03-10 22:11:46 +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
f7805609b0 Render rpm, power as integers, and plot rpm with one decimal place 2023-03-08 11:34:50 +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
34d7be2b7d Increase number of workers 4->5 in attempt to fix lag issues 2023-01-30 22:12:28 +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
cf2dc204e7 Until I figure out a way to determine when a live session started reduce window down 12->3hrs 2023-01-26 22:34:43 +11:00
Peter Stockings
fa9af6a512 Once connected to a BLE device clicking on FAB will disconnect from device 2023-01-26 22:27:03 +11:00
Peter Stockings
e9be507254 Change cadence refresh 2->1s due to timeout issues being resolved 2023-01-26 22:26:27 +11:00
Peter Stockings
e78b7b5cc4 Change floating action button icon to bluetooth 2023-01-26 22:20:22 +11:00
Peter Stockings
08753c8bfe Remove all references to socket.io 2023-01-26 22:12:51 +11:00
Peter Stockings
5a30278aaa Change action button color to green once connected to cadence sensor 2023-01-26 21:58:43 +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
ef3de84621 Increasing gunicron timeout 90->600 based on https://learn.microsoft.com/en-us/azure/app-service/configure-language-python#flask-app 2023-01-26 21:29:11 +11:00
Peter Stockings
20b7153cfa Dont send 0rpm over socketio 2023-01-26 21:28:48 +11:00
Peter Stockings
168b7ca548 Add sweetalert to show styled alert on web bluetooth/socket.io errors 2023-01-26 21:22:33 +11:00
Peter Stockings
0af3fccfc0 Change back to 2s update for live cadence due to self ddos 2023-01-26 21:19:18 +11:00
Peter Stockings
fe632b1a1b Attempt to fix worker timeout issue by forcing reconnect client side 2023-01-26 17:19:25 +11:00
Peter Stockings
f79823b785 Reduce refresh of live view to 1s and fix connection status 2023-01-26 16:00:28 +11:00
Peter Stockings
693f47d784 Change action button color to green on connect 2023-01-26 15:54:18 +11:00
Peter Stockings
7059e3e2bc Revert back to single eventlet worker due to Invalid session error 2023-01-26 15:49:33 +11:00
Peter Stockings
eae0d264cc Broadcast rpm to socket server from mobile web 2023-01-26 15:36:36 +11:00