O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Plotting historical values

We are now ready to plot the values. We create a new Markdown page called History.md. In it, we create a script block in which we call the static method, extract the corresponding values, and then create the plot. We will want to reuse the same type of graph for all our historical values (minutes, hours, and days), so we first create a function, DrawGraph, which calculates the plot, and then call it with the results received from the static method we called:

Title: History Author: Peter Waher Description: This page displays historical values of the sensor. Cache-Control: max-age=0, no-cache, no-store CSS: Main.css Historical values ============================ The following graphs display historical values of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required