1. Are you ready for the Galaxy S20? Here is everything we know so far!

tasker uses incorrect GPS location

Discussion in 'Android Apps & Games' started by strangedays75, Feb 19, 2016.

  1. strangedays75

    strangedays75 Newbie
    Thread Starter

    Been trying to learn Tasker so I started with a task on found online
    I created a task that grabs my GPS location and sends it to a Twitter feed every 10 min.
    I start the task and it posts while I'm out and about, then when I get to my destination (Locaton A) I stop the task.
    Later, when I'm somewhere else several miles away (Location B), I start the task and the first post it sends to the Twitter feed is the GPS coordinates from Location A. Then the next time post in 10 minuets is correct.
    My first thought was maybe having a GPS issue, but when I check my location or use an app that will manually post the GPS location to Twitter, then the Location is correct.

    any thoughts on how to make it post the correct location when I start the task?


    Location (3)
    A1: Get Location [ Source:GPS Timeout (Seconds):10 Continue Task Immediately:On Keep Tracking:On ]
    A2: Send SMS [ Number:40404 Message:Current Location
    http://maps.google.com/?q=%LOC
    %DATE %TIME
    Battery %BATT% Store In Messaging App:Off ]
    A3: Wait [ MS:0 Seconds:0 Minutes:10 Hours:0 Days:0 ]
    A4: Goto [ Type:Action Number Number:1 Label: ]
     


  2. With a real phone number this works for me ...
    Code (Text):
    1. BBBB
    2. A1: Get Location [ Source:GPS Timeout (Seconds):10 Continue Task Immediately:On Keep Tracking:On ]
    3. A2: Send SMS [ Number:(999)9999999Message:%LOCN
    4. %DATE %TIME %BATT Store In Messaging App:Off ]
    5. A3: Wait [ MS:0 Seconds:0 Minutes:10 Hours:0 Days:0 ]
    6. A4: Goto [ Type:Action Number Number:1 Label: ]
    ... Thom
     
  3. strangedays75

    strangedays75 Newbie
    Thread Starter

    thanks Thom,
    I tested this while driving around town yesterday and that's how I encountered the location discrepancy.
    I've change the GPS source from GPS to NET and to ANY, and get this result.
    Also the phone number you see in the code is the number used to post to Twitter via SMS from a Verizon phone.
     
  4. strangedays75

    strangedays75 Newbie
    Thread Starter

    I'm wondering if there is a way to null the previous GPS coordinate value before getting the new GPS coordinates.
    Im pretty new to this, but willing to learn.
     
  5. The approach to Tasker that I recommend ...

    Start out with something simple that works.
    Tweak it and see that it works.
    Keep tweaking it until you get it to the state that you want.

    There are many variables. Tasker is not perfect. Some capabilities have not been incorporated in Tasker. Experimentation is the only thing I can recommend.

    I have found GPS reception to be a little flakey as you move around.

    ... Thom
     
  6. lareya

    lareya Lurker

    If Tasker doesn't update with a GPS location, it will use the last location. Clear the GPS variable first, then get your location. You will vary in how long it takes to set GPS by location, so give ample time for connection.
     
    Thom likes this.
  7. strangedays75

    strangedays75 Newbie
    Thread Starter

    Ok im revisiting this project after moving to a new home.
    How do I clear the GPS variable begore it gets my current location?
     
  8. strangedays75

    strangedays75 Newbie
    Thread Starter

    Im probably not using the correct terminology. Im pretty new to Tasker and im not afeaid to say it is above my pay grade.

    As you can see in my profile posted above, im telling Tasker to get my current GPS location. Before it gets my current location i want to clear the GPS location value otherwise it im having the problem as stated above.
     

Tasker

Tasker Forum

net.dinglisch.android.taskerm

⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

READ MORE
February 15, 2020
Last Updated
4.4
Rating
1M+
Installs
Loading...

Share This Page

Loading...