This commit is contained in:
SupertigerDev
2025-08-02 09:32:14 +00:00
parent 2b8dc6afc4
commit 1eae4806a4
4 changed files with 13 additions and 12 deletions

View File

@@ -0,0 +1 @@
import{c as o}from"./Label-C5RGArgp.js";const d=(e,r)=>{const a=o({interval:1e3,update:()=>s(),config:r,module:e});e.element.appendChild(a.element);const s=async()=>{const t=Math.round(Math.random()*90),n=Math.round(t*(9/5)+32),c=r["critical-threshold"];t>=c?e.element.classList.add("critical"):e.element.classList.remove("critical");const l=c!==void 0?c:0;a.set({temperatureC:t,temperatureF:n,icon:a.getIcon(t,"",l)})};s()};export{d as createTemperatureModule};