• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Tasker Profile Need's a little TLC

Hello Everyone,

Before i Start I just wanted to let you know I am no dev and im currently playing with Tasker, had a few good idea's (in my opinion) but im finding them hard to put together. was wondering if somebody could help?

TECHNICAL
Rooted Sony Xperia Z Tablet 4.2.2 Rooted
Tasker
AutoVoice
Secure Setting's

MY IDEA'S....
1.My First Idea was to have an alarm that goes off in the morning. Once I unlock the screen a woman speaks to me and asks #Good morning matty, are youu awake yet"? depending on my reply yes/no she will give me a different answer that has a different outcome.



IDEA MAP
Unfortunately as a new user I cannot upload a image so il have to draw up here what im creating to give yo a better idea:

Alarm goes off
+
Manual finger swipe Unlock alarm
+
Computer Voice: Morning are you awake?
+
Me: YES/NO

NO - Computer Voice: setting alarm for 10 mins + Sets alarm/locks screen and goes back to start of task.
YES - Computer Voice: I hope you had a good sleep would you like to know the weather report?
+
Me: YES/NO

NO - Computer Voice: Ok, when your ready ask me and il let you know + Ends Entire task and sets no alarm.
YES - Computer Voice: OK BLAh Blah %DAYW, %DATE ETC ETC + Ends Entire Task.



WHAT IVE DONE SO FAR
So here is how ive set up my tasker to perform so far:

PROFILE

Name: Morning Weather Speaker (1st task) GET WEATHER
+ Time (Trigger) From:0800 (end task) TALK WEATHER


TASKS

Get Weather (1st task)

1.GPS - set on
2.Get Location -Source:any Timeout:90sec
3.Variable Set - Name:%WEATHER To:Weather data not retrieved
4.Variable Set - Name:%WEATHER2 To:Weather data not retrieved
5.Variable Set - Name:%LOCATION To:Location data not retrieved
6.HTTP Get - Server:Port api.wunderground.com/auto/wui/geo/ForcastXML/index.xml?query=%LOC
7.Variable Split - Name:%HTTPD Splitter <period>
8.Variable Split - Name:%HTTPD2 Splitter fcttext>
9.Variable Split - Name:%HTTPD21 Splitter title>
10.Variable Split - Name:%HTTPD212 Splitter </
11.Variable Split - Name:%HTTPD22 Splitter <
12.Variable Split - Name:%HTTPD3 Splitter fcttext>
13.Variable Split - Name:%HTTPD31 Splitter title>
14.Variable Split - Name:%HTTPD312 Splitter </
15.Variable Split - Name:%HTTPD32 Splitter <
16.Variable Set - Name:%WEATHER To: Weather for %HTTPD2121 is %HTTPD221
17.Variable Set - Name:%WEATHER2 To: Weather for %HTTPD3121 is %HTTPD321
18.Variable Clear - Name:%HTTPD*
19.HTTP Get - Server:Port api.wunderground.com/auto/wui/geo/GeoLookupXML/index.xml?query=%LOC
20.Variable Split - Name:%HTTPD Splitter state>
21.Variable Split - Name:%HTTPD3 Splitter city>
22.Variable Split - Name:%HTTPD2 Splitter </
23.Variable Split - Name:%HTTPD32 Splitter </
24.Variable Set - Name:%LOCATION To: %HTTPD321, %HTTPD21
25.Variable Clear - Name:%HTTPD*



Weather Talks (End Task)

1.Silent Mode - Mode:off
2.Notifications Vol - Level 7
3.System Vol - Level 7
4.Media Vol - Level 15
5.Say - Text:Morning matty are you awake? Engine:Voice Google
6.Get Voice - Timeout:30secs
7.Variable Split - Name:VOICE
8.Goto - Type:Action number Number:11 ~ if %VOICE YES
9.Goto - Type:Action number Number:10 ~ if %VOICE NO
10.Say - Text:No Problem, setting alarm for ten minutes ~ if %VOICE NO
11.Say - Text:I hope you had a good sleep, would you like to know todays weather? ~ if %VOICE YES
12.Get Voice - Timeout:30secs
13.SAY - Text: Today is %DAYW the %DATE. The time is %TIME hours. The current weather for %LOCATION is %WEATHER. %WEATHER2



