AutoLocation Variables show text (%...)

Discussion in 'AutoApps' started by Javier Mato, Jan 17, 2016.

  1. Javier Mato

    Javier Mato New Member

    Joined:
    Oct 14, 2015
    Messages:
    28
    Likes Received:
    0
    Hello. I have the trial version. I set a task in tasker with two actions, start autolocation location and start geofence. But then variables still in text (%... All of them)

    I checked location is on of course. If I look at the logs in autolocation app, it shows perfectly 'monitor started...' and returns the location and geofence perfectly


    Thanks
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance
     
  3. Javier Mato

    Javier Mato New Member

    Joined:
    Oct 14, 2015
    Messages:
    28
    Likes Received:
    0
    Of course
    Code (Text):
    P (60)
        A1: AutoLocation Location [ Configuration:Starting Location Monitor
    Update Type: Balanced Package:com.joaomgcd.autolocation Name:AutoLocation Location Timeout (Seconds):15 ]
        A2: AutoLocation Geofences [ Configuration:Starting Geofence Monitor Package:com.joaomgcd.autolocation Name:AutoLocation Geofences Timeout (Seconds):0 ]
        A3: Popup [ Title: Text:%allatitude
    %alupdatetype Background Image: Layoutopup Timeout (Seconds):5 Show Over Keyguard:On ]
    It's that simple. I just installed autolocation and I'm trying

    Thanks dev

    Sent from my Redmi Note 2 using Tapatalk
     
    Last edited by a moderator: Jan 18, 2016
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You need to check the "Get First location" option in A1 to get the location right away :) hope this helps
     
    Javier Mato likes this.
  5. Javier Mato

    Javier Mato New Member

    Joined:
    Oct 14, 2015
    Messages:
    28
    Likes Received:
    0
    Working! Sorry I have not tried before. Now it's perfect. Thanks a lot

    One quick question I can't find the variable that returns geofence name, does not exist?

    Sent from my Redmi Note 2 using Tapatalk
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    That will be available if you create a profile with the Geofence event condition :) then everytime you enter a geofence you'll get an event there and the task will be ran :)
     
    Javier Mato likes this.
  7. Javier Mato

    Javier Mato New Member

    Joined:
    Oct 14, 2015
    Messages:
    28
    Likes Received:
    0
    Understood
    Thanks again :)

    Sent from my Redmi Note 2 using Tapatalk
     
  8. guilhem31

    guilhem31 New Member

    Joined:
    Jan 22, 2016
    Messages:
    4
    Likes Received:
    0
    Hello,

    I don't know if I should open a new thread or use this one because I have exactly the same problem...
    I think I don't understand the logic of this plugin ^^ (English is not my usual language)

    Here is my profile export :
    Code (Text):
    Profil: Voiture (52)
        Priority: 8 Restore: no
        Etat: AutoLocation Activities [ Configuration:In Vehicle: true
    Ignore Tilting: true
    Ignore Unknown: true ]
    Entrée: Profil Automobile (13)
        A1: Si [ %PACTIVE !~ *,Voiture,* ]
        A2: CM Profiles [ Configuration:Automobile Paquet:com.mufri.cmprofiles Nom:CM Profiles Délai (Secondes):0 ]
        A3: Délai extinction écran [ Secs:0 Mins:2 Heures:0 ]
        A4: AutoLocation Location [ Configuration:Starting Location Monitor
    Retrieve First Location: true
    Expiration Time: 120 seconds
    Interval: 2 seconds
    Number Of Updates: 60
    Update Type: High Accuracy Paquet:com.joaomgcd.autolocation Nom:AutoLocation Location Délai (Secondes):3 ]
        A5: Attendre [ MS:0 Secondes:20 Minutes:0 Heures:0 Jours:0 ]
        A6: Flash [ Texte:Vitesse = %alspeed m/h Long:Activé ]
        A7: Si [ %alspeed > 5 ]
        A8: Processes started [ Configuration:com.waze;com.google.android.apps.maps Paquet:eek:rg.kc.tasker.processes Nom:processes started Délai (Secondes):3 ]
        A9: Menu [ Titre:Que Faire ? Image de fond: Agencement:IconAndTextMenu Délai (Secondes):10 Afficher par dessus la protection clavier:Activé Eléments:(3) ] Si [ %apprunning !~ true ]
        A10: Fin de si
        A11: Effectuer la tâche [ Nom:Screen Timeout Priorité:%priority Paramètre 1 (%par1): Paramètre 2 (%par2): Variable de valeur de retour: Arrêter:Désactivé ]
        A12: Fin de si
    A6 is a test .... and this test shows me : Vitesse = %alspeed m/h ... not my current speed.
    Any idea ?
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    @guilhem31 you can't get your speed like that unfortunately. It usually takes a few updates for the GPS to know what your speed is, and in that Task you're only getting one update. Maybe I should add an option to wait for speed to be available :)
    In the meantime you can setup a separate tasker profile with the "AutoLocation Location" event and in that task keep checking if the speed variable has a value. Hope this helps. Let me know if you need more assistance!
     
  10. guilhem31

    guilhem31 New Member

    Joined:
    Jan 22, 2016
    Messages:
    4
    Likes Received:
    0
    I'll try this solution and let you know if I'm still a looser ^^
     
  11. guilhem31

    guilhem31 New Member

    Joined:
    Jan 22, 2016
    Messages:
    4
    Likes Received:
    0
    *So I don't understand why I set the values "number of updates" "expiration " etc... In the task ? Whatever I configure it will give me only 1 update ?
    * really good idea to add this option :p
     
  12. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You need to get the updates in a separate profile. Are you doing that?
     
  13. MikeW

    MikeW Member

    Joined:
    Feb 16, 2015
    Messages:
    113
    Likes Received:
    9
    Don't know if it will help or not, but here's the documentation for getting speed in my Digital Dash project:
    http://mikesgeneralblog.blogspot.com/2015/06/digital-dash-documentation-part-6.html

    There's some other stuff wrapped up in that profile as well, but you should be able to strip that out pretty easily.

    The doc mentions a setup routine in another part of the project. Here's the link to that section:
    http://mikesgeneralblog.blogspot.com/2015/06/digital-dash-documentation-part-2.html

    The main AL reference is in line 24.
     
  14. guilhem31

    guilhem31 New Member

    Joined:
    Jan 22, 2016
    Messages:
    4
    Likes Received:
    0
    Thanks for all those explanations, Imanaged to make this work !!! :)
    I just misunderstood the basics of Autolocation monitors logic.
     
  15. MikeW

    MikeW Member

    Joined:
    Feb 16, 2015
    Messages:
    113
    Likes Received:
    9
    Glad you got it working.
     
    guilhem31 likes this.

Share This Page