message - Tasker Tips & Tricks

Anyone know a profile that can send an automated message (text) when phone is charging?

Profile: Charging (209)
State: Power [ Source:Any ]
Enter: Anon (236)
A1: Send SMS [ Number:<Number goes here> Message:<Message goes here> Store In Messaging Appff ]

sumotori1 said:
Profile: Charging (209)
State: Power [ Source:Any ]
Enter: Anon (236)
A1: Send SMS [ Number:<Number goes here> Message:<Message goes here> Store In Messaging Appff ]
Click to expand...
Click to collapse
What is Anon 236? and I want it for any number.

Anon is an anonymous task attached to the profile, it's just a naming.
I think you need to explain a little better what you are trying to do.
Do you want to reply to an incoming message of your phone is charging?

sumotori1 said:
Anon is an anonymous task attached to the profile, it's just a naming.
I think you need to explain a little better what you are trying to do.
Do you want to reply to an incoming message of your phone is charging?
Click to expand...
Click to collapse
I tried your profile, and it only worked once. Yes. I need to auto reply a text while cell is charging. Whether on my contact list or ANY number

sumotori1 said:
Anon is an anonymous task attached to the profile, it's just a naming.
I think you need to explain a little better what you are trying to do.
Do you want to reply to an incoming message of your phone is charging?
Click to expand...
Click to collapse
I realized what Anon meant, after I hit enter. Lol

Tmobilefan906 said:
I tried your profile, and it only worked once. Yes. I need to auto reply a text while cell is charging. Whether on my contact list or ANY number
Click to expand...
Click to collapse
Alright... Then you need to add one more condition on the profile: Event > Received text SMS
So you will have two conditions on the same profile.
Then replace the number with: %SMSRF

sumotori1 said:
Alright... Then you need to add one more condition on the profile: Event > Received text SMS
So you will have two conditions on the same profile.
Then replace the number with: %SMSRF
Click to expand...
Click to collapse
There...

Yup, I think I his should work perfectly.
Edit: Just saw that you used the variable on the message received. You don't need it there. As soon as you receive the message, the variable gets updated from tasker. It's a built-in variable that gets a value as soon as Tasker starts monitoring messages. So leave sender empty. Otherwise, perfect!

sumotori1 said:
Yup, I think I his should work perfectly.
Edit: Just saw that you used the variable on the message received. You don't need it there. As soon as you receive the message, the variable gets updated from tasker. It's a built-in variable that gets a value as soon as Tasker starts monitoring messages. So leave sender empty. Otherwise, perfect!
Click to expand...
Click to collapse
So, under "number" I could leave blank? The profile I shown ya seems to work as is.

Tmobilefan906 said:
So, under "number" I could leave blank? The profile I shown ya seems to work as is.
Click to expand...
Click to collapse
I'm glad it's working for you!
Yes, it's an optional parameter.
Maybe it works, but I'd suggest to empty it to avoid and undesired behaviour in the future.

sumotori1 said:
I'm glad it's working for you!
Yes, it's an optional parameter.
Maybe it works, but I'd suggest to empty it to avoid and undesired behaviour in the future.
Click to expand...
Click to collapse
Which one...number or sender?

sumotori1 said:
I'm glad it's working for you!
Yes, it's an optional parameter.
Maybe it works, but I'd suggest to empty it to avoid and undesired behaviour in the future.
Click to expand...
Click to collapse
Know a profile to send a text while you're on a call?

Tmobilefan906 said:
Which one...number or sender?
Click to expand...
Click to collapse
Sender
Tmobilefan906 said:
Know a profile to send a text while you're on a call?
Click to expand...
Click to collapse
You need two profiles, one to monitor phone off hook (task to set variable %INCALL to true) and another profile to monitor phone idle (task to set variable %INCALL to false).

sumotori1 said:
Sender
You need two profiles, one to monitor phone off hook (task to set variable %INCALL to true) and another profile to monitor phone idle (task to set variable %INCALL to false).
Click to expand...
Click to collapse
Yea, I did see phone off hook but wasn't sure. Thanks.

sumotori1 said:
Sender
You need two profiles, one to monitor phone off hook (task to set variable %INCALL to true) and another profile to monitor phone idle (task to set variable %INCALL to false).
Click to expand...
Click to collapse
I'm lost. Lol. How would I do that?

This is how I set up mine some time ago. These are two profiles (64 and 68) and each has one enter task (65 and 69 respectively).
Profile: Phone Offhook (64)
Event: Phone Offhook
Enter: Phone Offhook (65)
<Set InCall variable>
A1: Variable Set [ Name:%InCall To:true Recurse Variables: off Do Maths: off Append: off ]
Profile: Phone Idle (68)
Event: Phone Idle
Enter: Phone Idle (69)
<Set InCall variable>
A1: Variable Set [ Name:%InCall To:false Recurse Variables: off Do Maths: off Append: off ]
Once you do that, you will always have access to the variable %InCall for my example which you can monitor (with a profile with a state variable check). If the variable is set to true, you're in a call, otherwise you're not.

