yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] strictlyrude27:
I'd like to enable GPS only when running Maps and Nav, and disable it otherwise. It's pretty easy to set this up, but here's a caveat:

I've got Handcent SMS installed and use the popup notification feature. I've noticed that when I'm in Nav and a text message comes in, it disables the GPS. Nav then complains that GPS signal is lost and offers to go to the settings page to turn it back on. If I just sit at that window it'll regain GPS signal but that popup won't go away - the only way to start using Nav again is to exit entirely and reenter.

Any ideas how to keep the GPS on when Nav is running at all (but not the foreground task)?

EDIT: I figured it out! It took a while since apparently closing the popup notification isn't considered exiting the app. Anyhow:

Profile 1

System Event: Received SMS *,* (receive from any sender, any message body).

Entrance Task: Variable Set %SMSRCV = on.

Profile 2

System Event: Variable set %SMSRCV == on

Entrance Task: Wait 3 seconds; variable set %SMSRCV = off

Profile 3

System Event: Navigation app

Entrance Task: GPS On

Exit Task: Stop if %SMSRCV == on; GPS Off. (Stop will kill the task immediately - think of a break() statement in C.)

So when you receive a text (profile 1), %SMSRCV gets set. Handcent SMS will pop up, putting Navigation in the background. Profile 3's exit task then prevents Navigator from shutting off the GPS, and profile 2 resets the flag to await a new text message.

Of course, the safest way to do this is to have the phone read you the text. Heh.

Hope this helps someone!
[Nexus One Themes and Apps] fubaya:
This is an awesome app. I haven't had time to delve into it deeply yet, but here's what I have so far.

Turn on GPS when I open any of my GPS-using apps and close it when done.

Pop up a menu of all the apps I may want to use headphones with when the headphones are plugged in.

Run a couple scripts at boot using the "Locale Execute" plugin. It looks like this could be done natively with Tasker, but the scripts are in /system/bin, Tasker only works if they're on the sdcard and I don't want to junk up my sdcard.

I also use it to work with a couple scripts I run at home every 15 minutes. One sends a SMS if my home IP changes. I use tasker to take the new IP and put it in a file and call that file with any scripts I use to connect to my home computer. End result, I don't have to hard-code the IP and, if it ever changes, Tasker automatically updates it.

The second is a perl script for weather I got from somewhere else which takes a specified location, draws a custom sized box around, downloads radar data from weather.gov and can detect if there is any precipitation in that box. I set it up to run on a cron and send me an SMS if it goes from "clear" to "precipitaion detected." When that SMS comes in, I use Tasker to download a radar map from my local news station's website and display it. End result, any time rain gets within 10 miles of my house or work, I get a warning and can glance at the image to see what's up without opening a weather app.
[Nexus One Themes and Apps] crazyg0od33:
I know this is probably the easiest task to set up, but I am having trouble getting my phone to turn on wifi when at my house. I have two profiles running, the first is set up with "wifi near"->my network->wifi turn on (wifi near is set to wifi toggle), and my second is wifi connected->(exit task)wifi off. The issue I am having is, whenever I shut my screen off, even at home, it shuts the profiles off. I cant seem to get them to reactivate in my notification tray. I tried to shut tasker off, then on again so it restarts, but it still wont activate the profile.
[Nexus One Themes and Apps] OrganizedFellow:
SIMPLY EFF-ing INCREDIBLE!

:)

amazing how many uses Tasker has.

and I only use it to auto-update Facebook, ahaha.
[Nexus One Themes and Apps] crachel:
Have you considered a router (dlink for example) that supports dynamic dns?

anymore details you could give on this would be greatly appreciated!
[Nexus One Themes and Apps] fubaya:
I think my router could but it's never been that important. My IP only changes every few months and I can usually live without it until I get home anyway. Plus this way is free and simpler.

I should note, the perl script runs on the computer, not the phone. Reading my earlier post, I see I wasn't clear about that and hope I didn't ruin anyone's hopes.

Anyway, yeah, check out the link in my signature for my blog 'o' useless crap. That is halfway down on my most recent post. That post has the Tasker setup info, which is simple, and a link to another post I made last year about the perl script. It has a link to the author's page but let me know if you need any help. I only use Linux though and have no clue about anything when it comes to windows or mac.

