Automated phone calls - Tasker Tips & Tricks

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

Related

Fix for automatic profile going vibrate during "free" event?

When an all-day calendar event is marked free (not busy or out of office) and the automatic profile is selected, the TyTN II switches to vibrate mode. I expected the phone to remain in the normal sound profile, as if there wasn't a scheduled appointment. Is there a fix for this?
jam2007 said:
When an all-day calendar event is marked free (not busy or out of office) and the automatic profile is selected, the TyTN II switches to vibrate mode. I expected the phone to remain in the normal sound profile, as if there wasn't a scheduled appointment. Is there a fix for this?
Click to expand...
Click to collapse
But you Do have an appointment, as you said you have an all-day calendar event...so in essence, it's an appointment.
greg3d said:
But you Do have an appointment, as you said you have an all-day calendar event...so in essence, it's an appointment.
Click to expand...
Click to collapse
Well no not really, its not an appointment because that would require him to be busy or out of office, its a reminder because he set the status to free.
I can say that using SPB Phone Suite in automatic profiles will not switch to meeting mode (i.e silent or whatever I set the profile to) if the appointment/calendar-entry is set to free.
The problem is that if I have a 2 day event which starts on the last day of the week (i.e Friday) and ends on the first day of the next new week (i.e Monday), on Saturday & Sunday my phone will go into meeting mode/profile which is really annoying. I wish the phone knew that weekends dont count as work days or that it would ask me if I really have 2 day event which cooincides with the weekend or is it really a 4 day event.

