Skip to Content
Raspberry Pi 3 Cookbook for Python Programmers - Third Edition
book

Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

by Steven Lawrence Fernandes, Tim Cox
April 2018
Beginner content levelBeginner
552 pages
13h 58m
English
Packt Publishing
Content preview from Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi for Python Programmers Cookbook - Second Edition

Raspberry Pi for Python Programmers Cookbook - Second Edition

Tim Cox

Publisher Resources

ISBN: 9781788629874Supplemental Content