O'Reilly logo

Programming the BeagleBone by Yogesh Chavan

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

A program to display temperature remotely

This is a useful program in real-life and can be part of your home automation. You will be able to get temperature information from BeagleBone to any Internet connected smartphone/computer. We need to create one HTML file and one Python file for this exercise. Let's write an HTML file first. This HTML file is not hard-coded to show temperature value. It will get temperature value at run time. This type of HTML file defines a pattern or model of how a webpage should look at run time. So, they are called templates in Flask. A template HTML file needs to be created inside the directory templates. So, open Cloud9 IDE. Inside the left-side workspace pane, create a new directory called templates under cloud9 ...

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