Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi for  Python Programmers  Cookbook - Second Edition

You're reading from  Raspberry Pi for Python Programmers Cookbook - Second Edition

Product type Book
Published in Oct 2016
Publisher
ISBN-13 9781785288326
Pages 510 pages
Edition 2nd Edition
Languages

Table of Contents (18) Chapters

Raspberry Pi for Python Programmers Cookbook - Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Getting Started with a Raspberry Pi Computer Starting with Python Strings, Files, and Menus Using Python for Automation and Productivity Creating Games and Graphics Creating 3D Graphics Using Python to Drive Hardware Sense and Display Real-World Data Creating Projects with the Raspberry Pi Camera Module Building Robots Interfacing with Technology Hardware and Software List
Index

Viewing data from your own webserver


Gathering and collecting information into databases is very helpful, but if it is locked inside a database or a file it isn't much use. However, if we allow the stored data to be viewed via a web page it will be far more accessible; not only can we view the data from other devices, we can also share it with others on the same network.

We shall create a local web server to query and display the captured SQLite data and allow it to be viewed through a PHP web interface. This will allow the data to be viewed, not only via the web browser on the Raspberry, Pi but also on other devices, such as cell phones or tablets, on the local network:

Data captured in the SQLite database displayed via a web-page

Using a web server to enter and display information is a powerful way to allow a wide range of users to interact with your projects. The following example demonstrates a web server setup that can be customized for a variety of uses.

Getting ready

Ensure you have completed...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}