Nap till rested, a power nap app

I would like to have a nap during the day but without falling into deep sleep. There is no way with Garmin to set the alarm to ring depending on the sleep state, that's why I've created the "Nap till rested" app: https://apps.garmin.com/en-US/apps/639b8e5f-dfa1-4ecd-b6c7-99e865622264

The app gives me the possibility to set how long (min/max) I would like to rest and a desired stress / body battery levels. Whenever I rest for a least the min-time and my stress level drops to the set target stress level or the body battery climbs to the set level, the watch will notify me. Also whenever the max-time is reached the watch will notify, regardless of the stress/body battery level.

This is also a learning place for me to learn about payment options, so I've implemented payments with kiezelpay.com. I will write about that in a separate post in the developer discussion forum.

Currently the app is only available for the Instinct 2 watch, but I will extend the support to other watched soon.

Other ideas:

  • show "statistics" on how much the user calmed down
  • export an activity (or rather passivity) to garmin see https://forums.garmin.com/developer/connect-iq/f/app-ideas/320054/nap-app
  • menu option to pay immediately and not only after the trial period - currently the user is requested to pay (after the trial period) just when a nap is started - that would be annoying
  • check not only stress but also the body battery ✓ since v1.7.0
  • check also the HR
  • of course there are a lot of code optimizations possible
  • support more devices

I would love to hear your thoughts