AutoNotification AN not picking up PowerAmp Notification contents

Discussion in 'AutoApps' started by L.Drake, Mar 30, 2015.

  1. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You don't need to split because the variable is already an array. :)
    The event only fires once for each created notification. Maybe PowerAmp creates 2 notifications in a row? In that case just ignore the one with the empty values.
     
  2. L.Drake

    L.Drake Member

    Joined:
    Feb 12, 2015
    Messages:
    61
    Likes Received:
    1
    Figured it out, just checking If %Antexts is Set. Just trying to figure out how to recognize pausing properly now.
     
  3. L.Drake

    L.Drake Member

    Joined:
    Feb 12, 2015
    Messages:
    61
    Likes Received:
    1
    So, After a few Updates nothing works anymore... Antexts isn't listed anymore and IT remainsempty empty.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    A few updates of Poweramp or AutoNotification?
     
  5. L.Drake

    L.Drake Member

    Joined:
    Feb 12, 2015
    Messages:
    61
    Likes Received:
    1
    Autonotification
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    I just tried it and it still works for me. when I start playing something in PowerAmp and go to my homescreen and the notification is shown I can see %antexts() correctly
     
  7. L.Drake

    L.Drake Member

    Joined:
    Feb 12, 2015
    Messages:
    61
    Likes Received:
    1
    Hmph. I can't get it to work anymore... Let's See... I'll tinker with it some more
     
  8. L.Drake

    L.Drake Member

    Joined:
    Feb 12, 2015
    Messages:
    61
    Likes Received:
    1
    Dumbass is me. I forgot to tick 'Get all Fields'
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Oh :p I didn't even ask that cause you said that it stopped working with updates. I assumed you were using the same profile all along.
     
  10. L.Drake

    L.Drake Member

    Joined:
    Feb 12, 2015
    Messages:
    61
    Likes Received:
    1
    I forgot to add it ti my backup so yah. It comes up now though
     
  11. Daniel D

    Daniel D Member

    Joined:
    Feb 11, 2015
    Messages:
    127
    Likes Received:
    11
    I've used a different path in order to achieve the same result and, at leas in my opinion, the result is easier to manipulate, as the values used to split the obtained string are way less likely to be part of actual artist name or song title.
    I'm using an "Intent Received" profile with the following intent "com.maxmpz.audioplayer.TRACK_CHANGE" and all the info gets pushed in a variable named %track. The rest is a matter of splitting and replacing.
     
  12. L.Drake

    L.Drake Member

    Joined:
    Feb 12, 2015
    Messages:
    61
    Likes Received:
    1
    Wort a try. Will look at that once I get my mobile working
     
  13. MikeW

    MikeW Member

    Joined:
    Feb 16, 2015
    Messages:
    113
    Likes Received:
    9
    In case you're still interested, here's the code I'm using for Poweramp in my Digital Dash project.

    Profile: Catch PowerAmp Intent (116)

    Event: Intent Received [ Action:com.maxmpz.audioplayer.TRACK_CHANGED Cat:None Cat:None Scheme:* Mime Type:* ]

    Enter: PowerAmp Info (114)

    A1: Variable Split [ Name:%track Splitter:, Delete Base:Off ]

    A2: Variable Set [ Name:%artist To:%track1 Do Maths:Off Append:Off ]

    A3: Variable Set [ Name:%song To:%track14 Do Maths:Off Append:Off ]

    A4: Variable Split [ Name:%artist Splitter:= Delete Base:Off ]

    A5: Variable Set [ Name:%ARTIST To:%artist2 Do Maths:Off Append:Off ]

    A6: Variable Split [ Name:%song Splitter:= Delete Base:Off ]

    A7: Variable Set [ Name:%TRACK To:%song2 Do Maths:Off Append:Off ]

    (The final variables, %ARTIST and %TRACK are what get displayed on my car dock screen.)
     

Share This Page