How it works...

The show_data_lite.php file shall display the temperature data that has been stored within the SQLite database (either from the ADC samples or local data sources).

The show_data_lite.php file consists of standard HTML code, as well as a special PHP code section. The HTML code sets ACD Data as the title on the head section of the page and uses the following command to make the page automatically reload every 10 seconds:

<meta http-equiv="refresh" content="10" > 

Next, we define a Delete button, which will load the del_data_lite.php page when clicked:

<input type="button" onclick="location.href = 'del_data_lite.php';" value="Delete"> 

Finally, we use the PHP code section to load the SQLite database and display the Channel 0 ...

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.