Related

Forward Specific SMS To Whatsapp Contacts?

Is there a way to automatically forward specific sms's which match a keyword, to another contact via whatsapp?
Any help would be greatly appreciated!
msharoon said:
Is there a way to automatically forward specific sms's which match a keyword, to another contact via whatsapp?
Any help would be greatly appreciated!
Click to expand...
Click to collapse
I don't have the full answer to your question but you can detect a keyword in a SMS using this profile:
Create a new profile --> Event --> Phone --> Received Text:
Type: Any
Sender: leave this blank
Content: *keyword*
-replace "keyword" by the word you need to be monitored. Don't forget to put it between two asterisk otherwise tasker will not detect your keyword if its not the only word in the received SMS.
Then you can use this event to fire up a task that will forward that SMS (%SMSRB) to another contact via whatsapp. You'll probably need to make a script for that or maybe you could find the old whatstasker plugin (not on the playstore anymore and not sure if its still working). In whatstasker plugin, you can select a contact and the text to be sent. set the text field to %SMSRB.
Edit: found something here that might be useful: http://forum.xda-developers.com/showthread.php?t=2550924

[HELP] How do I get the start and end times (values) of current calendar event?

I want to set up an Alarm at the time the current calendar event ends.
Read the wiki and didn't find an in built variable that stores the end time. Only %CALTITLE / %CALDESCR / %CALLOC were there.
Then I stumbled on to Action > test app feature. But can't figure out how to get it to work. I made this little task to test it out
This is what I tried
Get the end time of current calendar event and store in variable %Time
Flash a message of %Time to make sure value was correctly put in the variable
1 Test App > Set Type - Calendar End(Second), Set Data - %TIME, Store in %Time.
2 Alert > Flash > Set Text to %Time
However, The flash message read "%Time" instead of the end time of current calendar entry.
I don't know what Data meant in test app. I assumed it asked for the time at which calendar entries should be fetched. So I put %TIME to fetch the end time of the calendar entry active at current time.
Also this is what's present in the documentation
Calendar tests: require the time in seconds since the epoch as Data (e.g. use %TIMES, or use the Variable Convert action to convert a date/time into seconds first) and are entered in an array (%var1, %var2 etc), not a plain value, because there may be multiple events at the time specified.
Click to expand...
Click to collapse
this thread is 2 years old, but I thought I'd share my humble opinion....
theoretically you could test calendar to determine the title of the of the event, make a FOR loop and keep testing it until the event is gone.
Other than that, I'd use apps like Business Calendar, which displays a notification for on going event. Presumably Tasker can detect this.

Automated phone calls

