iamBiB / lovelace-htc-flipclock-weather

HTC Flipclock with Weather card
24 stars 12 forks source link

Casting weather not working #30

Closed justinmheath2022 closed 1 year ago

justinmheath2022 commented 1 year ago

Need help getting my Dashboard to cast correctly via the google cast add in. dashboards work fine in the browser but when i use Google CAST to send to nest hub the images on the weather card are broken.

justinmheath2022 commented 1 year ago

When I cast via google cast add in I get this image

But when I cast via the CATT( dash cast) it works fine and I get this.

image

In another help request someone said:

The developer should use hass.hassUrl(path: string) function to add cast support for images.

But I'm not sure how to implement that or where to implement

justinmheath2022 commented 1 year ago

I fixed my own issue, Documenting solution below

Open the htc-flipclock-weather.js

edit the line below to hard code your home assistant local IP

const weatherDefaults = { widgetPath: 'http://YOUR_IP:8123/local/custom_ui/htc-weather/',

open the themes.js edit the line below to hard code your home assistant local IP

background: url("http://YOUR_IP:8123/local/custom_ui/htc-weather/themes/default/background.png") 50%