ICP6 Wiki Report - aaackc/IOT GitHub Wiki
IoT Wiki
ICP 6
Github:
• Github.com/AnthonyYos/IoT
• github.com/aaackc
• github.com/s0720bae
• github.com/Alshaikh1abbas
Video:
https://www.youtube.com/watch?v=foqzms---UU&feature=youtu.be
Introduction:
The goal of ICP 6 was learning how to use Node Red and the useful nodes such as change, switch, range, and RBE. Approaches/ Methods: We started with the switch node which wasn't too bad. We just needed to figure out how to output to a specific payload and then it was easy. The change was easy too because we just had to detect an input and change it. After that we did the range which we had problems with at first, but then we changed the input to number instead of timestamp and it worked. Lastly, the RBE was quite simple it just creates an exception and blocks any change that doesn't change the value by more than 20%.
Workflow:
We created one flow at a time, fully understanding what's going on before moving on to the next flow. We started with switch, then change, and range, and lastly RBE.
Flow Diagrams:
Parameters:
We created 4 new flows and added various nodes to them.
Evaluation & Discussion:
This ICP was pretty straightforward, we just had to create the 4 simple flows implementing the new nodes that we learned about in the lecture. We couldn't do the last part which is hooking up sensors and uploading the data to cloud because the sensors were not working properly.
Conclusion:
We learned about four very useful nodes in node-red and implemented them. The switch node can be used like a if/then statement or switch case statement where it looks for a case and outputs something depending on the input. The change node which can be used to detect input in order to change it to something else. The range node can take an input range and output range. And the RBE node creates an exception to block or allow things based on how the input changes.