In this chapter, we combined everything we learned in the previous chapters to build a web-based dashboard with freeboard that displayed data in gauges every second. We built the solution from scratch. First, we analyzed the requirements and we understood how the IoT board embedded in a surfboard was going to provide us with the necessary data.
We coded a surfboard sensor emulator to work in the same way that the IoT board was working. Then, we configured the PubNub MQTT interface and we coded a surfboard monitor that collected data from the surfboard sensor emulator and published the data to the cloud-based PubNub MQTT interface. We coded a Python program that worked with two MQTT clients with two threaded loop interfaces.
Finally, we could take advantage of the fact that the messages published to the PubNub MQTT interface are also available on the PubNub network to easily...