Suggested Node RED Exercises - langanjp/PI-NodeRED GitHub Wiki
Now that you have an overview of working with Node-RED, these are some suggested activities to build on this tutorial:
- On the NWS feed, add weather stations that you are interested in (see http://forecast.weather.gov/stations.php?foo=0 for a listing)
- Build into one function that has an JavaScript object for all weather stations you want to monitor, instead of having multiple stations nodes as shown in the example
- Find a new json (or other) feed (either Raspberry PI or web) that you are interested in and get it into your PI system
- build AF Element Template
- build AF structure (including parent element)
- add mapping to AF template to globals
- use functions to get json in right format and set timestamp
- possible feeds:
- Track Raspberry PI health by sending Free Memory and CPU temp to your PI system
- Add the PI Sense HAT motion events to your PI System
- Change the websocket node to a more active data stream (e.g. some of the Raspberry PI info - to see how quickly the updates arrive back)
- Add multiple elements to the websocket call (i.e. bring back more than one piece of data)
- Install the Dashboard UI and display some PI System Data
- Start a Bluemix instance and move the NWS and PI Web API nodes into Bluemix
- Explore other nodes that you can add by looking at: https://flows.nodered.org
- Integrate with Amazon Echo / Alexa (search for Alexa)
- Use weather-underground add-in to get weather directly from nodes
- Optional: or program directly to Weather Underground API
- Add cache into PI Web API flow (check for 200 or 202 response from PI Web API; add cache and ability to re-process cache)
- Change to use PI UFL (e.g. add samba to Raspberry PI to allow you to copy to a windows machine, or add ftp scripting, etc.)
- Build your own custom "nodes" for PI Web API calls (https://tzapu.com/help-developing-node-red-custom-nodes and https://nodered.org/docs/creating-nodes)