NarodMon Weather Apple HomeKit

Simple flow to get weather data from narodmon.ru and send it to Apple HomeKit

[{"id":"d6e6211f.0dc7","type":"http request","z":"f487c9ba.9b8da8","name":"","method":"POST","ret":"obj","paytoqs":false,"url":"http://narodmon.ru/api","tls":"","persist":false,"proxy":"","authType":"","x":510,"y":680,"wires":[["cd14ded0.2d04e"]]},{"id":"cf4de9a3.decf58","type":"inject","z":"f487c9ba.9b8da8","name":"Запрос данных","topic":"","payload":"{\"cmd\":\"sensorsValues\",\"sensors\":[1847,1849,2550],\"uuid\":\"13f9e75d7178eb0228dd8aaeb2ca4e14\",\"api_key\":\"nF2vaFDHM6mbt\"}","payloadType":"json","repeat":"300","crontab":"","once":true,"onceDelay":"1","x":320,"y":680,"wires":[["d6e6211f.0dc7"]]},{"id":"d8eb7782.a87c38","type":"comment","z":"f487c9ba.9b8da8","name":"Текущая погода","info":"","x":300,"y":620,"wires":[]},{"id":"bb2f3759.5815f8","type":"homekit-service","z":"f487c9ba.9b8da8","isParent":true,"bridge":"","parentService":"e633f66b.d0d248","name":"Влажность","serviceName":"HumiditySensor","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{\n    \"CurrentRelativeHumidity\" : 0\n}","x":990,"y":680,"wires":[[],[]]},{"id":"d3920360.d952e","type":"homekit-service","z":"f487c9ba.9b8da8","isParent":true,"bridge":"","parentService":"4057f360.2435ac","name":"Температура","serviceName":"TemperatureSensor","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{\n    \"CurrentTemperature\" : 0\n}","x":1000,"y":620,"wires":[[],[]]},{"id":"797b8424.138d5c","type":"homekit-service","z":"f487c9ba.9b8da8","isParent":true,"bridge":"","parentService":"e633f66b.d0d248","name":"Давление","serviceName":"LightSensor","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{\n    \"CurrentAmbientLightLevel\" : 0\n}","x":990,"y":740,"wires":[[],[]]},{"id":"cd14ded0.2d04e","type":"function","z":"f487c9ba.9b8da8","name":"Преобразование данных","func":"Temp = msg.payload.sensors[0].value\nHum = msg.payload.sensors[1].value\nPres = msg.payload.sensors[2].value\nmsgHKtemp = {payload: {\"CurrentTemperature\":Temp}}\nmsgHKhum = {payload: {\"CurrentRelativeHumidity\":Hum}}\nmsgHKpres = {payload: {\"CurrentAmbientLightLevel\":Pres}}\nreturn [msgHKtemp, msgHKhum, msgHKpres];","outputs":3,"noerr":0,"x":720,"y":680,"wires":[["d3920360.d952e"],["bb2f3759.5815f8"],["797b8424.138d5c"]]}]

Flow Info

Created 5 years ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x1)
  • function (x1)
  • http request (x1)
  • inject (x1)
Other
  • homekit-service (x3)

Tags

  • narodmon
  • weather
  • homekit
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option