Random message to your wife/gf - Tasker Tips & Tricks

So I get in trouble from wife sometimes cause I don't send message thoughout the day so I have come up with a taker profile to fix it.
Random Message (6)
A1: Variable Randomize [ Name:%waitmin Min:1 Max:179 ]
A2: Wait [ MS:0 Seconds:0 Minutes:%waitmin Hours:0 Days:0 ]
A3: Variable Randomize [ Name:%linenum Min:1 Max:20 ]
A4: Read Line [ File:Tasker/wifemessages.txt Line:%linenum To Var:%randommessage ]
A5: Flash [ Text:%randommessage Longn ]
A6: Send SMS [ Number:1234567890 Message:%randommessage Store In Messaging Appff ]
So the tasker is setup to fire every three hours.
**A4 you will need to make a txt file containing some message you want to send to your lover.
**A6 to your lovers number.
Let me know if I can improve this.
Josh

Dude I didn't test it.. But it's real innovative...[emoji106]

Thought about doing this myself!! Glad someone has already done the work.

Is there a way to do this with hangouts or kik or any other message app?
Sent from my SM-N920T using Tapatalk

any way you can get this to send a message to your girlfriend number 1, and send a different text to gfriend number two and three?

nickmax1 said:
any way you can get this to send a message to your girlfriend number 1, and send a different text to gfriend number two and three?
Click to expand...
Click to collapse
Sure. Just have it run again for each number.
I mean... No! You shouldn't have more that one gf at a time!
Sent from my LG G2 Mini using XDA Labs

Haha really cool thing!

samsHarvy said:
Haha really cool thing!
Click to expand...
Click to collapse
I love it keeps me out of trouble
Sent from my SM-G930F using XDA-Developers mobile app

WaterTrooper said:
Is there a way to do this with hangouts or kik or any other message app?
Sent from my SM-N920T using Tapatalk
Click to expand...
Click to collapse
I think autoinput will do it.

Josh Smith10 said:
So I get in trouble from wife sometimes cause I don't send message thoughout the day so I have come up with a taker profile to fix it.
Random Message (6)
A1: Variable Randomize [ Name:%waitmin Min:1 Max:179 ]
A2: Wait [ MS:0 Seconds:0 Minutes:%waitmin Hours:0 Days:0 ]
A3: Variable Randomize [ Name:%linenum Min:1 Max:20 ]
A4: Read Line [ File:Tasker/wifemessages.txt Line:%linenum To Var:%randommessage ]
A5: Flash [ Text:%randommessage Longn ]
A6: Send SMS [ Number:1234567890 Message:%randommessage Store In Messaging Appff ]
So the tasker is setup to fire every three hours.
**A4 you will need to make a txt file containing some message you want to send to your lover.
**A6 to your lovers number.
Let me know if I can improve this.
Josh
Click to expand...
Click to collapse
Wonderful idea!
I did the same. A serious problem will come the day the task will send the identical message twice.
Randomly it will happen. When your wife will unferstand that the romantic is made by tasker will she be happy?
I solved the issue setting in variables the last two random lines and checking that the current one is not equal to those.
My wife is happy...

pulcinella75 said:
Wonderful idea!
I did the same. A serious problem will come the day the task will send the identical message twice.
Randomly it will happen. When your wife will unferstand that the romantic is made by tasker will she be happy?
I solved the issue setting in variables the last two random lines and checking that the current one is not equal to those.
My wife is happy...
Click to expand...
Click to collapse
Oh. No way she wouldn't be happy lol.. Sometimes I blame the ohone if it's sends too.. Could you share your task at the end to check.
Sent from my SM-G930F using XDA-Developers mobile app

Happy wife - happy life! Case closed :good:

Anybody want to share the Xml?
Sent from my SM-G920V using XDA-Developers mobile app

