Temperature logger

Periodically capture temperature from Melexis MLX90614 sensor and log them to Thingspeak.

https://www.melexis.com/en/product/MLX90614/Digital-Plug-Play-Infrared-Thermometer-TO-Can

[{"id":"b1f5580f.0b59c8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"5147550a.f4d59c","type":"mqtt-broker","z":"","name":"","broker":"mqtt.thingspeak.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"3ede119f.9fa1ce","type":"mlx-sensor","z":"b1f5580f.0b59c8","name":"","x":350,"y":160,"wires":[["37ae8edc.2c3a52","4c96fbe8.d13d54"]]},{"id":"64c14622.d1d268","type":"inject","z":"b1f5580f.0b59c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":"30","x":150,"y":160,"wires":[["3ede119f.9fa1ce"]]},{"id":"37ae8edc.2c3a52","type":"debug","z":"b1f5580f.0b59c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":690,"y":160,"wires":[]},{"id":"5dd0498d.0a3868","type":"mqtt out","z":"b1f5580f.0b59c8","name":"Thinkspeak","topic":"channels/<channel_id>/publish/<chan_write_api_key>","qos":"0","retain":"false","broker":"5147550a.f4d59c","x":730,"y":260,"wires":[]},{"id":"4c96fbe8.d13d54","type":"function","z":"b1f5580f.0b59c8","name":"format","func":"\nvar fieldString = \"field1=\" + \n    msg.payload.object.toString() +\n    \"&field2=\" +\n    msg.payload.ambient.toString();\n\nvar newMsg = {\n    payload:fieldString\n}\n\nreturn newMsg;","outputs":1,"noerr":0,"x":530,"y":260,"wires":[["5dd0498d.0a3868"]]}]

Flow Info

Created 1 year, 5 months ago
Rating: not yet rated

Owner

Node Types

Core
  • debug (x1)
  • function (x1)
  • inject (x1)
  • mqtt out (x1)
  • mqtt-broker (x1)
  • tab (x1)
Other

Tags

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