Raspberry Pi Computing: Temperature Measurement by Malcolm Maclean

Raspberry Pi Computing: Temperature Measurement by Malcolm Maclean

Author:Malcolm Maclean [Malcolm Maclean]
Language: eng
Format: epub, pdf
Publisher: leanpub.com
Published: 2017-12-03T00:00:00+00:00


We will want to place a copy of this file which we will call temperatures-graph.html in the /var/www/html directory. A copy of it can be found in the code sample extras that can be downloaded with this book.

We can see the end result by putting the web address into our browser. It should look something like http://10.1.1.160/temperatures-graph.html. The end result should look a bit like the following (depending on the number of sensors you are using, and the amount of data you have collected)

Multiple Line Graphs of Temperature

One of the neat things about this graph is that it ‘builds itself’ in the sense that aside from us deciding what we want to label the specific temperature streams as, the code will organise all the colours and labels for us. Likewise, if the display is getting a bit messy we can click on the legend labels to show / hide the corresponding line.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.