Thanks
Josh Smith10 said:
So I get in trouble from wife sometimes cause I don't send message thoughout the day so I have come up with a taker profile to fix it.
Random Message (6)
A1: Variable Randomize [ Name:%waitmin Min:1 Max:179 ]
A2: Wait [ MS:0 Seconds:0 Minutes:%waitmin Hours:0 Days:0 ]
A3: Variable Randomize [ Name:%linenum Min:1 Max:20 ]
A4: Read Line [ File:Tasker/wifemessages.txt Line:%linenum To Var:%randommessage ]
A5: Flash [ Text:%randommessage Longn ]
A6: Send SMS [ Number:1234567890 Message:%randommessage Store In Messaging Appff ]
So the tasker is setup to fire every three hours.
**A4 you will need to make a txt file containing some message you want to send to your lover.
**A6 to your lovers number.
Let me know if I can improve this.
Josh
Click to expand...
Click to collapse
Thanks for the great task. I changed it up to meet my needs, but it was nice to have a good base to work off of. Keep up the great work.

Josh Smith10 said:
So I get in trouble from wife sometimes cause I don't send message thoughout the day so I have come up with a taker profile to fix it.
Random Message (6)
A1: Variable Randomize [ Name:%waitmin Min:1 Max:179 ]
A2: Wait [ MS:0 Seconds:0 Minutes:%waitmin Hours:0 Days:0 ]
A3: Variable Randomize [ Name:%linenum Min:1 Max:20 ]
A4: Read Line [ File:Tasker/wifemessages.txt Line:%linenum To Var:%randommessage ]
A5: Flash [ Text:%randommessage Longn ]
A6: Send SMS [ Number:1234567890 Message:%randommessage Store In Messaging Appff ]
So the tasker is setup to fire every three hours.
**A4 you will need to make a txt file containing some message you want to send to your lover.
**A6 to your lovers number.
Let me know if I can improve this.
Josh
Click to expand...
Click to collapse
Very cooooll thing

Thanks for this. Now before my son plays any games he has to get 3 correct spellings.
Buried the file nice and deep, and renamed it to minimise cheating too.

I absolutely love Tasker, but this is one time where I decided to make an app to make this “brain dead” simple, and add some easy-to-use smarts as well. The app is CommuniqAI and it can be used to help you stay in touch with anyone, not just loved ones. Details are at https://forum.xda-developers.com/t/...sms-calls-and-email-with-promo-codes.4337045/.

Related

[Q] Anyway to have Bluetooth turn on when Moto Assist Driving is activated?

