Websocket Monitor for door sensors

This commit is contained in:
2024-12-17 23:24:19 -05:00
parent a5725edb36
commit 7a71b0c216
8 changed files with 75 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ let config = JSON.parse(fs.readFileSync('config.json', 'utf8'))
// name influxKey=data[valueKey],influxKey=data[valueKey],...
axios.get(config.servers.deconz.url + '/api/' + config.servers.deconz.apiKey + '/sensors')
axios.get(`http://${config.servers.deconz.url}:${config.servers.deconz.apiPort}/api/${config.servers.deconz.apiKey}/sensors`)
.then(response => {
let sensors = response.data
let data = []