Git Product home page Git Product logo

gadgetbridge's People

Contributors

0nse avatar albertsal avatar ashimokawa avatar bytehala avatar c4ndel4 avatar comradekingu avatar cpfeiffer avatar danielegobbetti avatar geripgeri avatar ivanovlev avatar johnnysun avatar joserebelo avatar jpbarraca avatar lightwars avatar maufl avatar mueller-ma avatar naofum avatar notdodo avatar protomors avatar rbarat avatar roidelapluie avatar sarg avatar stepardo avatar taavie avatar uwehermann avatar vebryn avatar vladserkoff avatar xpih avatar yarons avatar youzhiran avatar

Watchers

 avatar  avatar

gadgetbridge's Issues

Improvements to sleep detection

  • Freeyourgadget/Gadgetbridge#686
  • Freeyourgadget/Gadgetbridge#232
  • Freeyourgadget/Gadgetbridge#650


Targets:
  • fix deep and light sleep detection since this is actually out of line
  • try to detect REM sleep aka light sleep with some activity or higher HR (little below base HR) + some activity at the end which will then fall off into light sleep (where is the ideal time for waking up before getting back to deep sleep)

Light Sleep 1 -> Light Sleep 2 -> Deep Sleep 3 -> Deep Sleep 4 -> Deep Sleep 3 -> Light Sleep 2 -> Light Sleep 1 -> REM
  1. Light Sleep (1)
  2. Light Sleep (2)
  3. Deep Sleep (3)
  4. Light Sleep (2)
  5. Light Sleep (1)
  6. REM (0 / 1)
  7. Light Sleep (1)
  8. Light Sleep (2)
  9. back to Deep Sleep (3)
  10. repeat at 4.

REM State could be falsely detected with being awake, REM is actually in the light sleep detection but should not be interrupted. You will move around a bit in the end of the REM stage which could be used as indicator for a smart alarm.


Walking

1
16 - light walking
17 - bit flip with 1
26 -> rare

Running

50 -> rare
66 - > rare
82 -> start/end
98 ???

Sleeping
96-127
0110 0000 - 0111 1111

28 -> wake up ???
105 -> wake up ???
106 -> fall asleep ???
108 -> wake up ??
112 -> sleep, raw_intensity =0 - after 10 minutes start sleep state
121 -> sleep, raw_intensity > 20 - start deep sleep ? 96 + 80 after - state changed after deep sleep? - some activity is starting here - after some sleep - activity detected - maybe state change into light sleep
122 -> sleep, raw_intensity =<20
- after 121 and some more activity - very often just intensity of 20 - maybe state change into deep sleep
123 -> fall asleep - deep sleep in gb after that after 10 minutes of 112
124 -> wake up - stop tracking in gb - first steps after sleep state
80 - ~~could be REM while sleeping (activity) - hmm no REM no activity at all ~~ - alternative for 112 while sleeping - 111 = 112 - 80 = 101 - probably bit flipping there ???

Immobile/Siting

80 ???
89 - after 121 state changed some activity - after that 80 and no activity - could be REM / REM Ending - Another bit flip
90 - sit down
96 - standing up
91 -> rare - start sleep state in GB
99 -> rare ???


0111 0100 - wake up
0111 0000 - fall sleep

definitely must use values bitwise


definitely no native tracking of light and deep sleep

Improvements to Heartrate

  • Freeyourgadget/Gadgetbridge#1173
  • Freeyourgadget/Gadgetbridge#372 | Freeyourgadget/Gadgetbridge#1247
  • Freeyourgadget/Gadgetbridge#377: Display heart rate in notification
  • Freeyourgadget/Gadgetbridge#379: continuous heart rate measurements and recording
  • Freeyourgadget/Gadgetbridge#380
  • Freeyourgadget/Gadgetbridge#381
  • Freeyourgadget/Gadgetbridge#382

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.