Track commute in calendar (with popup for inputting details) - Tasker Tips & Tricks

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?

Related

[Q] contact/calendar.apk integration; ring profiles

There are 2 features I'd like make available. I am posting here to see if they've already been coded, and if not, some guidance on what i how to go about coding them (i have eclipse and the SDK for 1.6 all set up...i just need to know what native android files to modify (im guessing contacts.apk) to get the first item figured out, and then for the second item below, i'd like to see some sample code of how to set ring settings.
1) since most of our new calendar events are to meet with/call people in our contacts list, id like if the context menu for contacts could have a menu item added: Create Event. what would happen when selected is a new calendar event window would pop up, pre-populated with the contact's phone number in the Description field and their name in the Event Name field. the user could then modify these to add details. this mod would save us from having to go to the calendar and create an even to "call joe", only to have the reminder come up later and then have to navigate the contacts to find joe so we can call him. here, the event would have his number preloaded and could be clicked on (like a hyperlink) to load the number into the dialer
how do we hook into the contacts.apk file to make this type of mod? or, is the mod to be done some other way?
2) though we can select different ring tones for different contacts/groups, and we can also set different ring volumes/vibes, it would be nice to have a ring profile that would, say, only let the "family" group ring but stay silent for everyone else. this way, i can put the phone in this mode when going to sleep, but still be available for emergency family phone calls. this is much like the black list/white list app on xda for winmo.
Dude, stop double-clicking that Submit button. The mods are probably tired of deleting your double posts by now.
Moved To Dream Q&A

[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

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

How do I do this text-based task?

Hey guys, I'm trying to automate a task I do often for work. When I get a potential new customer, I receive a standard email with their information in a specific format. For example:
Name - x
Email - y
Phone - z
I am trying to figure out a way to interact with this body of text and automate it as much as possible. I would have to add a new contact with the name, and send out a standardized email as well as a text.
I haven't really made complex tasks like this, so I'm a bit lost as to where to start. I am rooted. I would also like to note that I'm using a proprietary email app (Blackberry Hub+ Inbox), so I think it may be easiest to start off the task by manually copying the body of the text and then somehow triggering the task.
Thanks in advance!
This project is actually a little complex, and it also interested me so, while I usually don't do this, here is a taskernet share.
Requires AutoTools to be installed because a webscreen is used. On install, you must edit actions 15 & 16 in the task. These are variables for the email subject and body.
The profile triggers when data starting with e.g. "Name - John Doe" is copied to the clipboard. Then a button pops up on the right side of your screen and when you tap it the information is entered into a new contact form that you can edit, cancel or save.
A second button becomes available which triggers the composed email action.
The buttons will time out after 30 seconds without triggering the associated task. You can also "fling" them away to dismiss.
The task is expecting each piece of information to be on a separate line like:
Name - John Doe
Email - [email protected]
Phone - (999) 999-9999
The labels for each line are used as variables in the task to identify the associated data. Therefore, the order does not matter. Though if "Name - " is not first, the profile will not trigger. You would need to edit the regex in the profile context.
If, for example, an address is on multiple lines, the task will need to be modified to handle that.
To limit the activation of this profile to only when the data is copied in a specific app such as an email client, add that app as a context in the profile.
The task is heavily commented.
Finally, I add my username into the profile and task names to help avoid the possibly of namespace collisions (when the imported project has the same profile, task or variable names as existing profile, task or variables). The -ktmom can be removed.

Categories

Resources