AutoWeb Forecast.io with AutoWeb

Discussion in 'AutoApps' started by Angela, Jun 2, 2016.

  1. Angela

    Angela New Member

    Joined:
    Jun 2, 2016
    Messages:
    3
    Likes Received:
    0
    I am trying to capture Sunset time with the forecast.io plugin to AutoWeb. The variable is exposed as %sunsettime(). Tasker refuses to accept the parentheses on the variable name. Is there a way round this?
     
  2. Daniel D

    Daniel D Member

    Joined:
    Feb 11, 2015
    Messages:
    127
    Likes Received:
    11
  3. Angela

    Angela New Member

    Joined:
    Jun 2, 2016
    Messages:
    3
    Likes Received:
    0
    Thanks, but my problem isn't capturing sunset times, (already have a javascript routine doing that), but getting the forecast.io plugin to do what it should. I'm just being a pedant.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    What do yo mean exactly by "Tasker refuses to accept the parentheses"? What exactly does that mean? :)
     
  5. Angela

    Angela New Member

    Joined:
    Jun 2, 2016
    Messages:
    3
    Likes Received:
    0
    I mean exactly that since the Forecast.io module returns an array of unix times with AutoWeb and it denotes that array with the name 'sunsettime()' which Tasker refuses to accept as a variable name. I need to access elements of that array and thus need to split it. When I try to do that with 'variable split', Tasker responds with "Error: %sunsettime() must be a variable or array name." Enough?
     

    Attached Files:

  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    The variable is already an array, so you don't need to split it :)
    Just access %sunsettime(1) for example to get the first result.

    Hope this clarifies it!
     
    Angela likes this.

Share This Page