Commit Graph

10 Commits

Author SHA1 Message Date
NateSchoolfield 6e3ddc2045 Cleanup 2021-02-15 20:08:10 -08:00
NateSchoolfield c3bc050593 Added heartrate alarm 2021-02-15 20:04:48 -08:00
NateSchoolfield f1b9497f0d Moved bytepatterns into constants.py, tweaked random vibration intensity 2021-02-05 15:56:02 -08:00
NateSchoolfield 1f8555fc9a Decoded another mystery BLE packet 2021-02-05 13:20:53 -08:00
NateSchoolfield 45e603270e Broke vibration out into its own module. 2021-02-01 23:25:59 -08:00
Nate Schoolfield 093e7a5006 Made vibration thread-safe, fixed CSV output issue 2021-01-31 15:05:24 -08:00
Nate Schoolfield 7bf0e8539d Moved data handling outside of main script into sleepdata module 2021-01-30 18:54:23 -08:00
Nate Schoolfield 8435b2bd69 Refined vibration functionality, added byte pattern class, cleaned up miband.py 2021-01-30 00:54:56 -08:00
Rob MacKinnon 5e6bb15d1c Code review and PEP8 clean-ups
- PEP8 formating clean-up
- bluesleep.py: Applied re-use of dict objects to variables for
     readability/PEP8.
- bluesleep.py: Updated for loops on items method to keys method as
     value is unused.
- bluesleep.py::get_auth_key: Refactor for readability/PEP8.
- bluesleep.py::average_raw_data: Simplified code and str formatting.
- bluesleep.py::sleep_monitor_callback: Pulled `data[0]` tests to
     if-elif.
- bluesleep.py::connect: Removal of `break` and `continue`, 
     `initialize()` returning true will exit the loop.  No need to break
     or continue the loop from within a try-except.
- bluesleep.py::connect: Removal of magic value on.
- bluesleep.py::graph_animation: Updated axis formating
- miband.py: Reformat imports
2021-01-25 08:56:06 -08:00
Nate Schoolfield a712460ce2 Resetting 2021-01-24 02:45:37 -08:00