[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.

Send automatic SMS but different text body

Hi,
i am tyring to set a task in tasker to send an SMS to a specific number. this sms is used to pay my parking tickets. the thing is i will be adding this task to a scene or to zooper later, and the text i want to send changes from time to time.
the body of the message is "plate number, categoy, number of hours".
i have 2 plate numbers (mine & wife), there are 2 categories (prime & standard) and number of hours is capped at 8 hours
so it would look like "111AE S 8" or "452RT P 2"
is there a way i can make tasker ask me if i want to send sms for prime or standard location and how many hours?
my initial thinking was to have a scene in tasker that shows me 3 drop down menus for the 3 items (plate, cat. & hours) and then the send button that combines all 3 drop downs. is this possible? or any other way?
thanks
Set a variable, %whichtopay and then always pay %whichtopay but set %whichtopay to whatever u want.
Put a widget, that pops up a list, and when you tap the list, it sets the %whichtopay variable to whatever you clicked then disables itself.
Yah we good bruh

Can Tasker answer & immediately hang up to effectively block unwanted calls?ll

In the past, there was a root-assisted app Call Master that was able to block calls & prevent them from going to VoiceMail by hanging up one second after the call was taken, this prevented people being able to leave (say they left) a msg.
That was back in the old days of OS 4.2.x, now in 7.1x, th OS can block the call from needing to be answered, but it still goes thru to voicemail.
I don't know much abt this most recent version of Tasker, tho I played with it a bit when Tasker first care out yrs ago- so is someone knows of a way to do the answer/immediate hangup w/Tasker, I'll need detailed, newbie level instructions - pleaseā€¦
I miss being able to have the fone prevent a call fm getting to voicemail.
TIA, oldwolf
I don't know if that's possible but you can configure which calls go to voicemail natively as far as I know. So if blocked calls are handled as rejected calls you can configure to not pass them to voicemail in your phone / dialer settings
In short, yes. Just use an "end call" action. The trick is identifying the call to act on. Not in your contacts is one way. You could also add unwanted numbers to a single contact (e.g. Ignore) and act on that contact.
Abe & ktmom, thanks for your replies, but as I said, I need complete newbie level instructions on the Tasker side. @abe, I know how to get calls to voice mail- but how & where do I get blocked calls to become rejected calls in dialer settings?- I've been using a 3d party dialer forever, so I'm not familiar w/native dialer.
@ktmom, having used Call Master, I've got the theory abt how to ID calls to block/reject as 'not on contacts list, or an ignored group; & thanks for the tip on 'End Call'; but I'm still a Tasker newbie, pls walk me thru the steps, like I never saw Tasker b4, most recent version is beyond anything in 1st release.
TIA all, oldwolf
Start by installing the demo from the tasker website (if you don't have it). Leave it in beginner mode. Add a profile (plus sign bottom right) -> event -> phone -> phone ringing -> define the incoming caller. Play with this to figure out how best to meet your needs. Maybe start by blocking a specific caller in the journey to learn.
You'll then be prompted to provide a task. Give it a name (e.g. Block call). Then add an action -> phone -> end call.
Reading through the tasker wiki available on the developer's website will give you ideas and help the learning curve.
If you have no programming experience, this won't be a quick learning curve, but the task you're looking for is straight forward and amongst the simplest.
Teach a man to fish.....
Is there a consensus for Nougat?
I find many complaints about blockers no longer being able to hangup. My favorite Advanced Call Blocker will no longer do it. None that I try do it even though they claim to.
The hardest part is without a doubt to distinguish the calls. An idea could be to use an app which looks up the number. The one I use sends out toasts reading "spam". I have Autoinput register them for me. Of course, there's a lot of unwanted calls still getting through since sellers use private numbers or new numbers not yet widely identified as telemarketing.
eried1 said:
The hardest part is without a doubt to distinguish the calls. An idea could be to use an app which looks up the number. The one I use sends out toasts reading "spam". I have Autoinput register them for me. Of course, there's a lot of unwanted calls still getting through since sellers use private numbers or new numbers not yet widely identified as telemarketing.
Click to expand...
Click to collapse
Can you use Tasker to answer & hangup on Nougat?
That is the question, can it function?
Then one could work on a blocker that will keep unwanted VMs away.
As I said in post #3, you just use the end call action.
Anyone have a profile or Tasker made app to share?
ktmom said:
As I said in post #3, you just use the end call action.
Click to expand...
Click to collapse
Have you tested the End Call action from a profile? I've tested End Call on the prior version of Tasker and on the current version, and the action doesn't seem to work when called from a profile. On my phone, End Call in Tasker works fine when running the task during testing inside the task area, but Tasker's End Call does not actually work when the task is called from a profile. That functioning had been reported in the Tasker development area a long time ago, and apparently it was never fixed, since my phone worked the same as previously reported. On Nougat I was able to use the End Call task in Secure Settings with SuperSU to actually end a call using Tasker. Secure Settings hasn't been updated in a long time, so I used the following to get Secure Settings to work with SuperSU. Anway, as far as I could tell, End Call seems to be broken in Tasker.
https://forum.xda-developers.com/ap...ersu-v2-05-t2868133/post68700891#post68700891
I've been using it for years within a car mode task. Across multiple devices and tasker versions.
Interesting, maybe it just depends on the phone or something OS related. End Call in Tasker doesn't seem to work on the Pixel with Nougat or Oreo, and there were a number of similar comments online, so I thought the way my phone worked might have been common.
aviwdoowks said:
Can you use Tasker to answer & hangup on Nougat?
Click to expand...
Click to collapse
I know Secure Settings can hang up a call on my phone with Nougat rooted using SuperSU on Tasker, and the Secure Settings information also indicates there's an answer task in Secure Settings, so it's probably possible.
I have a profile, that blocks calls, but I have set it up to block calls from private, blocked, and anonymous callers. it will ring once and hang up the caller. I haven't figured out how to stop it from going to voicemail though.
Harry Tuttle said:
I have a profile, that blocks calls, but I have set it up to block calls from private, blocked, and anonymous callers. it will ring once and hang up the caller. I haven't figured out how to stop it from going to voicemail though.
Click to expand...
Click to collapse
Would you care to upload it?
PMs here do not allow attachments.
Pretty basic, the events are: PHONE RINGING+INCOMING CALL
For the numbers I've used: 0/private/blocked/unknown/anonymous or any specific numbers you want!
For the tasks CALL BLOCK
with the NUMBER MATCH being the the previous mentioned private, blocked...
Next is END CALL, which basically ends the call.
I have a NOTIFY. That puts an icon in my status bar, and a CALENDAR INSERT that puts it into my calendar.
It will block calls but it will ring one-time and disconnect the call, I've tried to silence the ringer by adding a nite but wasn't successful.
Apologies for resurrecting an older thread, but a few minutes ago I just worked out how to do exactly what the OP asked: answer and immediately hang up to effectively block unwanted calls.
I've created a rudimentary answer-and-hang-up call blocker, in Tasker, on Oreo, on a Sony Xperia X Compact, which is not rooted. I don't yet want to root my phone because Sony still provides monthly OS updates, I don't object to the Sony UI, and skvalex's Call Recorder works happily on this non-rooted phone. Once Sony turns off the update tap, then I'll investigate rooting it.
I cannot vouch that my experience will work for everyone on every device. All I can say is, it works for me. If it doesn't work for you, tinker with the various options to see if it can be made to work on your phone.
I don't want to reject calls, because then they go to voicemail and I can't be bothered with the effort of calling my voicemail to delete them. Instead, I want to answer the calls and then hang up, so there's no voicemail to handle. On my phone, the End Call task doesn't cancel the unanswered call; it sends it to voicemail.
I also want wildcard blocking because scammers often spoof caller IDs from area code prefixes which simply don't exist in the UK. I want to block all calls from fake area codes.
Extreme Call Blocker used to do both answer-and-hang-up and wildcard blocking, and was well worth the low purchase price. Unfortunately, it no longer does what it's supposed to do. The app hasn't been updated since 2016 so my suspicion is that newer versions of Android have changed things which ECB relied on. In addition, the developer's domain expired a month ago, so I'm not holding out much hope for an update to the app.
Call Control does have an answer-and-hang-up feature, which works as advertised, but the wildcard blocking does not work. At least, not on my phone. Perhaps it works for other people.
I tried a few other blockers but they all seemed to send the callers to voicemail. I got bored of testing call blocking apps at this point and figured I'd create my own.
So that's the introduction. Now on to the how-to.
This requires two apps, both of which are paid-for (but definitely worth the couple of quid asking price):
Tasker
AutoNotification
In Tasker:
Create a profile based on the Event "Phone Ringing". Add the number blocklist to the optional Caller field, using wildcards if required (for example 020* will block all calls from London). Use / as a separator, e.g. 020*/01234*/0870* etc.
Add these Tasks:
Task -> Wait -> 1 second (adjust timing for your preference)
Plugin -> AutoNotification -> Query (Configure the Apps section to intercept notifications from Phone.)
Plugin -> AutoNotification -> Actions (Configure the Intercept Action ID with the appropriate variable from the above Query. On my phone it's %anbutton2action() - yours may well differ.)
Task -> Wait -> 2 seconds (as before, adjust timing for your preference)
Phone -> End Call
It's not elegant, and requires manual updates of the Caller data in the Tasker Event, but it does what I want it to do.
If someone wants to update Extreme Call Blocker, or fix the wildcard handling of Call Control, then I'll ditch this in a heartbeat. But for now it meets my needs (and hopefully those of the OP, too).
Some additional background: In the UK (and maybe elsewhere), callers pay the termination fee to call a mobile phone, unlike in the USA and Canada where the recipient pays the termination fee. I'm in the UK so I like to answer the calls and hang up, so that the scammers get charged. Or, whoever is providing services to the scammers gets charged. Either way, if enough people do this, and the aggregate monetary cost is significant, then someone might take action to cut the scammers off.
It's a slim hope, I know, but you do what you can, right?
This morning I refined the tasks, to reduce the distraction from the phone ringing and hanging up.
This is now my current task list:
1. Audio -> Vibrate On Ringer -> Off (this does not always kill the vibration for every call, but it catches most - I suspect a timing issue)
2. Variables -> Variable Set -> Name %RingerVolume To %VOLR (save the current ringer volume level)
3. Audio -> Ringer Volume -> 0
4. Alert -> Flash -> SCAM - DO NOT ANSWER (for those times when I'm looking at the phone when it rings, or notice any vibration)
5. Task -> Wait -> 1 second
6. Plugin -> AutoNotification -> Query (Configure the Apps section to intercept notifications from Phone.)
7. Plugin -> AutoNotification -> Actions -> %anbutton2action() (Configure the Intercept Action ID with the appropriate variable from the above Query. On my phone it's %anbutton2action() - yours may well differ.)
8 Task -> Wait -> 2 seconds (as before, adjust timing for your preference)
9. Phone -> End Call
10. Audio -> Ringer Volume -> %RingerVolume (restore the previous ringer volume level)
11. Audio -> Vibrate On Ringer -> On
---------- Post added at 10:48 AM ---------- Previous post was at 10:47 AM ----------
http://tasker.dinglisch.net/userguide/en/matching.html gives some additional advice for pattern matching against callers, including a link to a very comprehensive regex reference: https://developer.android.com/reference/java/util/regex/Pattern
I could block fake London calls with 0201*/0202*/0203*/0204* and so on, but regex offers a much more efficient way to do it: ~R^020[0-69]
I'm aware that Ofcom inexplicably believes that 020 3xxx xxxx is a valid number range for London, but I've yet to encounter a reputable company which lowers itself to using 020 3xxx xxxx numbers. In my experience they're the preserve of fly-by-night outfits and scammers. So into the blocklist they go.
What is the difference in tasks "End Call" and "Block Call" and why the former does not ask for the number while the latter does?
In my experience the "block call" does not work, and the "end call" might ring the ringer once (or at times not at all) and then send the call to voicemail.
I would rather have it to NEVER ring and NOT send it to voicemail.
Suggestions?
drgkt said:
What is the difference in tasks "End Call" and "Block Call" and why the former does not ask for the number while the latter does?
In my experience the "block call" does not work, and the "end call" might ring the ringer once (or at times not at all) and then send the call to voicemail.
I would rather have it to NEVER ring and NOT send it to voicemail.
Suggestions?
Click to expand...
Click to collapse
If you want the phone to never ring, use whatever call blocking feature your service provider offers. It will be impossible for an on-device app to always prevent a ring.
From the information button on "block call" (? In a circle in the action screen)
"Call Block
Block outgoing calls to the specified matched number(s).
If no Number is specified, all calls will be blocked.
If Info is checked, all diversions and blocks will be displayed after the action.
To stop blocking, use Call Revert."
End call doesn't need a number because it's an action. You determine what calls to end through the profile then run a task with an end call action.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini

Track commute in calendar (with popup for inputting details)

Hello. I am a beginner user of Tasker with a few profiles made and working. But I need help on this one. I want Tasker to (1) detect I am going from (anywhere in) my city to (anywhere in) a neighbor city where I work sometimes a week; (2) recorded start time; (3) recorded arrival time; (4) created a pop-up/dialog asking me for details (free text); and finally (5) create an event in a calendar with that start and end times, with the start place as its place, and with my free text as details.
How can I do this?

Categories

Resources