Automatic Night Mode

From Anonymous on 2017/02/23 08:52:13 +0000

The idea is an automatic night mode, which will activate when the following criterias are met:

  • Current Time is in definable times (ex.: 23:00 - 07:00)
  • User has not unlocked the phone for longer than 30 minutes
  • The light sensor reports less than 15% brightness outside
  • User/phone location is at an specific location (home)

When night mode starts it dies the following:

  • start sleep tracking
  • enable do not disturbe
  • enable airplane mode

Night mode is disabled (incl. airplane mode, sleep tr & DnD) when: