Azuracast album art to HA

Hi,

I use Azuracast https://www.azuracast.com/ to host 2 local radio stations.
Someone maybe know how to fetch the album art url from the API and show it in HA?

This is the API request from the demo site: https://demo.azuracast.com/api/nowplaying_static/azuratest_radio.json

And take a look in Azuracast, I think it is great for many HA users

regards

Why not use the iframe fonctionnality of HALovelace and Azuracast ?

My current HA azuracast page looks like this, ask anything if u need. :wink:

Thanks for your reply.

Yes this is also a good way but I was now able to set the album.art via API

Hey Famku - I know this is an old thread, but would you be able to share how you use the API to show album art? Would like to do same (as well as show now playing artist and title).

Hi,

add this to your config;

- platform: rest

    resource: http://192.168.1.42/api/nowplaying/jk

    name: "azuracast_art"

    value_template: '{{value_json.now_playing.song.art}}'

    scan_interval: 20

- platform: rest

    resource: http://192.168.1.42/api/nowplaying/jk

    name: "azuracast_art_next"

    value_template: '{{value_json.playing_next.song.art}}'

    scan_interval: 20

then you can add both as camera entity

Thanks for this famku. But I need a bit more help. I’ve added what you suggested to config, and I now see the “azuracast_art” entity. How do I add this as a camera entity, and ultimately include a card on my dashboard?

Add a Generic Camera integration
use the art entity value in template format as source url (that’s the first setting field when configuring the Generic Camera integration), like this: {{states.sensor.azuracast_art.state}}
uncheck ssl verification
save
you can then add a picture entity or similar card and use the new cam entity as source.

Thank you so much Mommeke. Got it working now!