albumart refresh

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
sundodger
Posts: 29
Joined: Sunday 11 August 2019 17:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

albumart refresh

Post 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.
User avatar
HansieNL
Posts: 969
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: albumart refresh

Post 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?
Blah blah blah
sundodger
Posts: 29
Joined: Sunday 11 August 2019 17:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: albumart refresh

Post 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'
};
User avatar
HansieNL
Posts: 969
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: albumart refresh

Post 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
Blah blah blah
sundodger
Posts: 29
Joined: Sunday 11 August 2019 17:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: albumart refresh

Post by sundodger »

that fixed it, working perfectly now.
thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest