Tiny House temperature monitoring using Node-RED and LoRa

From Sensors in Schools
Jump to navigation Jump to search

Overview

  • In this lesson - temperature and humidity data from a Tiny House was collected using a Pycom LoPy4 and transmitted to a local LoRa WAN Gateway
  • The data was processed in The Things Network
  • The data was subscribed to using MQTT using Node-RED
  • A time stamp was added simple time node
  • The data was processed using a process node to extract out temperature data
  • The data was then packaged so that it cold be dweeted.
  • The data will be available to students as a Dweet so that they can monitor the performance of their tiny house
  • Students will use Python to process the dweeted data (Dweepy module)

Node-RED Configuration

mqqt-in Node

mqqt-in edit Node - Connection

  • Follow the example below to configure the connection to the MQQT broker on The Things Network

mqqt-in edit Node - Security

  • Follow the example below for the security configuration.
  • Note that the username is whi-tinyhouse-12-temperature-pycom@ttn
  • Whereas the password is a very long chanracter set (40+ characters) obtained from the The Things Network Application page.
  • For security reasons, Node-RED will not retain any passwords if the node is copied.

simpletime Node

  • simpletime adds time and date stamps to the data flow within Node-RED.
  • The simpletime node needs to be added to Node-RED using the Manage pallet function.

  • Example of default configuration of simpletime node.