[RELEASE] Conditional Image Server --> for dynamic dashboard background

I about did but realized it wasn’t really a “package” since it is a standalone app. Guess you are suggesting it is appropriate nonetheless?

Although it occurs to me now that another option would be to create a custom device within the app and then it would be a package. Would make install simpler at the expense of another driver. Any thoughts on whether it would be preferred to use global variable connector or custom device?

yeah, it makes it easier for the user to track any changes made, update it, even find it in the first place etc. I do appreciate it's a bit of work to include into HPM but I think definitely worth it, although of course it is up to you as the developer! :slight_smile:

Anything that makes set-up and speed better is preferred. I guess a custom driver would be best but I'm not that qualified to say to be honest. Maybe others will chip in on this...

Not much, really, from my perspective. Wasn't hard with my Rachio Community app. Worth the benefits.

omg i love this idea.

I still havent setup my tablet dashboard with Hubitat 3 months later. But when I do, I'm gonna use this alot!

1 Like

btw, you should create a manifest and get this listed in the Hubitat Package Manager

I will. Especially if I decide to go the custom device route. What's your preference between using a global variable connector vs. a custom device?

Well like I said I have only played with the Dashboard stuff so far, so I dont know all the in's and outs.

However as I understand it a custom device might give flexibility because you could use the Tile templates with properties of the device? Like I'm imagining a custom device with multiple URL's and a title that can cycle through them.

But again I'm guessing at functionality, and that would probably be alot more work.

IMHO custom device is easier for new user to understand and deploy. If you want the app to be extra users friendly custom device. If you want the app to to super duper user friendly, make either an option.

Nice work!

The new version does this. It also supports PNG and SVG file types

1 Like

App is in HPM

3 Likes

Sweet job Justin, thank you.

Hi - this looks very interesting and I was able to get it installed via HPM. I looked through Rule machine but nothing appears to have changed.

Can you please post an example of how to use it?

Thanks! :slight_smile:

The app doesn't change anything in Rule Machine, so not sure what you mean by this. If you select to store the URL in a custom device, use Rule Machine to access that custom device.

If you select to store the URL in a Global Connector, create the Global Connector in Rule Machine. See here for more info on that. Then open the app and select that created Global Connector from the dropdown menu, and then use Rule Machine to change the value of the Global Connector under different conditions.

So in the Conditional Image Server it will look like this:


And in Rule Machine it will look like this:

Then just set up rules in Rule Machine to change the value of the Global Connector however you'd like

1 Like

@JustinL its going to feel like I'm bombarding you today with questions on different threads ! Sorry wasn't targeting, just happened to be working on apps you have made. I have struck out a second time.
Getting the following in the logs:

It seems to pickup the right image based on RM. I'm using a Dynamic URL device
image

Edit: I'm storing the URL's on my hubitat. If that is not a good idea please let me know.

Hmm. I don't know. I haven't tried that. Does it work if you store the image elsewhere, with say a normal URL on the internet?

Normal internet URL

image

Also tried using global variable connectors. Same issue.

Is anyone else having the same issue of receiving a “Bad Request” in the log?

I've been thinking about / wanting this for some time now, glad it appeared up the list of latest posts, will definitely give it a go at some point soon. Would love to alternate the background of a dashboard based on the time of day, e.g. darker more moody backgrounds and styling at night vs a brighter interface during the day.

Simon

Hoping for a little more on how to use with RM and the virtual device. You say "access the device" in RM, but it is not clear what actions to run--I think this is what you mean by "Access" it. Can you lead me to water? I am trying to change the icon or tile color associated with a dashboard tile based on the state of a water sensor.

Download the Hubitat app