I left the notification method up to the reader, but I use ATT and can send an email to PhoneNumber@txt.att.net and get it as an SMS on the phone. That's how I send the notification from my computer. Other carriers usually have a similar address.
[Nexus One Themes and Apps] LevitateJay:
Hey does anybody know a way I can set a variable for everytime my music is playing? I'm trying to setup a conditional pause on a bluetooth profile but I can't find any reliable way to check if music is currently playing or not!
[Nexus One Themes and Apps] TurboTsi:
I have this set up as a New --> Location, then in the task edit screen, I pressed the "+" button on the bottom left, selected Net and selected WiFi, set that to On and that was it. This works pretty good for me. When I leave my apartment it will detect it when it polls the gps and turns off the WiFi.
[Nexus One Themes and Apps] lionsson:
I found that turning WiFi on by location wasn't 100% reliable and it used more battery, so this profile is 100% reliable and it uses less battery.

This profile turns on WiFi every 4 minutes for 10 seconds and them disable it, but if connected to a know hotspot it will leave WiFi on until disconnect, once disconnected it will start the cycle again.

PROFILE 1 CONTEXT

State: Wifi Connected

ENTER TASK

WiFi On

Variable Set, %CON to 1

Flash text, WiFi Connected

EXIT TASK

Variable Clear, %CON

Flash text, WiFi Disconnected

Wait 2 seconds [If Not Set %WAIT]

WiFi Off [If Not Set %WAIT]

Flash text, Turning WiFi off [If Not Set %WAIT]

PROFILE 2 CONTEXT

Time: Repeat: 4 minutes (no From or To)

Variable Value: Not Set %CON

ENTER TASK

Variable Set, %WAIT to 1

Wifi On

Flash text, Checking for WiFi connection

Wait 10 seconds <---- your can add more if necessary

Wifi Off [If Not Set %CON] <----in case you connect during the 10 seconds

Flash text, No Wifi connection found [If Not Set %CON]

Variable Clear, %WAIT

If your N1 doesn't auto connect to your netwok this profile will not work for you.

The "Flash text" is optional, but if your new to tasker it help to flash what tasker is doing.

You can remove them once it's working for your. I tent to leave them on.
[Nexus One Themes and Apps] Webreaper:
Perfect! This is exactly what I want. I've found my N1 doesn't connect to my wifi reliably because of the bug in Froyo, so was about to write a Tasker script which loops round, disconnecting and connecting wifi until it successfully connects. But you've done the work for me.

I'll just put an if statement so this only gets run when I'm at home. :)
[Nexus One Themes and Apps] lionsson:
Check this out.

I use this Profile to connect to my car stereo via bluetooth.

[YOUTUBE]fL5kTzd6F6U[/YOUTUBE]
[Nexus One Themes and Apps] -=HOLLYW00D=-:
i was curious if anyone would mind sharing how to be notified with the default notification sound ever minute if there's a missed call or sms event.
[Nexus One Themes and Apps] strictlyrude27:
I would use one profile to set a flag upon missed call or SMS; another profile with your SMS or call log apps to reset that flag. Use a third profile to beep every minute while those flags are set.

Profile 1

Context: Event->Phone Event->Missed Call

Action: Variable->Variable Set->%MISSEDCALL to 1

Profile 2

Context: Application->Call Log

Action: Variable->Variable Clear -> %MISSEDCALL

Profile 3

Context: Variable Set->%MISSEDCALL

Actions: (1) Alert->Notify Sound-><your notification sound>. (2) Tasker->Wait 60 seconds

You'd make similar profiles for your SMS.

Note that this is untested and you likely will need to tweak this a bit as you see fit.
[Nexus One Themes and Apps] -=HOLLYW00D=-:
thanks strictlyrude27, i'll give it a shot. any idea why the following isn't working for me? i'm testing by calling my phone, from another, and hanging up. does absolutely nothing:

profile 1

Context: Event->Phone Event->Missed Call

Tasks:

1. Variable Set

Name %vCOUNTER To 0

2. Wait

Seconds 10

3. Variable Set

Name %vMISSEDCALL to On

If %SCREEN ~ off

4. Variable Set

Name %vMISSEDCALL to Off

If %vCOUNTER > 20

5. Wait

Minutes 3

If %vMISSEDCALL ~ On

6. Notify Sound

Title Missed Call

If %vMISSEDCALL ~ On

7. Variable Add

Name %vCOUNTER Value 1

8. Goto Action

Number 4

If %vMISSEDCALL ~ On

profile 2

Context: Event->Display Event->Display Unlocked

Tasks:

1. Variable Set

Name %vMISSEDCALL To Off

i basically copied the above from the following link and changed it to sound notification instead of vibrate:

http://tasker.wikidot.com/notificationpulse