I'm trying to find a way to turn on bluetooth automatically when Moto Assist driving starts up. I tried doing a basic set up with tasker but couldnt get it to work.
Anyone have any ideas or complex set ups that I could use with tasker or any other apps.
Thanks XDA!
I've wanted this ever since my first motorcycle headset.
seanrobot said:
I'm trying to find a way to turn on bluetooth automatically when Moto Assist driving starts up. I tried doing a basic set up with tasker but couldnt get it to work.
Anyone have any ideas or complex set ups that I could use with tasker or any other apps.
Thanks XDA!
Click to expand...
Click to collapse
joeld100 said:
I've wanted this ever since my first motorcycle headset.
Click to expand...
Click to collapse
Buy Tasker from the Play Store. It will allow you to set it up so when you open the Assist app it will turn on what ever you want including GPS and Bluetooth.
Well I want it to enable Bluetooth when the assist app kicks into driving mode. Since when it does it just adds a notification to the top and not actually opens the app it doesn't work. The point of the assist app is for it to kick it automatically so I don't want to click the assist app to get Tasker to work.
seanrobot said:
Well I want it to enable Bluetooth when the assist app kicks into driving mode. Since when it does it just adds a notification to the top and not actually opens the app it doesn't work. The point of the assist app is for it to kick it automatically so I don't want to click the assist app to get Tasker to work.
Click to expand...
Click to collapse
Buy a $0.5 NFC tag, program it to turn on bluetooth, and place it in your vehicle. There also might be away to get Tasker to do it automatically but I dont have an X yet.
Didn't think of the NFC tag. Great idea.
seanrobot said:
Well I want it to enable Bluetooth when the assist app kicks into driving mode. Since when it does it just adds a notification to the top and not actually opens the app it doesn't work. The point of the assist app is for it to kick it automatically so I don't want to click the assist app to get Tasker to work.
Click to expand...
Click to collapse
Not sure if you figured this out, but with Tasker select the Event context -> UI -> Notification
Then for Title put in: Moto assist detects you are driving
This is the profile. Then under task you can have it turn on bluetooth, open an app, start playing music, etc. I have it set to open waze and open play music and then start playing. I'm currently trying to figure out how to get it to automatically close waze and stop music when Assist driving stops.
thechilipepper said:
Not sure if you figured this out, but with Tasker select the Event context -> UI -> Notification
Then for Title put in: Moto assist detects you are driving
This is the profile. Then under task you can have it turn on bluetooth, open an app, start playing music, etc. I have it set to open waze and open play music and then start playing. I'm currently trying to figure out how to get it to automatically close waze and stop music when Assist driving stops.
Click to expand...
Click to collapse
Any luck on that last part yet? Im trying o get it to stop when closed too.
UncleOwenRIP said:
Any luck on that last part yet? Im trying o get it to stop when closed too.
Click to expand...
Click to collapse
The UI Notification is the way to go for detecting driving mode, but Tasker can't figure out when the notification is gone unless you're rooted and use a script to list the currently active notifications, which you would have to do repeatedly (not a good idea for battery life). The AutoNotification plugin should have the ability to detect cleared notifications at some point, but it doesn't do that right now.
The only thing I can think of for detecting the end of driving mode is by using a Bluetooth Connected profile and use the exit task to identify when you've walked away from the car.
FYI - I'm not so sure that detecting Assist's driving mode is going to be reliable way to go. Today, Assist still thought I was still driving several minutes after I got out of the car and walked into a nearby store. Also, if you're ever a passenger (someone else's car, a bus, train, etc) it will probably think you're driving.
I'm also interested in getting to work better. Anybody come up with any other tricks?
SanDiegoSteve said:
I'm also interested in getting to work better. Anybody come up with any other tricks?
Click to expand...
Click to collapse
Use the Event Context -> UI -> Notification to start Bluetooth when driving mode is detected. Then use the following to shut it off after you've left the car. It will switch Bluetooth off after it you have been disconnected from the device for 5 minutes.
Profile: Auto Off Unpaired Bluetooth (63)
Enforce: no
State: Not Bluetooth Connected [ Name:* Address:* ]
State: Variable Value [ Name:%BLUE Op:Matches Valuen ]
Enter: Anon (61)
Abort Existing Task
A1: Wait [ MS:0 Seconds:0 Minutes:5 Hours:0 Days:0 ]
A2: Bluetooth [ Setff ] If [ %PACTIVE ~ *Auto Off Unpaired Bluetooth* ]
Exit: Anon (62)
A1: Bluetooth [ Setff ] If [ %BLUE ~ off ]​
I just have tasker turn on BT whenever I'm not connected to my home/work wifi. Works pretty good for me. Sure, sometimes BT is on when I don't need it, but I like not having to mess with it.
Stay tuned, it is coming to Moto Assist ☺
I just leave Bluetooth on all the time. Haven't seen any adverse affects from doing so on my Moto X or my Note 2
Sent from my Moto X DE
imnuts said:
I just leave Bluetooth on all the time. Haven't seen any adverse affects from doing so on my Moto X or my Note 2
Sent from my Moto X DE
Click to expand...
Click to collapse
+1
annndrewww said:
Use the Event Context -> UI -> Notification to start Bluetooth when driving mode is detected. Then use the following to shut it off after you've left the car. It will switch Bluetooth off after it you have been disconnected from the device for 5 minutes.
Profile: Auto Off Unpaired Bluetooth (63)
Enforce: no
State: Not Bluetooth Connected [ Name:* Address:* ]
State: Variable Value [ Name:%BLUE Op:Matches Valuen ]
Enter: Anon (61)
Abort Existing Task
A1: Wait [ MS:0 Seconds:0 Minutes:5 Hours:0 Days:0 ]
A2: Bluetooth [ Setff ] If [ %PACTIVE ~ *Auto Off Unpaired Bluetooth* ]
Exit: Anon (62)
A1: Bluetooth [ Setff ] If [ %BLUE ~ off ]​
Click to expand...
Click to collapse
Very cool! Thanks! I may have to pull the trigger and get Tasker to check it out.
zammi said:
Stay tuned, it is coming to Moto Assist ☺
Click to expand...
Click to collapse
How do you know this? Links?
imnuts said:
I just leave Bluetooth on all the time. Haven't seen any adverse affects from doing so on my Moto X or my Note 2
Sent from my Moto X DE
Click to expand...
Click to collapse
I do this too, currently. I guess I was just curious if I could squeeze more battery life out of it if the BT radio was off when I don't need it.
Anyone else using the Tasker Notification Event on the Assist driving notification notice that it stopped working recently?
I had a similar profile working for awhile, but after updating a bunch of apps (Assist being one of them) it stopped working.
Did some experimenting, having tasker display all the notification events (*,*), and it seems like Takser doesnt see every notification. Assist, Music, Podcast Addict..to name a few that are not seen.
But it does see email, sms, and most other notifications.
Not sure what changed.
Using NFC in car for now, but i like having it connect automatically w/o having to take my motoX out of pocket.
SanDiegoSteve said:
Very cool! Thanks! I may have to pull the trigger and get Tasker to check it out.
How do you know this? Links?
I do this too, currently. I guess I was just curious if I could squeeze more battery life out of it if the BT radio was off when I don't need it.
Click to expand...
Click to collapse
ruprider said:
Anyone else using the Tasker Notification Event on the Assist driving notification notice that it stopped working recently?
I had a similar profile working for awhile, but after updating a bunch of apps (Assist being one of them) it stopped working.
Click to expand...
Click to collapse
I'm having the same problem, though I don't know when it stopped working. Assist was updated about two weeks ago, and I find it hard to believe I didn't notice the issue until now. However, the current release version of Tasker has the same issue, so I'm inclined to blame Assist.
While posting, I took the time to uninstall the updates to Assist, and Tasker can see the notifications now. It's definitely an Assist problem.
ruprider said:
Anyone else using the Tasker Notification Event on the Assist driving notification notice that it stopped working recently?
Click to expand...
Click to collapse
I checked my Tasker logs (debug to SD) - at the suggestion of Matt R in the Tasker Google Group, and found that the notification title (as Tasker sees it) is blank, causing Tasker to ignore the notification. This is obviously a change from previous behavior of the Assist app, and I have no idea why they would change it, unless they're moving from a soon-to-be-deprecated API to a newer one.
On the bright side, the AutoNotification plugin correctly recognizes the notification, which I assume is because it uses the newer Notification Intercept API. Also on the bright side, AutoNotification can detect when the "Driving" notification is cleared, so you can run a Tasker task when you stop driving.
UncleMike said:
I checked my Tasker logs (debug to SD) - at the suggestion of Matt R in the Tasker Google Group, and found that the notification title (as Tasker sees it) is blank, causing Tasker to ignore the notification. This is obviously a change from previous behavior of the Assist app, and I have no idea why they would change it, unless they're moving from a soon-to-be-deprecated API to a newer one.
On the bright side, the AutoNotification plugin correctly recognizes the notification, which I assume is because it uses the newer Notification Intercept API. Also on the bright side, AutoNotification can detect when the "Driving" notification is cleared, so you can run a Tasker task when you stop driving.
Click to expand...
Click to collapse
Does AutoNotification Lite recognize the notification or you had to purchase the paid version ?

