🎉 Improved backend structure & optimizations 🛠️

This commit is contained in:
Till Tomczak
2025-06-20 11:01:29 +02:00
parent 0c13a98cb5
commit eecbb5d267
44 changed files with 401 additions and 19 deletions

View File

@ -569,11 +569,11 @@ function updateDeviceTable(devices) {
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-slate-900 dark:text-white">${device.current_power || '0.0'} W</div>
<div class="text-sm font-medium text-slate-900 dark:text-white">${device.current_power ? device.current_power.toFixed(1) : '0.0'} W</div>
<div class="text-sm text-slate-500 dark:text-slate-400">Momentan</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-slate-900 dark:text-white">${device.daily_consumption || '0.0'} kWh</div>
<div class="text-sm font-medium text-slate-900 dark:text-white">${device.today_energy ? device.today_energy.toFixed(1) : '0.0'} kWh</div>
<div class="text-sm text-slate-500 dark:text-slate-400">Heute</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">