Senor-Label richtiger Umbruch
This commit is contained in:
+2
-1
@@ -1,2 +1,3 @@
|
||||
node_modules
|
||||
log
|
||||
log
|
||||
.env
|
||||
@@ -128,7 +128,7 @@ export const liveData = (params, values, req) => {
|
||||
},
|
||||
max: utils.noise_ymax,
|
||||
// min: utils.noise_ymin,
|
||||
min: 20,
|
||||
min: 10,
|
||||
// opposite: true,
|
||||
tickAmount: 11,
|
||||
useHTML: true,
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import { translate as trans } from '../routes/index.js'
|
||||
let language = 'en'
|
||||
|
||||
export const colors = {'eq': '#0000FF', 'max': '#FF0000', 'min': '#008000', 'peaks': '#DAA520'};
|
||||
export const noise_ymin = 30;
|
||||
export const noise_ymin = 20;
|
||||
export const noise_ymax = 120;
|
||||
|
||||
export function createGlobObtions() {
|
||||
|
||||
@@ -28,7 +28,7 @@ shift $((OPTIND-1))
|
||||
|
||||
|
||||
./build_and_copy.sh localhost
|
||||
# docker tag $name docker.citysensor.de/$name
|
||||
docker tag $name docker.citysensor.de/$name:latest
|
||||
dat=`date +%Y%m%d%H%M`
|
||||
docker tag $name docker.citysensor.de/$name:V_$dat
|
||||
docker push docker.citysensor.de/$name
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "laerm-web-sensorapi",
|
||||
"version": "3.2.2",
|
||||
"date": "2024-09-01 13:15 UTC",
|
||||
"version": "3.2.3",
|
||||
"date": "2024-12-18 16:00 UTC",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node bin/www.js >>/var/log/noise.log 2>&1"
|
||||
|
||||
@@ -163,16 +163,19 @@ export function calcDays(data, isyear) {
|
||||
export async function addSensorID2chart(chart, sensor, width) {
|
||||
let indoor = sensor.indoor || false
|
||||
let addr = await addAddress(sensor.sid)
|
||||
chart.renderer.rect((width/2)-200,65,400,150,0)
|
||||
.attr({
|
||||
zIndex: 3
|
||||
}).add()
|
||||
let sens = chart.renderer.label(
|
||||
`Sensor: <span class="bigger">${sensor.sid}</span> ${indoor ? ' (indoor)' : ''} ${addr.street}, ${addr.plz} ${addr.city}`,
|
||||
width / 2 - 100, 65,
|
||||
'text', 0, 0, true)
|
||||
`Sensor: <span class="bigger">${sensor.sid}</span> ${indoor ? ' (indoor)' : ''}<br /><br />${addr.street}<br />${addr.plz} ${addr.city}`,
|
||||
width / 2 - 150, 70)
|
||||
.css({
|
||||
fontSize: '12pt',
|
||||
fontSize: '14pt',
|
||||
'font-weight': 'bold',
|
||||
})
|
||||
.attr({
|
||||
zIndex: 2,
|
||||
zIndex: 3,
|
||||
}).add();
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import express from 'express'
|
||||
import pkg from '../package.json' assert { type: "json" }
|
||||
import pkg from '../package.json' with { type: "json" }
|
||||
import { setLanguage } from '../charts/utilities.js'
|
||||
|
||||
const router = express.Router()
|
||||
|
||||
Reference in New Issue
Block a user