Does any one know how to set up tasker to make phone calls at certain times. I need to do this for call forwarding purposes for business.
M-F 6AM turn off forwarding followed by forwarding to a phone number.
M-F 3:45 PM forward calls again.
Thanks
Okay, I think I got it, time will tell.
Create profile based on Days>task = make a phone call>+ to profile time
Will know if all my calls take place in 24 hrs.
If you set a state context for a day then it could become active over and over which will cause your task to run and your call to be made over and over, so set more than just a day context.
Instead set the task to set a variable containing the time to fire (like %FWDTIME etc )
Then set another profile with a time context to run
from %FWDTIME to %FWDTIME with the call task. Then clear %FWDTIMEif you want to cancel the call (like if you're currently on a call or watching porn etc)
Clear the variable on entry and it will only run once
Then multi contexts like day, and if %FWDTIME not set, and %TIMES (CURRENT TIME IN SECONDS) is lessthan 3pm then set %FWDTIME to 3PM IN SECONDS (whatever the call time)
if the %FWDTIMEis not set AND the current time is before the call time then set the variable and when 3pm hits it will only run the task if the variable %FWDTIME Is set

Message composing

How to send messages to all call recipients when I receive a missed call using Tasker app
Use a phone missed call event as a trigger for a profile then a phone > send sms action in the task. The last number called will be stored in %CNUM.
ktmom said:
Use a phone missed call event as a trigger for a profile then a phone > send sms action in the task. The last number called will be stored in %CNUM.
Click to expand...
Click to collapse
What to give with cnum
Nrzz said:
What to give with cnum
Click to expand...
Click to collapse
I honestly don't know what you are asking. Here's a pointer to the tasker user guide on variables.

Http requĂȘte when connectons wifi

Hi,
I'm searching to make a trick but never find how to...
Someone can help me here ?
Sorry for my poor english...
I would like to make a http request when connecting to my wifi SSID but only when I go home...
Make a http request is ok for me.
Connecting to my wifi SSID ok.
The problem is during the night my phone is in airplane mode, and when I turn on I don't want to make the http request.
Thank you helping me ?
Create an location profile for your home. Add an enter task which sets an variable e.g. %Location to "Home" if you're at home. Add an exit task which sets the variable to "Unknown" as soon as you've left the home location.
Add an action to the end of your HTTP request task, which sets an variable e.g. %HTTPRequestMade to "1" if the HTTP request was made.
Then add two IF conditions to the HTTP request action, so that the request is only running if %HTTPRequestMade is not "1" AND the %Location is "Home".
Create another profile which is triggered if the variable %Location changes (Event "Variable Set"). Add an task which sets %HTTPRequestMade to "0" if $Location is not "Home".
So if you're coming home the request will be executed and the variable %HTTPRequestMade will be set to "1". If the task is executed again it will not do the request because %HTTPRequestMade is still "1". If you leave your home the variable %Location will change to "Unknown". That will trigger the new profile which will set the variable %HTTPRequestMade back to "0". Next time you're coming home the HTTP request will be executed again.
Wow
It seems so hard to make it...
For the moment i have linked with my Xiaomi bip lite and the button pressed for the http request and it works well.
The objective is to have the request made automatically and when I'm front of my house the portal should open but it seems hard to made it and to have something which react very quickly...
The challenge is to recognize if you've left your home or not when you get connected to your wifi again. In my opinion a location profile is the easiest and most reliable way to do this.
Maybe it will be easier for you to implement it when I shorten my first idea:
Create an location profile for your home. Add only an exit task which sets the variable %HTTPRequestMade to "0"
Add an action to the end of your HTTP request task, which sets the variable %HTTPRequestMade to "1" when the HTTP request was made.
Add an IF condition to the HTTP request action itself, so that the request will be only executed when %HTTPRequestMade is not "1".
So when you've left your home the exit task of the location profile will set %HTTPRequestMade to "0". Next time you get connected to your home wifi the HTTP request task will be executed and set %HTTPRequestMade to "1". When you reconnect to your wifi without leaving your home before, the request will be not executed because %HTTPRequestMade is still "1".
Or you add an time depence to your profile so that the task will be not executed in the morning or whenever you wake up.
Yes i have this Idea also but after a single test when connecting wifi, it works not immediately si not really usable as i would like...
I'm searching for another Idea...
Have you checked if the profil gets active (green) as soon as you're connected to your wifi?
I had the same issue that the profil need some seconds until it became active. The issue was that I'd configured the SSID and a single MAC address for the profile. But my wifi router supports 2,4 and 5 GHz wifi for the same SSID, and therefore it has two different MAC addresses. Thats why the profile became only active in the 2,4 GHz wifi.
Due to that the first six chars of both MAC addresses are the same, I've changed the value to AA:BB:CC:* , which is fitting to both MAC addresses (AA:BB:CC are only an example. Add the first six chars of your routers MAC address).
It's cause that my smartphone take a little time to connect to the wifi...
You can try to force the connection with action "WiFi Net: Reconnect" as soon as your mobile phone is near your wifi. Or, if you have configured a lot of wifi profiles in your mobile phone, delete the unnecessaried ones. Maybe this will speed-up the connect.
Hi,
What is this action ?
How to force it ?
And how to delete wifi profiles ?
I have a Xiaomi Mi 9
Profil "Near Wifi" -> Yours
Add task with action "WiFi Net" -> Action "Reconnect"
I mean the known wifis in your wifi settings. Every wifi that your phone was connected to creates an profil. Delete the ones that you don't need anymore.
I will try but not really sure it will works...
JasMan78 said:
Profil "Near Wifi" -> Yours
Add task with action "WiFi Net" -> Action "Reconnect"
I mean the known wifis in your wifi settings. Every wifi that your phone was connected to creates an profil. Delete the ones that you don't need anymore.
Click to expand...
Click to collapse
It's not working better...
It take long Time to connect to the wifi...
So my tasks make long time to run...
diabolyk34 said:
Hi,
I'm searching to make a trick but never find how to...
Someone can help me here ?
Sorry for my poor english...
I would like to make a http request when connecting to my wifi SSID but only when I go home...
Make a http request is ok for me.
Connecting to my wifi SSID ok.
The problem is during the night my phone is in airplane mode, and when I turn on I don't want to make the http request.
Thank you helping me
Click to expand...
Click to collapse
Perhaps you need to contact technical support and check the Wi-Fi router ...

Categories

Resources