When you use a Pebble Smartwatch as I do it becomes handy when you start your Sleep as Android sleeptracking that Google Text to Speech says on what time your pre-set alarm will wake you up.
Sleep as Android has some intents you can use within Tasker, but has no options to let Tasker know on what time the first upcoming alarm will be. That's where AutoAlarm kicks in.
AutoAlarm is an app that you use as a plugin into Tasker. When added into a task al items after it can use some variables about the next set alarmclock.
Below is how you can use Tasker in combination with AutoAlarm to let Google Text to Speech say on which time the next alarmclock is set. The pictures are in dutch (my native language), but my explanation is in English.
You can also download the XML file of the example below at the bottom of the page at the section Downloads. You can import the file by pressing on the name "Profiles" of the "Profiles" tab and then press "Import".
You can download AutoAlarm from the following link: https://play.google.com/store/apps/details?id=com.joaomgcd.autoalarm
When you open the AutoAlarm app you can hit "Test" to see if AutoAlarm recognizes your pre-set alarmclock.
When it doesn't recognize a pre-set alarmclock there will be an error message that warns you about it.
When you set a alarm within Sleep as Android and hit the Test item again at AutoAlarm you will see a list with variables you can use within Tasker.
Within Tasker touch the "+" symbol at the bottom and then thouch "Event". Then choose "System" and finally "Intent recieved".
At the field "Action" fill in "com.urbandroid.sleep.alarmclock.SLEEP_TRACKING_STARTED". This will trigger the task at the moment when the sleeptracking has started. When finished hit the back-sign in the upper left corner.
After hitting the back-sign in the previous step a popup will be automatically shown in the bottom right corner with (if set) already configured seperate tasks. Touch the "New task +" option. After that another popup will be shown. You can enter a name for the task, but mostly I leave it empty. Then hit the checkmark sign.
Now you see a empty "Task edit" screen. Touch the "+" symbol at the bottom, choose "Plugin" and then choose "AutoAlarm".
Now touch the pencil symbol in the upper right corner, hit "OK" (or hit one of the apps mentioned if you are interested in them), hit "Cancel" (or "OK" if you immediately want to buy the full version of AutoAlarm) and finally hit the back-sign in the upper left corner to go back to the task item list.
Now AutoAlarm is correctly set to give you some variables you can use in any task item below the AutoAlarm item.
To ensure Google Text to speech speaks the time correctly we have to add a leading zero when the minutes are below 10 (at least at the dutch TTS language). Also we have to some notifications to read out the hours correctly. So I have set 3 variables.
The screenshots are in Dutch but below I describe what text you could use in English.
First press the "+" button on the bottom again. Now choose "Variables" and then "Variable" set.
Now you can configure the variable. You see a lot of fields and most of them we'll need to use.
Almost repeat substep 2, exept for a few things. This is because of the leading zero we have to add to let Google Text to speach speak the time correctly (at least with the Dutch Google TTS).
Almost the same as substep 2 and 3 but this variable is being set when we are not on a whole hour and the minutes are not below 10.
Now let us create the speak element.
Touch the "+" sign at the bottom, then "Misc" and finally "Say".
Again a lot of fields, but now we have to fill the half of it.
When we scroll down we have some more fields:
You now can use the task. Just set an alarm within Sleep as Android en start the sleep tracking! If everything went well the right text has to be spoken.
Below is a screenshot of my total task. I also let the task disable my WiFi so every internet related app can't disturb my sleep. :-)
Feel free to ask everything when you don't understand some things or when you see problems, missspellings, etc. You can e-mail me at the mailadress mentioned on the frontpage or reactie at the Google+ reactform below.
Below are the files included with this projectpage.