Hello! Welcome to another Instructable from NextFab. In this Instructable we will be showing you how to construct your very own PiHub. What is a PiHub you ask? The PiHub is a free standing, desktop information center that uses a simple LCD screen and 5 button Interface to give time, weather, and some fun number trivia and famous quotes. The PiHub is easily customizable and with some Python knowledge, a user can go into the code and switch out and reorder functions to their hearts' content and take advantage of the plethora of APIs available online from such sites like https://www.mashape.com/ and google.

This project is a great stepping off point for a wealth of connected projects so relax, have fun, and learn something while building our PiHub.

Step 1: Materials and Setting Up the Pi

For this project you will need

- Raspberry Pi #any iteration will work, we use the Raspberry Pi 2 B
- Adafruit Blue&White 16x2 LCD+Keypad Kit for Raspberry Pi #found here http://www.adafruit.com/products/1115
- Ethernet Cable
- MicroSD card of at least 8 gb
- Wireless Adapter (optional) # this is a nice little one from Adafruit http://www.adafruit.com/products/814

At this time and if you haven't already, you should download and install NOOBs onto the SD card for the Pi. The folks at Raspberry Pi have put together a guide for this very purpose https://www.raspberrypi.org/documentation/installa...

You will also need to download some additional software that isn't already on the Pi. To access the APIs this project uses Unirest and Pywapi along with some additional internal libraries. Documentation for these programs is below

Unirest http://unirest.io/python

Pywapi https://code.google.com/p/python-weather-api/

Both sites give great code examples and detailed instructions on how to download them, but in a nut shell you're going to want to type in the following commands into the command line

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install python-pip

pip install unirest

The best way to install Pywapi is via the Pi's GUI (command is startx) and web browser and download the tar file from the site. For those unfamiliar with unpacking tars there's a lot of great resources online. This wikihow article gives a good step by step with plenty of images to work from http://www.wikihow.com/Extract-Tar-Files-in-Linux


About This Instructable




Bio: Collaborative workspace with digital and traditional fabrication tools, 3D printers, CNC machines, classes, events, and professional consulting services.
More by NextFab:3D Metal Flowers Processing Data with RasPi and Particle (formerly Spark) PiHub 
Add instructable to: