O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Raspberry Pi: Full Stack

Video Description

A whirlwind tour of full-stack web application development on the Raspberry Pi

About This Video

  • Become familiar with web development task

  • Get acquainted with Python

  • Create various user friendly services with Rasberry Pi

  • In Detail

    The objective of this course is to take you to a whirlwind tour of the Raspberry Pi, and introduce you to everything that is great about it.Structured as a project, you will become familiar with the various components that make up the web development stack: the operating system, the hardware (including the GPIOs), the application server, web server, database server, and the Python programming language.You will also become familiar with Cloud services that you will integrate into your Raspberry Pi-powered web application.You application will take sensor data and make them available to the user via a web interface that is constructed based on jQuery and HTML5.You will need a Raspberry Pi, a DHT22 sensor, a button, an LED, a few resistors and a breadboard. If you wish to setup wireless networking on your Raspberry Pi, you will also need a USB Wifi dongle.To make the most from this course, you should be familiar with basic programming and be comfortable with the command line.

    Table of Contents

    1. Chapter 1 : Introduction to the course
      1. Introduction 00:02:17
      2. About the Raspberry Pi 00:04:45
      3. Components 00:04:22
    2. Chapter 2 : The Operating System
      1. Section Introduction 00:00:25
      2. How to extract a tar.gz file 00:08:14
      3. Installing mini Raspbian using Mac OS X 00:16:35
      4. Installing mini Raspbian using Windows 00:14:43
      5. Section Conclusion 00:00:14
    3. Chapter 3 : Python and GPIOs
      1. Section Introduction 00:00:26
      2. Setup Python 00:13:55
      3. GPIO basics 00:08:37
      4. Make an LED blink 00:17:58
      5. Read the status of a button 00:09:53
      6. Read temperature and humidity from a digital sensor 00:15:54
      7. Section Conclusion 00:00:22
    4. Chapter 4 : Setup the Web application stack
      1. Section Introduction 00:00:24
      2. What is the Web application stack? 00:07:03
      3. Install Nginx, the Web server 00:02:50
      4. Install Flask and venv 00:09:17
      5. Install uWSGI 00:18:40
      6. Setup Upstart 00:10:19
      7. About log files 00:08:49
      8. Serving static assets and Skeleton 00:11:55
      9. Styling our Web application with Skeleton 00:09:12
      10. Debugging a Flask application 00:05:46
      11. Section Conclusion 00:00:20
    5. Chapter 5 : Building a simple Flask application on the Raspberry Pi
      1. Section Intro 00:00:31
      2. Show DHT22 sensor data in the browser 00:14:07
      3. Install the SQLite3 database 00:14:05
      4. Use a Python script to store sensor reading to the database 00:07:34
      5. Automate sensor data logging with cron and SQLite3 00:12:57
      6. Show historical sensor data in the browser 00:12:49
      7. Section Conclusion 00:00:22
    6. Chapter 6 : Improving our application with date-time range record selector
      1. Section Introduction 00:00:26
      2. Selecting historical sensor data records with a time-date range 00:07:12
      3. Define a date-time range in the URL 00:10:49
      4. Timezones in Rasbian 00:02:03
      5. Validating timestamps 00:06:24
      6. Tidying up: refactor our application code 00:03:32
      7. Section Conclusion 00:00:31
    7. Chapter 7 : Improving the user interface
      1. Section Introduction 00:00:30
      2. Adding date range radio buttons 00:19:17
      3. Visualise sensor data with Google Charts 00:18:35
      4. Install a datetime picker widgets 00:07:11
      5. Setting up the datetime picker widget 00:07:57
      6. Setting up time zones on the client side 00:08:31
      7. Setting up time zones on the server side 00:14:01
      8. Link the two pages of the application 00:05:29
      9. Section Conclusion 00:00:28
    8. Chapter 8 : Setup cloud charting and analysis with Plotly
      1. Section introduction 00:00:15
      2. Setup Plotly 00:10:19
      3. Add Plotly links 00:10:06
      4. Add Plotly support to the Flask application script 00:11:12
      5. Section Conclusion 00:00:28
    9. Chapter 9 : Other useful things to know
      1. Install and configure a Wifi USB dongle for wireless networking 00:22:23
      2. Quick setup guide for Nginx, uwsgi and Upstart Part 1 00:16:57
      3. Quick setup guide for Nginx, uwsgi and Upstart Part 2 00:13:01
    10. Chapter 10 : Conclusion
      1. Conclusion 00:02:25