AutoTools (possible bug) Doesn't add time is value is a variable

Discussion in 'AutoApps' started by Javier Mato, Nov 7, 2016.

  1. Javier Mato

    Javier Mato New Member

    Joined:
    Oct 14, 2015
    Messages:
    28
    Likes Received:
    0
    [​IMG]

    In the picture you can see the task
    %A_H is a variable which is =2
    Problem is that when it returns the %atcalculateddate... It will show the current date, without the 2h addition

    It might be a bug. If I change 'add %A_H' to 'add 2', it works

    Thanks
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you add a flash action to confirm that it contains the 2 and nothing else? Using a variable or using the direct value should be the exact same thing :)
     
  3. Javier Mato

    Javier Mato New Member

    Joined:
    Oct 14, 2015
    Messages:
    28
    Likes Received:
    0
    Yeah sure :)

    [​IMG]
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Thanks!

    Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance
     
    Javier Mato likes this.
  5. Javier Mato

    Javier Mato New Member

    Joined:
    Oct 14, 2015
    Messages:
    28
    Likes Received:
    0
    Here you have... You might need it in English?

    Test (160)
    A1: Establecer variable [ Nombre:%A_H A:2 Calcular:Apagado Añadir:Apagado ]
    A2: AutoTools Time [ Configuración:
    ---------Add Time---------
    Use Now: true
    Add Unit: Hours
    Add Value: %A_H
    Output Format: HH:mm Cuenta atrás (segundos):30 ]
    A3: Flash [ Texto:%atcalculateddate "%A_H" Largo:Apagado ]
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    It seems there's a space after %A_H can that be the issue?
     
  7. Javier Mato

    Javier Mato New Member

    Joined:
    Oct 14, 2015
    Messages:
    28
    Likes Received:
    0
    Wtf! I would swear I had check all the spaces....lol....that was it...sorry for the inconvenience
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    No problem! :)
     
: time

Share This Page