thiswillbeyourgithub / SleepTk_pinetime_sleep_tracker

SleepTk: sleep tracker with smart alarm for the pinetime on wasp-os
GNU General Public License v3.0
57 stars 3 forks source link

Interested in porting to InfiniTime #13

Open lxrst opened 1 day ago

lxrst commented 1 day ago

Sorry, I'd forgotten about this. I haven't put much work into it yet, but I'm able to start working on this now. I'll post updates as soon as I have something.

thiswillbeyourgithub commented 1 day ago

Great to hear! Thanks a lot!

lxrst commented 12 hours ago

I've looked into it a little further. I think I should be able to finish this by the end of the week.

thiswillbeyourgithub commented 11 hours ago

That's awesome! Can't wait to test it out.

tituscmd commented 1 hour ago

I'm so looking forward to this!

thiswillbeyourgithub commented 1 hour ago

Likewise.

@lxrst , do NOT hesitate to ask me anything about a feature or aspect you have trouble to implement. I am sure choices will have to be made to cram as much feature as possible into the infinitime code but I would absolutely hate to waste some of your time if you made a call on your own that turned out to be questionable in the eyes of long time users. SleepTk is pretty simple in some aspect but quite advanced in others! I used it for literal years and have not changed the code for the last few, not ouf of laziness but because it was feature complete. Also I'm sure some parts of the code might be weird and I would gladly explain them.

As I'm writing this, the bounty is at $100 from me + up to $76 CAD from @Koloss0

Also, despite the name, the wakeup features are way more important than the tracking:

  1. there turns out to be a glitch in the heart rate detector in wasp-os that makes it somewhat unreliable
  2. because approximating the sleep cycle based on body motion is actually less accurate than simply counting the time that passes and assuming periodic cycles. This was the result of one of the study I read when developing sleeptk. Counting when the screen was turned on though is a good way to store insomnia data.
  3. Also because wasp-os cannot really exchange bluetooth data so gadget bridge was useless. But if there's a simple way to store motion/screen-turned-on/heart rate and send it to gadget bridge that would be incredible. But first things first: wake up features are what's most pressing.
  4. We have very limited storage space for apps on the watch so if some features have to go, it's going to be the tracking features.

I'm so excited :)