remove 'noise_' from values

Trigger live tab, if sensorid is given
This commit is contained in:
2023-11-27 17:26:29 +00:00
parent 7160e41d4c
commit e3bf5855ab
4 changed files with 18 additions and 8 deletions
+2
View File
@@ -38,8 +38,10 @@ router.get('/:cmd', async function(req, res, next) {
// if called as '/api' then directly return the data
if ((calledAs === '/api') || (cmd === 'getoneproperty') || (cmd === 'getaddress')) {
if(pretty) {
res.setHeader('Content-Type', 'text/plain; charset=utf-8');
res.send(JSON.stringify(response.data,null,2))
} else {
res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.json(response.data)
}
return