AutoNotification Detect ➕ or ✔ sign visibility from Spotify notification

Discussion in 'AutoApps' started by Paul F, Oct 17, 2016.

  1. Paul F

    Paul F New Member

    I want detect if plus or tick sign appears in the notification created by Spotify in the notification bar.
    Can AutoNotification help me to achieve this?
     

    Attached Files:

  2. joaomgcd

    joaomgcd Administrator Staff Member

    Have you tried using the "Get All Values" option and see if that brings up any text that might tell you the state? Thanks
     
  3. Paul F

    Paul F New Member

    Yes, i've tried that already. I found that the plus and tick signs are pictures, and using %animagesbig() shows all pictures including the plus and tick signs.
    %antextsbig() does not give any text that concerns the plus or tick sign unfortunately.
    What i would like to know is: Can Autonotification capture only images visible in the ongoing notification of Spotify, and NOT all images?
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Yes, it can only capture images on existing notifications. Right now you could check if the image is the same by using AutoPhoto if you have access to the Alpha AutoApps... Do you?
     
  5. Paul F

    Paul F New Member

    Nope, unfortunately. Is there any other simple way instead of using AutoPhoto?
     
  6. Paul F

    Paul F New Member

    %animagesbig() variable outputs 2 distinct images for ➕ and ✔ respectively. But in Spotify notification, only one of them is visible. Why is it so?
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Oh, I see what you mean. The image is there but being hidden probably. In that case I don't think you can distinguish the 2 states, sorry :( Are all the texts exactly the same in both situations?
     
  8. Paul F

    Paul F New Member

    Yes. Have you an idea how i could detect the change in state using any of your plugins or any other method?
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    you can probably detect that it changes, you just can't detect what the state was. Sorry :(
     
  10. Paul F

    Paul F New Member

    How about using AutoSpotify?
     
  11. joaomgcd

    joaomgcd Administrator Staff Member

    The goal is to learn if you already added a song to your library?
     
  12. Paul F

    Paul F New Member

    What I actually want to do is to add the currently playing song to my music using KWGT, hence without actually clicking on ➕in Spotify ongoing notification or inside the Spotify app, and if a song has already been added to my music, i want ✔ to appear on the widget instead of ➕. Therefore i want to know if the playing song has been added to my music or not.
    I've attached a screenshot of the KWGT homescreen widget.
     

    Attached Files:

    Last edited: Oct 18, 2016
  13. joaomgcd

    joaomgcd Administrator Staff Member

  14. Paul F

    Paul F New Member

    I've never used AutoWeb, so it would be easier for me if you could do it for me, please.
     
  15. joaomgcd

    joaomgcd Administrator Staff Member

    Ok, I've added the action to the Spotify API. You'll need a patched version of AutoWeb that you can get here: https://dl.dropboxusercontent.com/u/9787157/apk/AutoWeb.apk

    Import the Spotify API. Then you should be able to search for the current song with the Search action and then check if that song is in your library with the Check User's saved tracks action.

    Hope this helps!
     
  16. Paul F

    Paul F New Member

    I've tried to configure it in Tasker, but i keep getting error messages... :(
    Didn't know it was that hard...
     
  17. joaomgcd

    joaomgcd Administrator Staff Member

    What error messages exactly?
     
  18. Paul F

    Paul F New Member

    "error" : "status" : 400, "message" : "No search query" or "Missing payload"
    and AutoWeb action error. App locked. Please start the trial or unlock the full version.
    See the screenshot to see what happens when I try to get my email address.
     

    Attached Files:

    Last edited: Oct 18, 2016
  19. Paul F

    Paul F New Member

    Did i do something wrong somewhere @joaomgcd?
     
  20. joaomgcd

    joaomgcd Administrator Staff Member

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice