Villhellm / lovelace-animated-background

Animated backgrounds for lovelace
191 stars 60 forks source link

Update animated-background.js #59

Open noflcl opened 1 year ago

noflcl commented 1 year ago

Hackfix for 2023.4.0


name: A simple bug report about: Applied changes to HA 2023.4.0, animated background not working title: Bug report


Before applying patch a0bc82df3ebf251e065097b67caa734e3b544b78

Prior to applying the patch I was running on HA stable.

I used docker to pull tag 2023.4.0 -> down my HA and proxy stack -> up stack /w success.

verified current:

Home Assistant 2023.4.0 
Frontend 20230405.0 - latest
Lovelace Animated Background `v0.6.3`
   /w changes from `a0bc82df3ebf251e065097b67caa734e3b544b78`

Patch applied, HA rebooted, no errors

HA Setup

To keep things simple I have applied the most basic of configurations to the root of my lovelace.

animated_background:
  default_url: https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4

Browser console log Logs are clean no indication of errors.

Expected behavior Random Live Background.

Devices

I have tried private tabs where possible, force stopping and clearing cache for apps.

I had come across a thread you commented on (I assume it was you based on avatar and username) about the original author and a link to an online resource. In that post your mentioned something about a patch to style.css is that required here? That thread comment is what brought me to your fork.

Would love to get live wallpaper running again for my vehicles hud :)

noflcl commented 1 year ago

I am opening this pull request for comment again.

Even after adding dreimer1986/lovelace-animated-background directly to my hacs store at a final attempt to get this working... But alas still no animated backgrounds.

dreimer1986 commented 1 year ago

No clue why it works for others and not in your case. Maybe the F12 Console output would help here.

As long as you only need random background and maybe weather based selection... I work on a solution. Will still take a few hours to days to make things less complicated for the end user, but it already works over here.

dreimer1986 commented 1 year ago

Before I forget. Trying out my fork of this addon here does NOT need the style.js. You just need to be 100% SURE that the Cache is wiped. Check the more recent posts in the issue. Many ppl tell us there that they even had to copy the JS file to another folder. I think if you go to Settings, Dashboards and there above right the three dots and then Resources you can fix it by looking for the line with animated background in it and edit the hacstag number a bit. This SHOULD force a Cache reset. If this fails... read on.

If you feel like some experimenting... I finished my "solution" and the readme for it: https://github.com/dreimer1986/yourname_card_mod/blob/master/README-script.md This script is my solution for the problem. It's a bit more technical than opening HACS and clicking install, but should be doable. If you struggle there, feel free to open an issue over there. I am open for any reply as I am not the master of readme writing. Likely I forgot to mention something I would never even think about but the rest of the world would.