Location Task not working properly.


Last Updated:

  1. Akedos

    Akedos Member This Topic's Starter

    Joined:
    Oct 27, 2010
    Messages:
    5
    Likes Received:
    0
    Alright, I'm having an issue with a location task not working properly. I've tried a bunch of stuff to get it to work and I feel that it is likely a root issue, but not certain.

    Trigger:
    Battery Level 0-5%

    Task:

    Secure Settings: Configuration - GPS Enabled
    Net: Wifi - Set On
    Wait - 30 Seconds
    Get Location: Source - Any, Timeout 240 seconds
    Send SMS: To - (whoever)
    Message: "It is %DATE at %TIME. My phone is located at: %LOC Battery Level %BATT"

    Stop Location: Any
    Secure Settings: GPS Disabled
    Net: Wifi - Set Off


    The phone is rooted. It's a Razr Maxx. I have Helper installed with Secure Settings. I have GPS checked. The issue I get is the text that is sent looks like this:

    "It is 20-03-13 at 17.59. My phone is located at: %LOC Battery Level 5"

    Why isn't it getting a location with all that time available?
     

    Advertisement
  2. tatootie67

    tatootie67 Well-Known Member

    Joined:
    Oct 26, 2012
    Messages:
    94
    Likes Received:
    13
    What value is the %LOC returning? Look in your variables tan after you test the task
     
  3. Akedos

    Akedos Member This Topic's Starter

    Joined:
    Oct 27, 2010
    Messages:
    5
    Likes Received:
    0
    I'm not getting any variables listed in the variable tab actually.
     
  4. XplosiV

    XplosiV Master X is Watching You VIP Member

    Joined:
    Jun 10, 2010
    Messages:
    5,422
    Likes Received:
    1,969
    Why not just use "phone>cell near"?
     
  5. CodeMonkey

    CodeMonkey Well-Known Member

    Joined:
    Dec 13, 2008
    Messages:
    570
    Likes Received:
    110
    Try testing with GPS enabled and without using Secure Settings- %LOC is the default value of the variable when not populated so it looks as though the enabling of GPS is what's failing.
     
  6. BlackAzzy

    BlackAzzy Member

    Joined:
    May 11, 2013
    Messages:
    5
    Likes Received:
    0
    Mine is working fine on a Samsung Galaxy S3 GT-I9300 Rooted using AOKP Rom Milestone 1.
     
  7. BlackAzzy

    BlackAzzy Member

    Joined:
    May 11, 2013
    Messages:
    5
    Likes Received:
    0
    Profile:
    Event>Phone>Received Text - type:SMS, Sender:BLANK, Content:i9300 (my keyword)

    Tasks:
    1. Set GPS
    2. Wait 15 seconds
    3. Get Location - Source:Any, Timeout:120
    4. Variable Set - Name:%LOCATION, To:%LOCN, If:%LOC Ins't Set
    5. Variable Set - Name %LOCATION, To:%LOC, If:%LOC Is Set
    6. HTTP Get - Server Port: is.gd/api.php?longurl=http://maps.google.com/maps?q=%LOCATION, Timeout:60, MIME: Text/Plain
    7. Send SMS - Number: %SMSRF, Message: It is %TIME on %DATE. Your phone is located at %HTTPD (select for map) and the battery has %BATT percent remaining.
    8. Variable Clear - Name:%LOCATION
    9. GPS OFF
     

Share This Page

Loading...