From 7b13fc7bff8804cfe8bb8e835e0c14f4f8c0ca73 Mon Sep 17 00:00:00 2001 From: rxf Date: Sun, 29 Mar 2026 09:39:40 +0200 Subject: [PATCH] V 3.1.0 mikt AKWS --- .vscode/launch.json | 1 + package.json | 2 +- public/js/global.js | 2 +- routes/mapdata.js | 8 +++----- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c4d4f92..7715b61 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,6 +20,7 @@ "/**" ], "env": { + "SERVERPORT": "3006", "MONGOHOST": "217.72.203.152", "MONGOPORT": "27037", "MONGOAUTH": "true", diff --git a/package.json b/package.json index 3470997..21319af 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "geiger2", - "version": "3.0.1", + "version": "3.1.0", "date": "2026-03-29", "description": "Graphics for multigeiger sensors", "main": "app.js", diff --git a/public/js/global.js b/public/js/global.js index 69b293a..352c6df 100755 --- a/public/js/global.js +++ b/public/js/global.js @@ -383,7 +383,7 @@ $(document).ready(function() { console.log(`New zoom: ${map.getZoom()}`); }); -// await buildAKWs(); + await buildAKWs(); await buildMarkers(bounds); diff --git a/routes/mapdata.js b/routes/mapdata.js index 4c8e700..d73cb34 100755 --- a/routes/mapdata.js +++ b/routes/mapdata.js @@ -138,13 +138,12 @@ router.get('/getaktdata/', async function (req, res) { } }); -/* =============================================================== -// AKW (Nuclear Power Plant) FUNCTIONS - COMMENTED OUT FOR NOW -// Will be needed later, so not deleting +// =============================================================== +// AKW (Nuclear Power Plant) FUNCTIONS // =============================================================== // Fetch all akw data out of the dbase -router.get('/getakwdata/', async function (req, res) { +router.get('/getakwdata', async function (req, res) { const db = req.app.get('dbase'); // db wird in req übergeben (von app.js) let collection = db.collection('akws'); // die 'korrelation' verwenden let erg = []; @@ -215,7 +214,6 @@ router.get('/getakwdata/', async function (req, res) { return; } }); -*/ router.get('/getStuttgart/', function (req, res) { fs.readFile('public/Stuttgart.gpx',function(err,data) {