[Question] Sending sms daily

Does anyone know if theres a way to send sms 1 minute earlier each day so day 1 its 9:56 day 2 9:55 day 3 9:54.
anthony001 said:
Does anyone know if theres a way to send sms 1 minute earlier each day so day 1 its 9:56 day 2 9:55 day 3 9:54.
Click to expand...
Click to collapse
Use a variable for the profile's time context. In the task, send the sms then decrease the variable by a minute.
ktmom said:
Use a variable for the profile's time context. In the task, send the sms then decrease the variable by a minute.
Click to expand...
Click to collapse
Is there a way to convert string to date or time? my initial variable is a string
anthony001 said:
Is there a way to convert string to date or time? my initial variable is a string
Click to expand...
Click to collapse
You don't need to convert the variable, just use the correct format. To send initial text at 09:56 am, then 1 minute earlier every day;
Initial value %SMSTime =9.56
Set variable %SMSTime-0.01 (check do maths)
tasker time context
If you want to send only on certain day(s), your profile needs a day context as well.
ktmom said:
You don't need to convert the variable, just use the correct format. To send initial text at 09:56 am, then 1 minute earlier every day;
Initial value %SMSTime =9.56
Set variable %SMSTime-0.01 (check do maths)
tasker time context
If you want to send only on certain day(s), your profile needs a day context as well.
Click to expand...
Click to collapse
i already disabled beginner mode but i cant see the field to set the variable on the time context. is this a bug or something?
anthony001 said:
i already disabled beginner mode but i cant see the field to set the variable on the time context. is this a bug or something?
Click to expand...
Click to collapse
Click on the double arrows...
anthony001 said:
i already disabled beginner mode but i cant see the field to set the variable on the time context. is this a bug or something?
Click to expand...
Click to collapse
When not in Beginner Mode, it's possible to specify a global user variable as the source of the From Time or To Time by clicking on one of the rotating-arrow icons
thanks guys. my only problem is that the next day it doesnt trigger. it only triggered once then after the succeding days it doesnt trigger
i have a var %CHECKBAL with value 8.42 and i use that on the time profile like you guys suggested. i put that var on the to and from. Do you guys know what is wrong?
In the profile properties (select the profile then hit the gear icon at top right), is limit repeats checked?
If you go to the variables tab, it's your variable shown and set as you expect?
There's always using tasker's logging to see if there's an error.
ktmom said:
In the profile properties (select the profile then hit the gear icon at top right), is limit repeats checked?
If you go to the variables tab, it's your variable shown and set as you expect?
There's always using tasker's logging to see if there's an error.
Click to expand...
Click to collapse
cant find the gear icon which contains the limit repeats option. i can only see the three dot. the three dot only has "help:this screen" and "userguide" option. Do you mean the repeat checkbox inbetween from and to?
anthony001 said:
cant find the gear icon which contains the limit repeats option. i can only see the three dot. the three dot only has "help:this screen" and "userguide" option. Do you mean the repeat checkbox inbetween from and to?
Click to expand...
Click to collapse
It sounds like you are inside the context setting. You need to access the profile settings. The profile is the contexts that trigger the task and the task to be triggered.
I'm on the latest beta so I guess maybe it's differing in the "stable" version (I don't remember). The user guide for profiles says "Long-click on the profile name to get profile options".
I've been running this profile for a week. It's been sending an SMS daily, 1 minute earlier each day. I'm posting it here going it will help you. For example, if you don't have "do maths" checked in the set variable action, the variable might get goofed.
Profile: Recurring SMS (37)
Time: From %CHECKBAL Till %CHECKBAL
Enter: SMStest (53)
A1: Send SMS
[*
Number:1234567890
Message:Testing repeating sms*
Store In Messaging Appff*
Continue Task After Errorn
]*
A2: Variable Set
[*
Name:%CHECKBAL To:%CHECKBAL-.01*
Recurse Variablesff*
Do Mathsn*
Appendff
]*
If it still isn't working, you need to check the tasker log.

[HELP][Noob] Unable to fetch GPS location

I know this might be one of the easiest tasks to perform but still I'm not able to get it through. I tried various methods and read some docs too still not helping.
I've created a profile when my GF sends some specific text below tasks is triggers to provide my GPS, speed and battery %
Please review my tasks below and tell me what am I doing wrong here.
Tasks - https://i.imgur.com/8qQ263R.png
Message is still sent as %LOC - https://i.imgur.com/GL1pgVk.png
You're trying to use a **very** old unsupported plug in (secure settings). I'm guessing you are on a newer release, so the gps action doesn't do anything. You need to switch location mode. Such as by using AutoTools.
AutoTools Secure Settings [ Configuration:Location Mode: HighAccuracy Timeout (Seconds):60 ]
I would go with Autotools to do this.

Wifi switching between 5 home networks

I have a large house on a farm. I have 5 wifi networks. 4 are in the house. There are two routers. Each has a 2.4GHz network and a 5GHz network. I also have a line going out to my shop from one of these routers. The line feeds an access point.
I want to make a task that QUICKLY switches to the strongest network of the 5. Id like the task to trigger when I get home from work. I thought these phones could sense wifi networks they are familiar with even when wifi was off. Can I tap into this somehow to trigger the task? I have tried auto connect and the task described in this YouTube video(https://youtu.be/5Y0csfH4h_g). This seems to work partially and sporadically. It's the best I have had. I have been chasing this one since I got this phone in November. If someone can figure this out we need to post it all over the internet! It seems like most of these are designed for switching between 2 networks, but don't work well when having to pick from multiple networks like in my scenario. There have been a couple other plugins mentioned such as this one: https://play.google.com/store/apps/details?id=ultimatesoftware.nw.SSIDSelector&hl=en. This hasn't been updated in years though, and the developer never replied when I emailed him. Someone please help.
Sent from my Pixel 2 XL using Tapatalk
TTT
You'll need Autotools. Here's description of the task:
ChgToBestWifi (2)
Abort Existing Task
A1: Perform Task [ Name:GPS On Priority:%priority+10 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stopff ]
A2: AutoTools Connectivity [ Configuration:Check Wifi Networks: true Timeout (Seconds):5 Continue Task After Errorn ]
A3: AutoTools Json Read [ Configuration:Simple Mode: true
Json: %atwifinetworks
Fields: ssid
Separator: , Timeout (Seconds):5 Continue Task After Errorn ]
A4: AutoTools Connectivity [ Configuration:SSID: %ssid Timeout (Seconds):10 Continue Task After Errorn ]
A5: Perform Task [ Name:GPS Off Priority:%priority+10 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stopff ]

Need help with Google Sheets API

I recently found a tutorial on how to use Tasker to take voice notes to save it to Google Sheets. I'm trying to make a different project that involves adding (and possibly renaming) new sheets to an existing SpreadSheet. I've tried everything possible (with my limited knowledge, of course) to get it to work after reading Google's documentation. But nothing has worked. Can anyone tell what I might be doing wrong.
A1: HTTP Auth [ MethodAuth 2.0 Client ID:%client Client Secret:%secret Endpoint To Get Code:https://accounts.google.com/o/oauth2/v2/auth Endpoint To Get Refresh Token:https://www.googleapis.com/oauth2/v4/token Scopes:https://www.googleapis.com/auth/spreadsheets Force Re-Authenticationff Timeout (Seconds):30 Username: Password: ]
A2: HTTP Request [ MethodOST URL:https://sheets.googleapis.com/v4/spreadsheets/%spreadsheetid/batchUpdate Headers:%http_auth_headers Query Parameters: Body:{ "requests": [ { "addSheet": { "properties": { "title": "Sample Title", "gridProperties": { "rowCount": 20, "columnCount": 12 }, "tabColor": { "red": 1.0, "green": 0.3, "blue": 0.4 } } } } ] } File To Send: File/Directory To Save With Output: Timeout (Seconds):30 Trust Any Certificateff Automatically Follow Redirectsff Use Cookiesff ]
iampunX said:
I recently found a tutorial on how to use Tasker to take voice notes to save it to Google Sheets. I'm trying to make a different project that involves adding (and possibly renaming) new sheets to an existing SpreadSheet. I've tried everything possible (with my limited knowledge, of course) to get it to work after reading Google's documentation. But nothing has worked. Can anyone tell what I might be doing wrong.
A1: HTTP Auth [ MethodAuth 2.0 Client ID:%client Client Secret:%secret Endpoint To Get Code:https://accounts.google.com/o/oauth2/v2/auth Endpoint To Get Refresh Token:https://www.googleapis.com/oauth2/v4/token Scopes:https://www.googleapis.com/auth/spreadsheets Force Re-Authenticationff Timeout (Seconds):30 Username: Password: ]
A2: HTTP Request [ MethodOST URL:https://sheets.googleapis.com/v4/spreadsheets/%spreadsheetid/batchUpdate Headers:%http_auth_headers Query Parameters: Body:{ "requests": [ { "addSheet": { "properties": { "title": "Sample Title", "gridProperties": { "rowCount": 20, "columnCount": 12 }, "tabColor": { "red": 1.0, "green": 0.3, "blue": 0.4 } } } } ] } File To Send: File/Directory To Save With Output: Timeout (Seconds):30 Trust Any Certificateff Automatically Follow Redirectsff Use Cookiesff ]
Click to expand...
Click to collapse
You can try in a different way. I am not sure if it is possible or not. But you can try google apps script.
read doPost or doGet function of apps script and SpreadsheetApp guide. there is quota limit. So do a google search first. and you can read this also https://stackoverflow.com/questions...et-in-a-google-sheets-with-google-apps-script

Categories

Resources