Introduction
Since I started playing around with TTN, I've been looking for a good way to visualise the data that's coming out of all the nodes.
Tze Jin Shee wrote an excellent story on how to get setup with NodeRed and Freeboard.io, integrating the two via Dweet.io and allowing us to create dashboards quickly and easily.
I thought I'd see if I could take this one step further and use Variables in NodeRed to automatically create the Dweet Channels - it turns out that it's easier than I could ever have expected!
Setup your NodeRed and Freeboard.io configuration
Follow the [excellent instructions](https://www.thethingsnetwork.org/labs/story/simple-iot-dashboard-display-with-node-red-and-freeboardio) that I mentioned in the introduction, or [launch your own NodeRed installation into IBM's Bluemix environment](https://nodered.org/docs/platforms/bluemix) (if it's the only app you run, it will be free!).
NOTE: If you do use Bluemix, go into the Source Code for your application and update packages.json to [contain the TTN Contrib module.](https://flows.nodered.org/node/node-red-contrib-ttn)
Upload the generic NodeRed Configuration
Take the JSON code from https://gist.github.com/proffalken/ba8a01efc9e6fe5e6dea073db98702b4 and "import" it into NodeRed.
You should see two boxes on your screen:
Double click on the "TTN Collector" and update the node to use the correct TTN application, using the Name and Access Key from your TTN Console.
Profit!
Congratulations!
All of your metrics and payloads are now available at https://dweet.io/dweet/for/[APP NAME]-[DEVICE ID]/ so for a device named "airquality01" running within an app named "mylocalcommunity", your data will be in JSON format at https://dweet.io/dweet/for/mylocalcommunity-airquality01
You can now configure Freeboard or anything else you wish to pull and display this data