Giter Site home page Giter Site logo

tee_eff_elle's Introduction

Tee Eff Elle

A small robot that tells you when the bus is coming. It runs on a Raspberry Pi Zero and a Scroll pHat HD

Demo

Getting Started

You will need to export these env variables:

export TFL_APP_ID="secret"
export TFL_APP_KEY="secret"
export NERVES_NETWORK_SSID="secret"
export NERVES_NETWORK_PSK="secret"

You can register for an API account at https://api.tfl.gov.uk

Then you can tell the Robot which bus stop you care about and how long does it take you to get there. Open config/config.exs and set bus_line, bus_stop and walking_time_in_minutes in this section:

config :tee_eff_elle,
  target: Mix.target(),
  config: %{
    bus_line: "390",
    bus_stop: "490000008W",
    walking_time_in_minutes: 10,
    tfl_app_id: System.get_env("TFL_APP_ID"),
    tfl_app_key: System.get_env("TFL_APP_KEY")
  }

It's time to build your Nerves app:

  • export MIX_TARGET=rpi0
  • Install dependencies with mix deps.get
  • Create firmware with mix firmware
  • Burn to an SD card with mix firmware.burn

Then you can connect a USB cable to the port marked as "USB" and run:

ping nerves.local

Until your Pi starts responding. Then you can connect to it with:

ssh nerves.local

tee_eff_elle's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.