diff --git a/Dockerfile b/Dockerfile old mode 100644 new mode 100755 diff --git a/app.js b/app.js old mode 100644 new mode 100755 diff --git a/bin/dbHandler.js b/bin/dbHandler.js old mode 100644 new mode 100755 diff --git a/log.txt b/log.txt old mode 100644 new mode 100755 diff --git a/main.js b/main.js old mode 100644 new mode 100755 diff --git a/models/PMEntry.js b/models/PMEntry.js old mode 100644 new mode 100755 diff --git a/models/Status.js b/models/Status.js old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/public/javascripts/main.js b/public/javascripts/main.js old mode 100644 new mode 100755 index f9f3f61..56722e0 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -133,7 +133,7 @@ function addData(time, pm25, pm10) { chart.data.datasets[1].data.push(pm10); // Begrenze die Anzahl der Datenpunkte auf 100 oder die letzten 12 Stunden - var maxPoints = 60; + var maxPoints = 5000; var maxTime = new Date(); maxTime.setHours(maxTime.getHours() - 12); @@ -190,7 +190,7 @@ function loadValues() let last = 0; for(let i = 0; i < data.length; i++) { - if(!(last + 900000 > new Date(data[i].createdAt).getTime()) ) + if(!(last + 1800000 > new Date(data[i].createdAt).getTime()) ) { newData.push(data[i]); last = new Date(data[i].createdAt).getTime(); diff --git a/public/javascripts/main2.js b/public/javascripts/main2.js old mode 100644 new mode 100755 diff --git a/public/javascripts/web.bundle.js b/public/javascripts/web.bundle.js old mode 100644 new mode 100755 diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css old mode 100644 new mode 100755 diff --git a/routes/index.js b/routes/index.js old mode 100644 new mode 100755 diff --git a/views/error.pug b/views/error.pug old mode 100644 new mode 100755 diff --git a/views/index.pug b/views/index.pug old mode 100644 new mode 100755 diff --git a/views/layout.pug b/views/layout.pug old mode 100644 new mode 100755 diff --git a/webpack.config.js b/webpack.config.js old mode 100644 new mode 100755 diff --git a/yarn.lock b/yarn.lock old mode 100644 new mode 100755