Comments (11)
I'm currently trying to replicate the blank background, would it be possible for you to open the browser console when that happens to check for errors? I'll leave my window open for the rest of the day to see if I run into the same problem.
The issue with only the first tab actually makes sense. Apparently the new theme logic applies the background to each tab individually, but I missed it because my test instance only has one tab. I'll start working on that one now. In the mean time you can set the theme of those tabs to a theme with the primary-background-color
set to transparent
.
from lovelace-animated-background.
Actually an easier workaround is to go into raw config mode (or edit your ui-lovelace.yaml if you're in yaml mode) and add background: transparent
directly to your view.
Ex:
views:
- title: test
background: transparent
path: test
badges: []
cards: []
from lovelace-animated-background.
Okay, the current update should fix the different tab issue.
Please let me know if you have anymore information on the blank background issue. I'll continue to monitor on my end to see if I can replicate it.
from lovelace-animated-background.
Thanks @Villhellm ,
Adding the background as transparent worked. I could now see the animated background across other tabs. Regarding the blank screen, animated background stays as long as the screen is active. For instance, if i close the laptop & open it immediately, HA refreshes the page, but the background goes blank. I could see the same behaviour in the mobile app (android) as well.
Here's the Console log from Chrome. I'm not sure if its related. I had to stop the session by closing the laptop and opened it again. Found the following error in console and the background was blank.
[Violation] 'requestAnimationFrame' handler took 72ms
[Violation] Forced reflow while executing JavaScript took 75ms
[Violation] Forced reflow while executing JavaScript took 31ms
from lovelace-animated-background.
I'm sorry, this module is only meant to function as long as the screen is active. Refreshing the page when you reactivate the app/tab is the correct action to take in order to keep it functioning. Please let me know if the issue starts happening when the screen is still active.
from lovelace-animated-background.
Ok sure. Just to let you know that it's working perfectly fine in the .107.7 version. I.e when the HA screen refreshes automatically, the background animation is refreshed as well. Issue started after upgrading to .108.3 wherein i had to either reload the url in the browser or close & reopen the mobile app again to see the image.
from lovelace-animated-background.
I had to change the location that the html is rendered because they removed the DOM element I was using in 0.108. I can try tying it to a mutation observer, but you'll have to test it for me because I still can't replicate the issue (I don't currently have a laptop)
from lovelace-animated-background.
I just checked it. Still the issue occurs.
from lovelace-animated-background.
I hadn't changed anything yet. I put the changes to test in the refresh-test
branch. Please download that version of the js file to test
from lovelace-animated-background.
Awesome. It's working now!!!! Thank you very much for your help...
from lovelace-animated-background.
Good 👍 no problem
from lovelace-animated-background.
Related Issues (20)
- Bug report: Configuration options overriding each other HOT 1
- display_user_agent: true does not do anything HOT 1
- Read animations from folders HOT 2
- Weather: day and night
- rpi 3b+ video stutter
- Bug report HOT 1
- No longer lets tablet display timeout HOT 1
- Clarify HACS install procedures please. HOT 2
- Switching by days of the week + sunrise or sunset HOT 1
- Resolution change?! HOT 4
- [Feature Request] Allow configuring opacity of the background HOT 2
- Simple question- help
- Lil suggestion I use for my theme. Transparent Sidebar HOT 1
- Local stored animated backgrounds?? HOT 2
- Dashboard nest hub
- Add variable video playback speeds
- Play next video in array after current one finishes
- WARNING: 2023.4.0b0 or newer break Animated Background HOT 42
- problem in new versions of HA HOT 9
- snow wallpaper animation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lovelace-animated-background.