the only thing that doesn't compute for me (besides it not working) is the %SCREEN variable. is that a fixed variable?
[Nexus One Themes and Apps] strictlyrude27:
You could try a longer initial wait time? Perhaps the 10 seconds is expiring while the phone's screen is still on after the missed call, in which case %SCREEN == "on" and the loop never runs.

%SCREEN is a built-in variable, and is set to "on" when the screen is on, and "off" when the screen is off.
[Nexus One Themes and Apps] LevitateJay:
Anyone can help?? Setting a variable when the music application runs doesn't work as it seems to stop running when you turn off screen or go to another application even though music is still playing..
[Nexus One Themes and Apps] pongalong:
I have something similar but I use network location to set %NEARWIFI and cycle the wifi on/off only when it's set.
[Nexus One Themes and Apps] pongalong:
Were you able to manually connect to a bluetooth device or did it just auto-pair when you enabled your bluetooth. As far as I know the N1 only auto-pairs with HSP (headset) profile devices. Looks like you're using a Sony that is also a headset. Let me know if otherwise because I'd love to be able to manually connect.
[Nexus One Themes and Apps] myth90045:
Enable GPS when turning on Navigation

I was wondering if you could help me. I picked this app up last night and tried it for a bit.

my first task was to have gps turn on when I open the navigator app.

However, when I do that, the navi app will turn on, but it will pop up a message saying GPS in not enabled. Enable? If I hit ok, it will take me to the connections page.

If I dont hit ok, the navi in the background will load and the GPS will enable, but I can not enter a location because of this pop up.

SO is there a way I can do this without having the Message pop up?

I created a profile for my 4square where I enter that app and the gps will turn on. But I can not seem to get it right for the Navigation. Any help would be greatly appreciated!!
[Nexus One Themes and Apps] SilentSummer:
The second "/" was missing. Now it got a bit further.

I have the Remote directory set to "//WHS-1/Users/Name/EVO 4G/Backup/", however one of the lines shows "rsync: mkdir "//WHS-1/Users/Name/EVO" failed: file exists.

Not sure why it didn't go the full path specified.
[Nexus One Themes and Apps] crachel:
remove the trailing "/" on your Remote Directory and make sure that dir "Backup" already exists

also i suggest appending "--exclude Android --exclude .android_secure" to your Additional rsync options
[Nexus One Themes and Apps] SilentSummer:
Thanks, that got rid of the error about .android_secure. However removing the trailing "/" didn't seem to help at all.

It doesn't seem to get to the full path I have listed. Stops at "EVO" vs going past "EVO 4G"

Edit: Didn't seem to like spaces in the path name. I renamed all the folders so they don't have spaces and it works great now!

Thanks for all the help crachel!
[Nexus One Themes and Apps] crachel:
I would try to rename the dir to EVO4G with no space.. you might be able to escape the space character somehow to leave the dir as EVO 4G, I just wouldn't know how to do that
[Nexus One Themes and Apps] waydownsouth:
Oops, my bad :o sorry

Seems tags mangle market:// links... eve... all sorted... useful info crachel... thanks!
[Nexus One Themes and Apps] D200P13:
i was hoping that someone could make me a guide to be used for many contexts, night/driving/school/busy. i would love it if...

-ALL the sounds turned off but had vibrate and incall to be medium or low.

-sends automatically an SMS saying "I'm *PROFILE TITLE* right now. I will get back to you as soon as possible." to BOTH missed calls AND reply to SMS.

-with the SMS feature, send 1 text and have either 1minute to 5minute between sending another to prevent spamming, would not be cool if it ping ponged sms's back and forth.

-and an optional, have like 3 seconds of ringing then auto reject the call if the profile is active.

that would be a life saver!
[Nexus One Themes and Apps] nyx528:
This sounds like you need a couple of profiles:

1. Profile to activate the sounds settings automagically or, if you want to activate the sound settings manually, just a task with the sound settings.

2. Create a variable for that sounds settings that is set when they are active. (I suggest adding it directly to the task/profile that sets the sounds for you)

3. Profile for how to respond to texts when those sound settings are active using the variable you created.

Sound about right?

I can give you a step-by-step if you need it, but I'll need more info from you.

- sent from my HTC Evo "Seafone" using Tapatalk
[Nexus One Themes and Apps] D200P13:
that would be great. i can post my cheap setup but its a complete mess and a very minimal of what i posted above. i have 1 profile for time (and sometimes days of the week) that has the task for the sounds off. it also has a cool say that tells me its been activated/deactiveted (i like the phone to talk). then i have another profile with the PACTIVE to have incoming calls * with the task for send sms.

