Commit Graph

  • 998c64108a Only clear array of workout data once successfully saved Peter Stockings 2023-03-10 22:57:21 +11:00
  • 1a1417920a After successfully adding workout and confirming prompt user is redirected back to overview page Peter Stockings 2023-03-10 22:54:44 +11:00
  • 2c3fefdb89 Improve format of workout start date on overview page Peter Stockings 2023-03-10 22:44:06 +11:00
  • 3ccae605cf Add confirmation before deleting workout Peter Stockings 2023-03-10 22:30:41 +11:00
  • 56cf6813b7 Add the ability to add/delete users from overview page Peter Stockings 2023-03-10 22:27:30 +11:00
  • 3a506b83a5 Remove unused code Peter Stockings 2023-03-10 22:12:44 +11:00
  • 57a38e2132 Change duration to always calculate rather then counting seconds, Remove power display Peter Stockings 2023-03-10 22:12:31 +11:00
  • de47debc3f Show uncollapse first workout accordion Peter Stockings 2023-03-10 22:11:46 +11:00
  • 11d350082d Minor changes Peter Stockings 2023-03-10 21:54:46 +11:00
  • 2498aa44c9 Change homepage to users overview with link to new workout page Peter Stockings 2023-03-10 21:31:48 +11:00
  • e943f45625 Show time on yaxis and start y-axis from 0 Peter Stockings 2023-03-10 10:33:29 +11:00
  • 36438b125c Return number of workouts for users and average/max rpm for workouts Peter Stockings 2023-03-08 22:37:32 +11:00
  • 6b8c22d13c Fix error thrown when successfully submitting workout due to json->JSON and improve look of graphs Peter Stockings 2023-03-08 21:17:49 +11:00
  • ec2e848f48 Change schema and switch to flask-sqlalchemy, comment out existing endpoints and add new endpoints to add/delete users & workouts Peter Stockings 2023-03-08 20:32:54 +11:00
  • f7805609b0 Render rpm, power as integers, and plot rpm with one decimal place Peter Stockings 2023-03-08 11:34:50 +11:00
  • a1a14b5aaf Beta: Switch to using static site instead(doesnt yet post data back to server) Peter Stockings 2023-03-07 23:45:03 +11:00
  • 5c1a3acec3 Display duration of current workout Peter Stockings 2023-01-30 22:31:42 +11:00
  • 34d7be2b7d Increase number of workers 4->5 in attempt to fix lag issues Peter Stockings 2023-01-30 22:12:28 +11:00
  • fa3a8990cf Only fetch last 100 cadence readings and display as sparklines graph Peter Stockings 2023-01-30 22:12:10 +11:00
  • cf2dc204e7 Until I figure out a way to determine when a live session started reduce window down 12->3hrs Peter Stockings 2023-01-26 22:34:43 +11:00
  • fa9af6a512 Once connected to a BLE device clicking on FAB will disconnect from device Peter Stockings 2023-01-26 22:27:03 +11:00
  • e9be507254 Change cadence refresh 2->1s due to timeout issues being resolved Peter Stockings 2023-01-26 22:26:27 +11:00
  • e78b7b5cc4 Change floating action button icon to bluetooth Peter Stockings 2023-01-26 22:20:22 +11:00
  • 08753c8bfe Remove all references to socket.io Peter Stockings 2023-01-26 22:12:51 +11:00
  • 5a30278aaa Change action button color to green once connected to cadence sensor Peter Stockings 2023-01-26 21:58:43 +11:00
  • 9ec6693031 Switch from socket.io to REST for cadence streaming in attempt to fix timeout issue Peter Stockings 2023-01-26 21:53:54 +11:00
  • ef3de84621 Increasing gunicron timeout 90->600 based on https://learn.microsoft.com/en-us/azure/app-service/configure-language-python#flask-app Peter Stockings 2023-01-26 21:29:11 +11:00
  • 20b7153cfa Dont send 0rpm over socketio Peter Stockings 2023-01-26 21:28:48 +11:00
  • 168b7ca548 Add sweetalert to show styled alert on web bluetooth/socket.io errors Peter Stockings 2023-01-26 21:22:33 +11:00
  • 0af3fccfc0 Change back to 2s update for live cadence due to self ddos Peter Stockings 2023-01-26 21:19:18 +11:00
  • fe632b1a1b Attempt to fix worker timeout issue by forcing reconnect client side Peter Stockings 2023-01-26 17:19:25 +11:00
  • f79823b785 Reduce refresh of live view to 1s and fix connection status Peter Stockings 2023-01-26 16:00:28 +11:00
  • 693f47d784 Change action button color to green on connect Peter Stockings 2023-01-26 15:54:18 +11:00
  • 7059e3e2bc Revert back to single eventlet worker due to Invalid session error Peter Stockings 2023-01-26 15:49:33 +11:00
  • eae0d264cc Broadcast rpm to socket server from mobile web Peter Stockings 2023-01-26 15:36:36 +11:00
  • 8c49dea474 Add delay after connecting to BLE device and start notifications before adding on characteristic change event listener Peter Stockings 2023-01-26 12:40:38 +11:00
  • f8c422db8d Fix ble event error Peter Stockings 2023-01-26 12:26:12 +11:00
  • c507d879e7 Attempt to use web bluetooth from chrome mobile to stream cadence rather then dedicated hardware Peter Stockings 2023-01-26 12:06:26 +11:00
  • e7087aedbb Change look of device list Peter Stockings 2023-01-24 23:52:05 +11:00
  • b25f57e103 Minor styling improvements and update default navbar location so it isnt re-rendered on devices update Peter Stockings 2023-01-24 22:19:52 +11:00
  • 3294372986 For live display only show cadence readings logged in the past 12 hours(todo: make configurable) Peter Stockings 2023-01-24 22:06:38 +11:00
  • c32370b835 Remove dependency on hyperscript (may try out alpine.js for frontend interactivity) Peter Stockings 2023-01-24 21:49:55 +11:00
  • 245c2d0b0b Make device list live and add cursor pointer to breadcrumbs Peter Stockings 2023-01-24 21:16:23 +11:00
  • 763f8832c8 Display device name in breadcrumbs Peter Stockings 2023-01-24 21:10:31 +11:00
  • 1ba186b608 Fix routing, still need to fix intial loads only returning portion of page Peter Stockings 2023-01-24 21:02:40 +11:00
  • bbf67f5768 Change flow so home page is device select from where you can browse to overview Peter Stockings 2023-01-24 20:51:53 +11:00
  • 5dc2b866f4 Display devices and there status Peter Stockings 2023-01-24 20:16:12 +11:00
  • a0969c63db Attempt to fix timeout issues Peter Stockings 2023-01-24 20:04:53 +11:00
  • 2085ff21da Move graph generation logic into seperate file Peter Stockings 2023-01-23 21:51:24 +11:00
  • 6f5b76ac64 Plot every 2nd datapoint in attempt to reduce file size Peter Stockings 2023-01-23 20:30:56 +11:00
  • 48a7a009e8 Make UI responsive Peter Stockings 2023-01-23 20:25:10 +11:00
  • c32e837cf3 Remove unused css class Peter Stockings 2023-01-23 20:24:56 +11:00
  • 49c1c7df29 Apply custom styling to rpm graph and only display last 15 live readings on table Peter Stockings 2023-01-23 20:24:43 +11:00
  • c85139d8ae Rollback failed transaction Peter Stockings 2023-01-23 19:54:20 +11:00
  • 0e5e1a8b76 Change graph to static to stop white flash on update Peter Stockings 2023-01-22 23:24:09 +11:00
  • cd7411eac7 Switch to server side rendered SVG based graph library Peter Stockings 2023-01-22 22:39:32 +11:00
  • 0a93eb7507 Wrap live display in centered container Peter Stockings 2023-01-22 20:59:29 +11:00
  • f35c30aeb1 Plot live cadence data Peter Stockings 2023-01-22 20:01:26 +11:00
  • aa82db6678 Add basic ui that displays live/history cadence data Peter Stockings 2023-01-22 19:37:19 +11:00
  • 1a7bec42c7 Store rpm and device_id for each cadence reading Peter Stockings 2023-01-22 10:14:39 +11:00
  • 032f3a0d62 Fix device id reference error Peter Stockings 2023-01-22 10:02:45 +11:00
  • 56069547c3 Store cadence values in database Peter Stockings 2023-01-22 09:59:39 +11:00
  • dfc1988a88 Disable socketio logging Peter Stockings 2023-01-04 18:08:50 +11:00
  • 7d14a40cd6 Message is being sent as json(dict) Peter Stockings 2023-01-04 18:04:11 +11:00
  • cc1ee982c5 Add websocket logging in attempt to debug disconnect issue from esp32 Peter Stockings 2023-01-04 14:58:58 +11:00
  • 06a279abe6 Revert message logging changes in attempt to fix JSON decoder error Peter Stockings 2023-01-04 10:57:34 +11:00
  • a477d17fe1 Attempt to fix JSON decoder error Peter Stockings 2023-01-04 02:08:03 +11:00
  • 4eff9ce850 Further cleanup message logging statement Peter Stockings 2023-01-04 01:46:07 +11:00
  • 4a903c5701 Cleanup message logging Peter Stockings 2023-01-04 01:35:27 +11:00
  • a6b7107e55 Fix datetime module issue Peter Stockings 2023-01-04 01:16:58 +11:00
  • 05e0c432f4 Log server timestamp on message Peter Stockings 2023-01-04 01:13:27 +11:00
  • 3e4b803319 Change gunicorn and python version Peter Stockings 2023-01-03 15:45:45 +11:00
  • 22930e527a Switch back to using gunicorn with eventlet==0.30.2 Peter Stockings 2023-01-03 15:42:44 +11:00
  • 2d7c0422bc Stop using gunicorn Peter Stockings 2023-01-03 15:38:13 +11:00
  • 7b53003116 Switch to geventwebsocket worker Peter Stockings 2023-01-03 15:25:47 +11:00
  • 1194eed11a Switch to gevent worker Peter Stockings 2023-01-03 14:47:21 +11:00
  • f9e294c758 Attempt to fix socket.io errors Peter Stockings 2023-01-03 14:40:44 +11:00
  • 0556fb4c9e Configure session with hardcoded temp secret (Replace) Peter Stockings 2023-01-03 14:04:31 +11:00
  • 2cf880b548 Fix cors whitelist Peter Stockings 2023-01-03 13:51:47 +11:00
  • 86b2c26df2 Add cors whitelist for socket.io Peter Stockings 2023-01-03 13:45:26 +11:00
  • a82e350366 Rename socket.io message->event Peter Stockings 2023-01-03 13:12:42 +11:00
  • 1a1cfc5ffd esp32 is taking 2-3s for TLS negotiation, try switching from https to wss Peter Stockings 2023-01-03 11:41:27 +11:00
  • c59260f9f1 Format request dump Peter Stockings 2023-01-02 22:30:23 +11:00
  • 099cac7f8f Log request body as json Peter Stockings 2023-01-02 21:49:04 +11:00
  • b54d053066 Initial setup, just adds status endpoint that dumps request Peter Stockings 2023-01-02 16:06:53 +11:00