OK so as you can see ive got most of it set up except the some multiple choice (which i can do later) but here is where im having problems!


>>>>>>>WHAT I NEED HELP WITH<<<<<<<

1) when the alarm first goes off I want to put the first question it asks me ("Morning are you awake"?) on delay untill i actually swipe and unlock the devise. I dont want it asking me questions while the alarm is still sounding.

2) when it ask me "Morning are you awake" if i reply "No" i would like it to automaticly set an alarm for ten minutes time. currently i can only see a way to set it for a set hour.

JUST WANT TO ADD
I Am willing to share my work with anyone out there and if anybody has any good ideas how you could improve this or add to it please leave a comment :)
 
Hi mattjdlewis, and welcome to Android Forums :)

It sounds like you've got a solid idea of what you want to accomplish, which is great! That's a lot easier than answering the "I installed Tasker; now what?" type questions. :D

To address your needs:

1) when the alarm first goes off I want to put the first question it asks me ("Morning are you awake"?) on delay untill i actually swipe and unlock the devise. I dont want it asking me questions while the alarm is still sounding.

There is an Event > Display > Display Unlocked context that you could use in conjunction with something else to start talking to you after you unlock the device. Quick brainstorming - you may want to have one profile that sets a variable %ALARMING = 1 when the alarm goes off. You can then use a compound context for State: Variables > Variable Value: %ALARMING = 1 AND Event: Display > Display Unlocked to trigger the speech. I'd suggest that (depending on the outcome of the voice interaction) you unset %ALARMING at an appropriate stage in your profiles so that it doesn't fire every time you unlock the device.

2) when it ask me "Morning are you awake" if i reply "No" i would like it to automaticly set an alarm for ten minutes time. currently i can only see a way to set it for a set hour.

I *think* that you can use App > Start System Timer to accomplish what you're after, but I'm not 100% sure.

Looking forward to watching this project grow. :D

On a somewhat-related note, have you seen Utter!? It's the brainchild of one of the early pros of Tasker, who wanted a much more capable voice interaction thinger. Quite capable and expandable, AND it has fantastic Tasker integration. It may be able to help out with some of what you're after. :thumbup:
 
Yeah I heard of utter but it seems like the markets going towards the autovoice etc side of things so what I'm doing is trying to keep it all together so the majority of other users can use it.

I'm Going to try out what you requested but still please send in requests or idea's so I can build on this!
 
Ok so I've had a bit a play but im still finding it hard to setup alarm and display unlock part.

Does anyone know exactly how I can; (in order)
1. Set an Alarm to go off
2. Once pin code entered correctly it then goes into the tasks.
 
Hi all!!
I need help with the start of my tasker profile, Currently I have setup a profile to get weather information and then talk this weather information back to me (cool huh).

but the thing is, Im no good with alarms on tasker or setting variables so could someone give me a full run down how to set a profile that an alarm goes off then if I unlock my alarm the task will start running.

[Example]

1) Set the alarm the night before.
2) The alarm goes off in the morning.
3a) If I swipe the alarm button off (im awake) the task automatically starts to run.
3b) If I snooze the alarm it will postpone the alarm/task for 10mins.

(The Task will not run unless I turn off the alarm, no matter how many times I snooze)
 
Hi mattjdlewis,

I've merged your threads to keep the related discussion in one place. :thumbup:

Can you tell me specifically what's happening when you try to use the Display: Unlocked approach that I mentioned earlier? Without knowing how exactly that method is failing, I'm not really able to suggest an alternative.
 
Back
Top Bottom