Getting started with Raspberry Pi (and WebIoPi framework)

Similar documents
Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

Topics. What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack!

Adafruit's Raspberry Pi Lesson 6. Using SSH

Preparing SD card for Pi

SIMICART USER GUIDE SERIES. SimiCart Install SimiConnector

User Guide. Version 8.0

RETROPIE INSTALLATION GUIDE

Atlas iot. Installation guide V 1.0

Uploading a Submission

High Voltage Module Raspberry Pi Documentation Page 1

Lab: Setting up PL-App with a Raspberry Pi

Adafruit PiUART - USB Console and Power Add-on for Raspberry Pi

UM2375 User manual. Linux driver for the ST25R3911B/ST25R391x high performance NFC frontends. Introduction

If you experience issues at any point in the process, try checking our Troublshooting guide.

Building a standalone access point using a Raspberry Pi Zero W

Raspberry Pi Setup Tutorial

EAN-FPGA Firmware Update 1500-OEM

Quick Note 24. Extracting the debug.txt file from a TransPort. Digi Technical Support. February Page 1

This Game HAT will turn your Raspberry Pi into a classic game console in a. 60 frame experience, smoothly display, no more frame loss

XLink Kai Raspberry Pi Beginners Tutorial

Spring 2017 Gabriel Kuri

Open a browser and download the Apache Tomcat 7 and Oracle JDBC 6 JAR from these locations. The Oracle site may require that you register as a user.

MAGENTO 2 INSTALL EXTENSION MANUALLY

Hands-on Labs using the WLAN Pros ODROID Performance Testing Device

Web based testing: Chucklist and Selenium

SUREedge DR Installation Guide for Windows Hyper-V

Windows quick start instructions Pg. 1. OS X quick start instructions Pg. 4. ios quick start instructions Pg. 6

Digital Free Library. Created by Kirby Griese. Last updated on :35:15 PM UTC

Raspberry Pi based MP3 jukebox with USB display board 2014 Russell Kramer

Author A.Kishore/Sachin WinSCP

Retrieve Download File from CSDI Installation Instructions

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

Lesson 7: Recipe Display Application Setup Workspace

SUREedge MIGRATOR INSTALLATION GUIDE FOR HYPERV

Ricoh Managed File Transfer (MFT) User Guide

This Quick Start describes how to use Bocconi Cloud Service, called Filr in the rest of the document, from your Windows desktop.

SUREedge MIGRATOR INSTALLATION GUIDE FOR NUTANIX ACROPOLIS

0. Introduction On-demand. Manual Backups Full Backup Custom Backup Store Your Data Only Exclude Folders.

MediaTek LinkIt Smart 7688 Get Started Guide

WA2402 Introduction to Responsive Web Development with HTML5, CSS3, JavaScript and jquery. Classroom Setup Guide. Web Age Solutions Inc.

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Unzip the provided Minix Virtual Machine. This will provide you with the files Minix3.1.8.vdi and Minix LCOM.vbox.

Ftp Get Command Line Windows 7 Boot Into >>>CLICK HERE<<<

CKHS VPN Connection Instructions

Install New Java Client, Release GL 3.1 For Workstations Currently without Java

EXTENSION FOR MAGENTO 2. (Updated May 23 rd 2017) INSTALLATION GUIDE

Configuration the Raspberry Pi for the SmartPI. There are two ways to install the necessary software to use the SmartPi with your Raspberry Pi!

Remote Access User Guide for Mac OS (Citrix Instructions)

!!!!!!!!!!Please Read before upgrading!!!!!!!!

Getting Started Guide XC9010 Raspberry Pi Starter Kit

Manual of ET-LCD SW HAT

Table of Contents. Introduction... 3 System Requirements... 3 Tutorial Videos... 3 Installing Racknet... 4 Support... 10

5inch HDMI LCD (B) User Manual

SAM4S Receipt Printer JPOS Driver. Mac OS X Installation Manual

Fixed Header edream Market

Communications Library Manual

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Summary. approximately too ). Download and. that appear in. the program. Browse to and

SAP GUI 7.30 for Windows Computer

INSTALLATION INSTRUCTIONS FOR IPYTHON ENVIRONMENT

PRELIMINARY. BASpi I/O Demo Quick Start Guide. Instruction Sheet BASpi I/O

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile.

Raspberry Pi Kernel-o-Matic

umapps Using umapps 6/14/2017 Brought to you by: umtech & The Center for Teaching & Learning

Joomla 2.5 Kunena Component Installation

SETTING UP AND RUNNING A WEB SITE ON YOUR LENOVO STORAGE DEVICE WORKING WITH WEB SERVER TOOLS

Security Camera. by maartenbrysbaert. The SeCam is a security camera that allows you to: - Livestream. - Rotate your camera 180 degrees

Fairfield University Using Xythos for File Storage

ConnectUPS-X / -BD /-E How to use and install SSL, SSH

Branding Customizations

RaspiDigiHamClock. Raspberry Pi Amateur Radio Digital Clock. v WA4EFH R.Grokett

WA2393 Data Science for Solution Architects. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

The University of Toledo Intune End-User Enrollment Guide:

Intel Galileo Board. Getting Started Guide. 02 October Order Number: US

Key File Generation. November 14, NATIONAL STUDENT CLEARINGHOUSE 2300 Dulles Station Blvd., Suite 220, Herndon, VA 20171

