Sleep Mode

By Red Panda Studio

Here's what actually happens, most of it isn't visible on the video:
AC plugged in OR I tell Nelly, my DIY voice assistant, anything that contains the word "night" (good night, night night etc) turns Sleep Mode on.

Sleep mode on:
*Say "Sleep mode activated. Good night" using text to speech
*Set display brightness to lowest value
*Set alarm volume to max
*Write "Andreas is sleeping" to a text file which is then synced to a public dropbox folder. This is my DIY social network that some friends and family can access
*Activate a call reject profile in Tasker that rejects call from certain people who tend to call at the wrong times, replies to them automatically using SMS
*Write "SM is on" to part of my DIY widget (made with Make Your Clock widget)
*Write the current time, in seconds, to a variable %Smactivated
*Append a text file called sleepmode.txt. The point is to make this file change slightly, so that Dropsync syncs it to dropbox, where it is then added to my computer Dropbox folder, where RoboTask detects a file change, and runs nircmd.exe with "monitor off" command to turn off my PC screens"
*Deactivate a profile which is too conplicated to explain in detail, but basically it runs every 2 hours and updates some work related things. This is deactivated when im not awake

When taken off AC charging, or when I tell Nelly anything with the word "morning", Sleep Mode turns off

Sleep mode off (exit task):
*Write "Andreas is home" to the "social network txt file"
*Change widget text to "LS %TIME", where %TIME is the time sleep mode was deactivated. LS meaning Last Slept.
*Create a variable %Smduration which is (%Smactivation-%TIMES)/3600. In other words, how long slee mode was active for, in hours.
*Create a variable %Lazy which contains the text "You lazy bastard" IF %Smduration is greater than 9 (if I slept more than 9 hours)
*Say "Good morning. You slept for %Smduration hours. %Lazy". The Variables with % in front of them are then replaced depending on how long I slept. Two possibilities would be "Good morning. You slept for 7.21 hours" and "Goo morning. You slept for 9.42 hours. You lazy bastard". The last part is added only when I sleep for more than 9 hours.
*Run Astrid Filter Alert plugin for "Morning". This means that if I have any todo tasks marked "morning". it will notify me of them when i get up, not based on a time schedule.
*Activate the 2 hour repeat profile for work.
*Turn monitors back on using same method, different file to append.

This sounds complicated, but remember that the phone can do all of this in about 5 seconds, and all of this is automatic based on plugging in/out the AC adapter for my phone. With a 2000mAh extended battery kit I always last the entire day no matter what I do, so charging at night and having it trigger sleep mode works great. Alternatively, Nelly can turn it on off with voice control.
Sleep mode adds a small widget button to your home screen.
When pressed you activate/deactivate the sleep mode.

In sleep mode you can configure to
More
(10)
500 - 1k
12 years ago