Остання активність 1 month ago

home assistant iframe black munin graph.yaml Неформатований
1entity: sensor.time
2content: |2-
3 <a href="https://mun.echosystem.fr/home.lan/Bmax.home.lan/">
4 <img id="img1" src="https://mun.echosystem.fr/home.lan/Bmax.home.lan/speedfan-day.png">
5 <img id="img2" src="https://mun.echosystem.fr/home.lan/Bmax.home.lan/processor-day.png">
6 </a>
7 <script>
8 function refreshImages() {
9 const timestamp = new Date().getTime(); // Obtenir l'heure actuelle pour éviter le cache
10 document.getElementById('img1').src = `https://mun.echosystem.fr/home.lan/Bmax.home.lan/speedfan-day.png?timestamp=${timestamp}`;
11 document.getElementById('img2').src = `https://mun.echosystem.fr/home.lan/Bmax.home.lan/processor-day.png?timestamp=${timestamp}`;
12 }
13
14 // Rafraîchir les images toutes les 5 minutes (300000 millisecondes)
15 setInterval(refreshImages, 300000);
16 </script>
17
18 <style>
19 img {
20 -webkit-filter: invert(100%);
21 filter: invert(100%);
22 }
23 </style>
24type: custom:tailwindcss-template-card
25