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
+1 -1
View File
@@ -7,7 +7,7 @@ RUN mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/
WORKDIR /opt/app
ADD . /opt/app
RUN apk add busybox-initscripts
# RUN apk add busybox-initscripts
RUN apk add --no-cache tzdata
ENV TZ Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+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
Regular → Executable
View File
+2 -2
View File
@@ -11,8 +11,8 @@ services:
INFLUXTOKEN: ${INFLUXTOKEN}
LIVE: "true"
ports:
- "3031:3000"
- "3004:3004"
volumes:
- /var/log/sensorapi:/var/log
- ${PWD}/log/sensorapi:/var/log
container_name: node_sensorapi
restart: unless-stopped
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "sensorapi",
"version": "1.2.0",
"date": "2023-04-07",
"version": "1.2.1",
"date": "2023-04-21",
"private": true,
"scripts": {
"start": "node ./bin/www.js",