My tasker profiles (continued)

Included page "clone:lonewolf2" does not exist (create it now)

Backup my phone - 02 May 2015 18:56

Tags:

I want my phone backed up every Saturday morning, that way I'm done for the week and ready for the weekend. Since my Tasker profiles are set to be checked every 10 minutes, I set the range to be a 15 minute window, thus allowing the profile to run no matter what time it is.

I prefer to copy the directories and files myself to one main back-up directory. Just makes more sense to me.


Profile

     Saturday
     from 01:00 - 01:15

Task

Copy Dir (From Tasker/ to backups)
Copy Dir (From DCIM/Camera/ to backups)
Copy Dir (From Pictures/ to backups)
Copy Dir (From Movies/ to backups)
Create Directory (backups/contacts)
Copy File (From 00001.vcf to backups/contacts)
BoxSync (configuration sync now) <-- free third party app for Box
Delete File (00001.vcf from the root directory)

Basically, this whole profile takes my phone, backs up each directory I specify to one central area, then uses the third party app (Boxsync) to put everything in the phone directory in Box. Now I don't have to worry about losing any data. Even if I do lose something, it's only lost since last Saturday.



UPDATE

I found a slightly better way on the Internet to move multiple copies of the .vcf contact file from the root directory

Profile

     Saturday + 01:00 - 01:15am

Task

Copy Dir (From Tasker/ to backups)
Copy Dir (From DCIM/Camera/ to backups)
Copy Dir (From Pictures/ to backups)
Copy Dir (From Ringtones/ to backups)
Copy Dir (From Podcasts/ to backups)
Copy Dir (From Music/ to backups)
Copy Dir (From Movies/ to backups)
List Files (Dir /storage/emulated/0)
     For (Variable %file & Items %files()
          Move %file To backups/contacts
     End For
BoxSync (configuration sync now) <-- free third party app for Box
- Comments: 0

Julian date - 30 Apr 2015 07:42

Tags:

  • I did not create this profile, I found it on the net after quite a bit of searching.

To get the current Julian date:

1. Create your task by adding a JavaScriplet
Code -> Javascriptlet

In the code section:
Date.prototype.getDOY = function() {
var onejan=new
Date(this.getFullYear(),0,1);
return Math.ceil((this-onejan)/86400000);
}
var today = new Date();
var daynum = today.getDOY();

I know Math.ceil looks weird, but it works

2. Say
Today's Julian date is %daynum.

3. Pop-up
Text: Today's Julian date is %daynum.

4. Profile status
Julian date set off (I turn off the profile since I only need to know once a day at work).
- Comments: 0

Locate (using SMS and Google maps) - 26 Apr 2015 19:19

Tags:

  • There are other locate profiles located in the tasker wiki, but this one works for me without giving me the Library of Congress as my location all the time. I have tested it considerably and it really works quite well now.

All profiles were created using Tasker (v4.6u2/u3) and Android v4.4.4.


Profile is named meeting, or something that most people won't look twice at.

Event - Received text (type any, sender is my wife).

I want my wife's phone as the only one who can send me this code so not just anyone can find me.


Entrance task is:

1. Get location (Source, GPS, timeout 100 seconds)
2. Variable set from %LOCATION to %LOC
3. HTTP Get (Server port will read: (all on one line)

is.gd/api.php?longurl=http://maps.google.com/maps/q=%LOCATION

4. Send SMS

send to whatever number you want. message should read as: I'm at http://maps.google.com/maps?z=12&t=m&q=%LOC

I have tested this out and it waits 100 seconds before sending my wife my phone's location, but she can hit the hyperlink in the next message and pulls up Google maps with my exact location. Really handy if I haven't called her in a while during travel and she's worried about me. - Comments: 0


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License