Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi Blueprints

You're reading from   Raspberry Pi Blueprints Design and build your own hardware projects that interact with the real world using the Raspberry Pi

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784392901
Length 284 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Raspberry Pi Pirate Radio FREE CHAPTER 2. Portable Speaker System 3. Mini Retro Arcade Cabinet 4. GPS-enabled Time-lapse Recorder 5. Home Theater PC 6. Outdoor Weather Station 7. Home Security System 8. Remote-operated Robotic Arm 9. Magic Mirror 10. Bottle Xylophone Index

The weather station web application


To make the data we record from the weather sensors a bit more accessible, we will use a web application written in Python to display the current and historical data recorded from our weather station.

To do this, we will make use of a Python web application framework called Flask (http://flask.pocoo.org/), an application server called Gunicorn (http://gunicorn.org/), and a reverse proxy server called Nginx (http://nginx.org/).

The web application will have two pages, one will show the current weather conditions and the other will show the history of the weather conditions over a given time range. To help visualize the data on both the pages, we will use the Google Charts API (https://developers.google.com/chart/). This is a JavaScript API that allows the creation of interactive charts on a web page.

Deploying the app on the Pi

It's now time to deploy our web application on the Pi. To do this, we will use the Nginx reverse proxy server and the Gunicorn web...

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 $19.99/month. Cancel anytime
Banner background image