Skip to content

TaylorHokanson/PiCTA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

PiCTA

###PiCTA

This project uses the Chicago Transit Authority API to track the next two bus arrivals outside my house. I made it because I'm always checking and rechecking this information on my phone. PiCTA only displays the predicitions I care about and updates them automatically without any interaction on my part.

Most of these components were sponsored by Newark / Element14 - thanks guys!

###BOM

Part Cost
RPi 7" touchscreen $75
RPi 7" touchscreen enclosure $15
Raspberry Pi board (tested on B2 v1.1) $40
USB wifi dongle $12
Mini USB power supply $8
Total $150

###Basic Setup

  1. Assemble touchscreen/case
  2. Install NOOBS/Jessie (Wheezy didn't work)
  3. sudo nano /boot/config.txt
  4. Add lcd_rotate=2 at the end
  5. reboot
  6. sudo raspi-config
  • Set time (important for CTA tracking)
  • Enable SSH
  • Disable overscan
  1. reboot
  2. Connect to wifi (icon at top right)
  3. Determine Pi IP address
  4. SSH to Pi
  5. sudo apt-get update
  6. sudo apt-get upgrade

###Server/Kiosk Setup

  1. sudo apt-get install iceweasel
  2. sudo apt-get install apache2 -y
  3. sudo apt-get install php5 libapache2-mod-php5 -y
  4. cd /var/www
  5. sudo chown pi: html
  6. Replace the contents of /var/www on your RPi with the files from this repository
  7. Navigate RPi browser to RPi IP (do not open local file directly)
  8. Edit getxml.php and add your API key, route, and stop ID (see php file for links)
  9. Edit style.css to add a custom font
  10. Follow these instructions for Firefox to setup kiosk mode
  11. sudo reboot now

###Next Steps

  1. Sometimes the page tries to load before the server fires up. Hasn't happened lately, so I can't pin down the problem.
  2. Would be fun to add more features, like maybe animated weather backgrounds and automatic startup based on day of week and time of day.

About

Raspberry Pi Chicago Transit Authority Bus Tracker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published