Standard Edition (SE) application development Enterprise Edition (EE) enterprise development Micro Edition (ME) Internet of Things (IoT) development

RX300 Settings Manual General

Homework #1: SSH. Step 1: From the start button (lower left hand corner) type Secure. Then click on the Secure Shell File Transfer Client.

K9 Series Firmware Update Guide

FACEBOOK CONNECT PLUG-IN USER GUIDE

Enable SSH Access on the Tenable Virtual Appliance (4.4.x-4.7.x) Last Revised: February 27, 2018

owncloud Android App Manual

Deploying Cisco Nexus Data Broker Embedded for OpenFlow

BeagleBone Black: Installing Operating Systems

SiaBerry OS. Quick Start Guide v An Operating System for Using Siacoin on Raspberry Pi 3. By Kete Tefid

Unit: Making a move (using FTP)

WA2592 Applied Data Science and Big Data Analytics. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc.

Administration Guide. 05 Apr TM and copyright Imagicle spa

IoTivity Development on ARTIK 530s

Remote Access to Unix Machines

Adobe Dreamweaver CS5 Tutorial

Studywiz Extractor Installation Guide SIMS Multi-School

You will need to know the IP address or the hostname of the pi (as discussed above) to continue and login to your pi via putty over Ethernet.

Branding Customizations

Raspberry Pi NTP Clock Setup Guide

WA2256 Responsive Mobile Web Development with HTML5, CSS3, JavaScript, and jquery Mobile. Classroom Setup Guide. Web Age Solutions Inc.

This document is intended to help you connect to the CVS server on a Windows system.

Adafruit's Raspberry Pi Lesson 2. First Time Configuration

GIGABYTE. Software Reference Guide for MP30 (APM) Platform R01. Document Version:

WinSCP. Author A.Kishore/Sachin

Transcription:

Getting started with Raspberry Pi (and WebIoPi framework) 1. Installing the OS on the Raspberry Pi Download the image file from the Raspberry Pi website. It ll be a zip file as shown below: Unzip the file to reveal the Image file with.img extension

Plug in the Micro SD card into the System and open Win32Disk imager software that s used to flash the Image file onto the Memory card. Inside the application, select the Destination drive as the SD card and in the source file, select the recently extracted.img file as shown below:

4 Now, hit the Write button. The Application will begin writing the OS onto the Memory Card as shown below: Once done, you ll see this confirmation dialog box:

Now, plug in the SD card back to the Raspberry Pi. Use a LAN cable to be able to SSH into the Raspberry Pi if a display device is not connected to the Raspberry Pi. The IP address assigned to my Raspberry Pi after connecting it to the Network is 169.254.39.71. In order to access the remote terminal of the Raspberry Pi, we need to use PuTTY software, details of which are shown below. SSHing into the Raspberry Pi Open PuTTY software and key in the IP address of the Raspberry Pi as determined from the Network:

Hit Open If you get this warning, please select the Yes button.

Login with the following default credentials:

Username: pi Password: raspberry If you correctly provided the credentials, you should be logged in and should be able to see shell prompt as shown below: If this is a first installation, we need to run the raspi-config command that ll configure the Raspberry Pi for first use and also expand the root file system.

( Note: how the Size is only 2.9G on a 4GB SD Card. The remaining space will be claimed after running the above command)

Select Expand rootfs and hit Enter

Now, hit Finish. The Raspberry Pi will now reboot for the changes to take effect.

Once the device Reboots, login via SSH again and test for free space:

It should now show as 3.6G Installing WebIoPi framework on Raspberry Pi Navigate to the Downloads page on WebIoPi website: https://code.google.com/p/webiopi/wiki/downloads Select the WebIoPi 0.7.1 tar file from this link: http://sourceforge.net/projects/webiopi/files/ http://sourceforge.net/projects/webiopi/files/webiopi-0.7.1.tar.gz

Make sure the file has been downloaded:

Once done, we need to unzip the file. Use the following command to unzip it:

Once it s been successfully extracted as shown below, we need to change our working directory to the extracted folder:

This folder contains the following files as shown below: Run the setup file by typing in the following command:

Once done, it ll start installing and Configuring WebIoPi on the Raspberry Pi device:

If

Once done, in order to run WebIoPi, type in the following command:

You should see these server messages. Now, open any browser and hit in the IP address of the Raspberry Pi followed by port 8000 with a colon as shown below: http://ip:8000

If you see this page, you ve successfully configured WebIoPi: Select the GPIO header to toggle the GPIO pins:

Creating our Custom Application based on the WebIOPi framework: We ll now look at creating our own Web App that controls Hardware connected to the GPIO of the Raspberry Pi. The main elements of the App (like any Web App) are: 1. Frontend Which is an HTML page and uses HTML, JavaScript and jquery 2. Backend Which is written in Python and works with the GPIO Firstly, we d need to create a custom directory within our working directory so that we can later direct the WebIOPi server to load this app instead of the default page.

Once created, let s navigate to that folder and create two subfolders html and python within it. We now have two folders within the main Project folder. We now need to create a HTML file called as index.html within the html folder and a script.py file within the python folder.

Now, I ve saved the files locally in my system. We ll use FileZilla to transfer these files from our System to the Raspberry Pi.

If you get an error like this:

If the error still persists, delete the local file from the Raspberry Pi and copy over from the FTP client.

Once this has been done, we now need to edit the config file of WebIoPi so that it loads our custom Web App.