Page 1 of 1

albumart refresh

Posted: Sunday 11 August 2019 20:23
by sundodger
Hi all, just starting out using Dashticz and slowly learning.
I have hit a bit of a brick wall.
I want to display album art on my dashboard, i have figured out how to get the album art from my logitech media server but when the song changes the album art does not change with it.
The only way to see the change is to reload the page in the browser.
Any advice would be appreciated.
Thanks
Mark.

Re: albumart refresh

Posted: Sunday 11 August 2019 23:54
by HansieNL
sundodger wrote: Sunday 11 August 2019 20:23 Hi all, just starting out using Dashticz and slowly learning.
I have hit a bit of a brick wall.
I want to display album art on my dashboard, i have figured out how to get the album art from my logitech media server but when the song changes the album art does not change with it.
The only way to see the change is to reload the page in the browser.
Any advice would be appreciated.
Thanks
Mark.
What code do you use to show the album art?

Re: albumart refresh

Posted: Monday 12 August 2019 17:26
by sundodger
i use this in my config to get the album art, I have tried adjusting the refesh time but doesn't seem to make a difference.

Code: Select all

buttons = {}            //only once!!
buttons.albumart = {
    width: 4,
  isimage: true,
  refreshimage: 2000,
    image: 'http://192.168.1.122:9000/music/current/cover.jpg?player=b8%3A27%3Aeb%3A29%3A3c%3A50',
    url: 'http://192.168.1.122:9000/music/current/cover.jpg?player=b8%3A27%3Aeb%3A29%3A3c%3A50'
};

Re: albumart refresh

Posted: Monday 12 August 2019 22:54
by HansieNL
Spoiler: show
sundodger wrote: Monday 12 August 2019 17:26 i use this in my config to get the album art, I have tried adjusting the refesh time but doesn't seem to make a difference.

Code: Select all

buttons = {}            //only once!!
buttons.albumart = {
    width: 4,
  isimage: true,
  refreshimage: 2000,
    image: 'http://192.168.1.122:9000/music/current/cover.jpg?player=b8%3A27%3Aeb%3A29%3A3c%3A50',
    url: 'http://192.168.1.122:9000/music/current/cover.jpg?player=b8%3A27%3Aeb%3A29%3A3c%3A50'
};
Can you try to add: forcerefresh: 1

Re: albumart refresh

Posted: Monday 12 August 2019 23:33
by sundodger
that fixed it, working perfectly now.
thank you.