DEV Community

Cover image for Craft IoT Data Visualizations with Ubidots
Rob Lauer for Blues

Posted on • Updated on

Craft IoT Data Visualizations with Ubidots

To say IoT device deployments of every shape and size are booming is a bit of an understatement. Want some hard numbers? IDC is predicting more than 55 billion devices will be deployed in the field by 2025. And the data associated with said devices? How does 73 zettabytes (that's 80,000,000,000,000 GB) sound? 🤯

Collected data might be something minuscule: a single data point from a single sensor logged once per hour. On the other end of the spectrum consider environmental sensor data monitoring volatile compounds. Data from these sensors could be accumulated in millisecond timeframes, 24/7/365, to ensure stability.

One piece of the puzzle is the collection of this data in the cloud. Another piece is deriving meaningful insights from the data. The ability to create intuitive dashboards and data visualizations is paramount. This is where customizable solutions like Ubidots come into play.

In this article we'll take a high level look at routing data collected from a device to a dashboard with hardware and services from Blues Wireless and Ubidots.

From Device to Cloud

It's no secret that pumping sensor data from your average IoT implementation to the cloud is no trivial task. Factor in remote deployments outside the range of WiFi and Bluetooth, and cellular is likely your best option. Why? It's secure, reliable, and ubiquitous (especially when even 2G is more than enough for transmitting sensor data).

Where am I going with this? Let me introduce you to the Notecard from Blues Wireless:

The Notecard is a developer-focused device-to-cloud data pump built to address key pain points experienced today with cellular IoT:

  • It's developer-friendly. 🤗
  • Pricing is predictable (and affordable, starting at $49 for 10 years and 500MB of data). 🤑
  • Provisioning is automatic and security is baked-in. 🔐

For just a moment let's hone in on the "developer-friendly" aspect. Traditional cellular IoT platforms rely on using arcane AT command syntax, such as:

AT+CSQ
AT+CREG=1
AT+CREG?
AT+COPS=?
Enter fullscreen mode Exit fullscreen mode

...OR do a 180 degree pivot and abstract the complexity away to such an extent that individual use cases are nearly impossible to implement.

How does the Notecard solve this? JSON!

All commands to and from the Notecard are pure JSON, opening the door to developers of all types. For example, should we want to send sensor data in an event (i.e. "note") from Notecard to the cloud, this is how it might be composed:

{
    "req":"note.add",
    "body":{
        "temp":35.5,
        "humid":56.23
    }
}
Enter fullscreen mode Exit fullscreen mode

A req is a request and the body of the request is an object containing temperature and humidity values.

Curious to know more about the Notecard? Check out the Blues Wireless developer portal.

From Cloud to Route

The beauty of Notecard lies not just in the cellular hardware and developer experience, but in its cloud-connected service: Notehub.

notehub dashboard

Notehub enables synchronization of data between the cloud and your Notecard devices. It's available as a SaaS platform at notehub.io, but is also open-source, allowing you to customize it for your needs.

There is a lot we could talk about with Notehub, such as:

  • Cloud-initiated device firmware updates.
  • Organizing IoT projects and teams.
  • Managing fleets of IoT devices.

However, the key feature that enables us to utilize the data visualization capabilities of Ubidots are Notehub routes.

From Route to Dashboard

Notehub routes allow you to pipe (and optionally transform) data to your cloud provider of choice. Are you already invested in AWS, Azure, or GCP? Or in the context of this article, IoT-optimized platforms like ThingSpeak, InitialState, or Ubidots? Notehub has you covered.

To route our data to Ubidots, we simply provide Notehub authentication credentials and an endpoint. Every time Notehub receives events from a Notecard, they will immediately be routed to Ubidots.

notehub ubidots route

What's Ubidots you ask?

Ubidots is a cloud service which provides data collection, analysis, and visualization tooling for connected IoT projects.

With data streaming from a Notehub route to Ubidots, we're able to add visualizations to better understand what our devices are telling us.

The intuitive interface of Ubidots allows you to quickly add one of many pre-defined data visualization widgets.

ubidots widgets

Case in point: I spent all of about three minutes creating a histogram to show the frequency of temperature ranges over a given time period along with a thermometer to show the most recent reading:

ubidots demo dashboard

Next Steps

Adding engaging data visualizations for your IoT-generated data can make sense for more use cases than running an industrial sensor pulling in MBs of data every day. Even much smaller implementations can find value in these visual dashboards.

Take your next step with the Notecard and Ubidots by:

  1. Reading over the Ubidots routing tutorial in the Blues Wireless developer portal.
  2. Grabbing your own Notecard Developer Kit (and go through the tutorial for real!).
  3. Signing up with Ubidots and creating some amazing dataviz dashboards.

And if you've made it this far, we're happy to offer a discount code for your Notecard Developer Kit! Just use this link for 10% off.

Top comments (1)

Collapse
 
mobindustry profile image
Mobindustry

Thank you for sharing this tutorial and demonstrating all the benefits of the Ubidots tool. Find it very helpful for those who plan to develop an IoT dashboard