added week to mapdata

package.json
  "version": "1.2.1",
  "date": "2023-04-21",
This commit is contained in:
rxf
2023-04-21 17:33:52 +02:00
parent 003138e601
commit 144f36e0a0
5 changed files with 7 additions and 5 deletions
+2
View File
@@ -165,6 +165,8 @@ export var getData4map = async (params) => {
oneAktData.value = Math.round(sensor.values[v4map] * 100) / 100
}
}
let weeks = Math.round(diff / (7 * 24 * 3600 * 1000))
oneAktData.weeks = weeks
}
if (sensor.values.timestamp > lastDate) {
lastDate = sensor.values.timestamp