Drayton_MiGenie_HASS/routes/heating_post.js
2020-05-08 21:16:25 +01:00

11 lines
313 B
JavaScript

const post = require('../lib/post')
const common = require('../lib/common')
module.exports = function (app) {
app.post("/heating", async function (req, res, next) {
const response = await post.postRequest('{}')
const heating = response.updateData.zones[0]
res.json(heating)
});
}