Mitsubishi Outlander PHEV Forum

It is currently Fri Jul 19, 2019 8:42 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Remote App access via sms and Tasker (for pre-heating)
PostPosted: Mon Mar 04, 2019 4:26 am 
Offline

Joined: Sun Oct 29, 2017 8:19 am
Posts: 39
Mitch wrote:
can someone share the tasker script please?


Due to the nature of Tasker and AutoInput plugin, it's not very easy to share.. :( Even when I upgraded my phone from Android 4.4 to 7.0 I had to do it pretty much from scratch again. I'm sure it would be even more difficult to export to completely different brand phone.

But the method I described above works very well. It has now been in use for over a month and I use it maybe twice a day, and it hasn't failed even once.

Here's some pseudocode.. The phone is in the car so I'm doing this from memory, but it should be close. I have set this to trigger from "incoming call from favorite number", that's why it starts with hangup.

1) Hangup call
2) Launch Remote control program
3) set loop counter variable to 3

Loop:

4) Decrement loop counter
5) wait 2 seconds
6) Press "refresh" button on top right corner. Set timeout to 5 secs.
7) Wait 10 seconds
8) Try pressing "OK" button with AutoInput, in case there is some requester. Set timeout to 5 secs
9) wait 2 seconds
10) Press "heater" button. Longer timeout needed, like 15 secs
11) Wait 15 seconds (or maybe a bit less)
12) Using AutoInput's screen capture, Take a screenshot from heater button area, compare with earlier screenshot with heater "on"
13) If loop counter >0 and screenshots did not match, go back to 4 (loop)

14) If loop counter =0, call back to number %CNUM (which Tasker sets in step 1)
15) blank screen


So, when I call the car number, it immediately hangs up so I know Tasker script has started. Then it tries to activate the heater. If after three tries the heater still is not active, it calls me back. But this has never happened so far, so it's perhaps a bit unnecessary feature.

I have phone display timeout set to three minutes, so display stays on during the operation. Also disable all lock screens, so that remote app is right at top immediately when screen goes on.

You need some slightly modified version to get the initial screenshot with heater "on", then rename that to something else and use that filename in step 12 as compare file..


Top
 Profile  
 
 Post subject: Re: Remote App access via sms and Tasker (for pre-heating)
PostPosted: Fri Apr 26, 2019 12:26 am 
Offline

Joined: Fri Apr 26, 2019 12:17 am
Posts: 1
Would it possible to get Screenshot to reproduce it very easily (perhaps PM)?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
© Mitsubishi Outlander PHEV Forum - part of the MyElectricCarForums.com Group