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

Adding simple Markdown content to the sensor project

Now that we can publish information using Markdown, let's add a new content file called Index.md to the web content Root folder in our sensor project. Let us add the following simple Markdown:

Title: Momentary 
Author: Peter Waher 
Description: This page displays the current state of the sensor. 
Cache-Control: max-age=0, no-cache, no-store 
CSS: Main.css 
Javascript: UpdateGauge.js 
 
Current state 
============================ 
 
The following table contains the current state of the sensor. 
 
| Sensor    | Value                     | 
|:----------|:--------------------------| 
| Light     | {SensorHttp.App.Light}    | 
| Motion    | {SensorHttp.App.Motion}   | 
 
![Light Gauge is green, if motion is detected.](/Momentary) 
Even though you ...

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