the only problem with all that is ill have to make another 3rd profile just for night/driving/busy/school so am looking at 12 profiles total just for that. and its very basic. so if you could make something better/cooler let me know what you need from me.

oh yea. and since everyone in my house goes to sleep at 9pm and wakes up at 7am, receiving a call sends a text to the person even if i am awake and answer the call so that can be kinda annoying. i changed the incoming call * to missed call * for the night profile BUT it stays active even after night mode profile isnt active even though i have the PACTIVE the same. that is the only thing i changed on that and fails to work properly. not sure why. ill post it up in a few. im in college so gotta upload it then post it.
[Nexus One Themes and Apps] soloxp:
Can someone help me with 2 things?

1.	Setup a widget to show how many profiles are active.

2.	Mobile data widget…to change icons. I have wifi setup to change icons…but I just can get mobile data to change icon.

Thanks…
[Nexus One Themes and Apps] D200P13:
here is my noobish attempt. hope someone can do better with whats in the post above!

http://dl.dropbox.com/u/9802968/userbackup.xml

http://dl.dropbox.com/u/9802968/userbackup.xml.txt
[Nexus One Themes and Apps] tommo123:
i'm trying to disable the pattern lock when my phones connected to my wifi at home but it doesnt seem to work. tried the options in tasker itself (disable pattern lock etc) as well as via secure settings but the pattern lock is still there

any ideas how to do this?
[Nexus One Themes and Apps] crachel:
Have you enabled Tasker or Secure Settings as System Administrator?
[Nexus One Themes and Apps] tommo123:
i allowed tasker root when it asked for it (to kill an app). it's the only time the app requested it. secure settings has it from controlling gps
[Nexus One Themes and Apps] crachel:
not root, System administrator here:

Settings -> Location and security -> Select device administrators

