This is an Internet of Things college class project consisting of three separate Node-RED flow examples: a weather station, a smart home and a time clock system.
Most examples have environment variables that need to be configured by double-clicking the flow tab and going to the Environment Variables tab switchable on the right side of the flow's settings. The *_DATA_PATH environment variables can be substituted with absolute file paths on your computer. All flows depend on and use Node-RED Dashboard.
A flow can be imported and used by copying its JSON file or its contents and pasting it into the Import menu in Node-RED, and configure the environment variables if needed.
- Description: Fetches the weather parameters of a configured location every 5 minutes from WeatherAPI.com Realtime API and displays the data in the Node-RED Dashboard. The graph data is automatically saved, and loaded upon startup. Miscellaneous data is also displayed and most values are configurable, such as the unit system (imperial and metric), location and temperature extremes.
- Environment variables:
TEMPERATURE_GRAPH_DATA_PATH,PRESSURE_GRAPH_DATA_PATH,WIND_SPEED_GRAPH_DATA_PATH,WEATHERAPI_KEY
- Description: Enables registered user IDs to register their office entrance moment and then their exit moment by their employee ID (e.g. via RFID) onto any of the three devices at the company's office. Administration panel in Node-RED Dashboard enables the adding and removal of user IDs. Communication is performed via the Internet of Things Gateway and to the Cloud IoT controller which sends an appropriate response to device which generated the response, which is literally a simulation of the HTTP REST API. Employee IDs and their time data are loaded and stored in a JSON file.
- Environment variables:
COMPANY_EMPLOYEES_DATA_PATH
- Description: Three sensors communicate with the Internet of Things Gateway, which performs all the logic and also communicates with the Node-RED Dashboard. A garage motion sensor triggers a camera to AI detect the owner's registration plate while the owner is driving towards the garage, and opens the garage door if there's a match. A front door lock sensor signal will trigger the Gateway to close the garage door if it's already open and the front door is being locked. An outdoor motion sensor turns on the outdoor lights if motion is detected at night, and turns off in 5 seconds by default. All "things" are controllable via the Dashboard as well.
- Environment variables: none.