is either Tasker or Secure Settings checked here? pretty sure this is your problem.
[Nexus One Themes and Apps] tommo123:
secure settings was but tasker wasnt. this works now via tasker. ta :)
[Nexus One Themes and Apps] phanmo:
Is there any workaround for this? I just came across your script, got all excited and tried it out.... no dice. :(
[Nexus One Themes and Apps] strictlyrude27:
No. Believe me, I tried. Koush made it impossible - again, he uses some kind of cryptography to ensure people don't write commands to recovery. I asked him about it on Google+ and he confirmed that writing to recovery is now closed to third parties.

You can still fire the action intent, but this requires you have ROM Manager Pro installed.

---------- Post added at 05:35 PM ---------- Previous post was at 05:08 PM ----------

There are a lot of things I want done when my phone enters wifi and is on the same network as my computer - regardless of what network that might be:

Turn on DeskSMS notifications

Enable wireless ADB

rsync my sdcard

???

So I needed a way to get my computer to tell my phone that it's on or off a network. I wrote the following script in Perl to send an SMS from my computer:

#!/usr/bin/perl

# laptopSMS.pl - send the SSID and IP address of the laptop to a cell phone

use strict;
use warnings;

use Email::Send;
use Email::Send::Gmail;
use Email::Simple::Creator;

my $addy = q{helloworld@gmail.com};
my $pass = q{mypass};
my $sms = q{myphonenumber@tmomail.net};

my $email = Email::Simple->create(
header => [
From => $addy,
To => $sms,
Subject => "$ARGV[0]", # contains "connected" or "disconnected"
],
body => "$ARGV[1] / $ARGV[2]", # contains SSID and IP, or "disconnected" and "disconnected"
);

my $sender = Email::Send->new(
{ mailer => 'Gmail',
mailer_args => [
username => $addy,
password => $pass,
]
}
);
eval { $sender->send($email) };
die "Error sending email: $@" if $@;

I'm using wicd to manage my laptop's network and run my pre/post-connect hooks.

My post-connect script contains the same script as in the link above; appended to it is:

if [ "${connection_type}" == "wireless" ]; then

ipaddr=`ip addr | grep inet[^6] | grep -v 127.0.0.1 | awk {'print $2'} | sed 's!/[0-9]*!!g'`
/home/cchu/bin/laptopSMS.pl "connected" "$essid" "$ipaddr"

fi

And pre-disconnect:

if [ "${connection_type}" == "wireless" ]; then
~username/bin/laptopSMS.pl "disconnected" "disconnected" "disconnected"
fi

Now I get a text message whenever my computer enters or leaves a network from an email address I trust:

"connected / SSID / IPADDRESS"

or

"disconnected / disconnected / disconnected"

At this point it should be pretty easy for you to get this stuff into Tasker!
[Nexus One Themes and Apps] D200P13:
i am still trying to setup an reply via sms to calls and text messages. all i need now is to setup a way send 1 sms to that number with a limit of 5minutes before sending another reply. i would also a notify of txts sent kinda like a log just to confirm a text was sent.
[Nexus One Themes and Apps] slewis1972:
Guys, needs some help. Installed tasker. Set a time, execute, plugin locale or even set to try and play a file but nothing is happening. I can see the task starting, but then nothing after this. Do I need to give it root access, if so, wheres the settings as dont recall it asking for it?
[Nexus One Themes and Apps] genuser:
It should ask for SU when it needs it. You can open SU and see what apps have permission and which are blocked.
[Nexus One Themes and Apps] crachel:
When I connect to my home Wifi, in addition to backing up my whole SDcard to my server, I'm now mounting SMB shares with the following,

insmod /lib/modules/cifs.ko
mount -t cifs //path/to/share /mnt/pt -o username=[user],password=[password]

(the location of cifs.ko is bound to be different across ROMs/Kernels)

Currently, I'm mounting to /sdcard/[share] the only problem being immediately after exiting the WiFi, my file managers are frozen trying to mount a share that is no longer available. I should probably move it to /mnt/[share] and see if that helps.

Anyways, pretty cool to get home and see my media immediately available. Also, check out CifsManager here --> http://xdaforums.com/showthread.php?t=756158 (or on the Android Market)

Edit: failed to mention I'm using "Secure Settings" plugin to execute the commands :)
[Nexus One Themes and Apps] D200P13:
can someone please help me make a profile for missed calls to send sms if profile 1 is active?
[Nexus One Themes and Apps] phanmo:
Has anyone figured out a way to pull contact photos? I have a Missed Call profile that creates a pop-up with last caller name and number but I'd like to add the contact photo if possible.

---------- Post added at 01:38 PM ---------- Previous post was at 01:15 PM ----------

You'll have to be a little more specific... Do you want to send the sms to the caller?

If you want to send a "Sorry I missed your call" type sms:

New Profile (Missed Call SMS) > Event > Phone > Missed Call (you can add a single caller, or any contact , or favorite contact here)

New Task > Phone > Send SMS > for the number put %CNUM (the last caller in), write any message you want, tick the box if you want the sms to show in your sms app

If you only want it to happen when Profile 1 is active, you could set a variable in the enter task for Profile 1 (e.g. %BLABLA set to 1) and then add a Variable Value context (Add Context > State > Variable > Variable Value > %BLABLA matches 1) to the Missed Call SMS profile. Make sure you clear the %BLABLA variable in the Profile 1 exit task or the Missed Call SMS will trigger EVERY time there is a missed call, not just when Profile 1 is active.
[Nexus One Themes and Apps] crachel:
Toggle night mode

I guess this will work on N1 since Chainfire3D is possible (I didn't know that)

Using Chainfire3D, toggle night mode using "Component Intent"

Class: eu.chainfire.cf3d.ToggleActivity

Package: eu.chainfire.cf3d

Cat:None

Target:Activity
[Nexus One Themes and Apps] Monsterfox50:
Sms Back-up

Hi, looked through this tread and a few others and didn't see anything on it. so sorry if its already been addressed.

Had Tasker for a while now just dont really have the hang of things.

I'm trying to use tasker and Smsbackup+ to back up all sms messages from a specific contact.

is this possible?

any help or insight is greatly appreciated thanks
[Nexus One Themes and Apps] rtwamski:
Does anyone know how to deal with captive portals? I have a WiFi enable when on campus but since there is a captive portal occasionally I have to log in again or in some cases I escape the range of the campus network and get kicked out. Is there a way to automatically log in to a website as an entrance task? I am new to tasker and currently RTFMing so any variable or code based settings need examples or step by step instructions. Thanks in advance.
[Nexus One Themes and Apps] nyx528:
Do you want this to happen like once a week or right when you receive the text? Does SMSbackup have a plugin for tasker?

- from my MoPho via Tapatalk
[Nexus One Themes and Apps] crachel:
SMSBackup+ does not have a Tasker plugin, it does however allow for intents (a forced backup).. but granular support of a particular contact is not possible AFAIK

edit: I may have spoke too soon, relevant info here --> https://github.com/jberkel/sms-backup-plus/#readme however, still don't think it's possible to single out a contact