Skip to content

AccessibleOlli/olli-stop

Repository files navigation

#AccessibleOlli bus stop concierge

Overview

Prerequisites

olli-stop requires olli-stop-backend. Follow the instructions to install olli-stop-backend before proceeding.

Installing

  1. Install Node
  2. Clone this repo
  • change to directory where you want to install
  • git clone [email protected]:AccessibleOlli/olli-stop.git
  • OR git clone https://github.com/AccessibleOlli/olli-stop
  1. Install node modules
  • cd olli-stop
  • npm install
  1. Copy the .env.template file to .env
  • cp .env.template .env

The file should look similar to the following:

PORT=44001
BROWSER=startChrome.js
REACT_APP_OLLI_STOP_IDX=3
REACT_APP_OLLI_BLIND_STOP_IDX=0
REACT_APP_OLLI_BLIND_STOP_DELAY=6000
REACT_APP_REMOTE_TELEMETRY_DB=http://admin:[email protected]:5984/telemetry_transitions
REACT_APP_REMOTE_EVENT_DB=http://admin:[email protected]:5984/rule_event_transitions
REACT_APP_REMOTE_PERSONA_DB=http://admin:[email protected]:5984/persona_transitions
REACT_APP_REMOTE_WS=wss://weather_service_proxy.mybluemix.net
REACT_APP_TEXT_PERSONA_IF_SET=true
REACT_APP_TEXT_PHONE_NUMBER=xxx-xxx-xxxx
  1. Change the CouchDB database urls to point to your CouchDB instance (with the appropriate credentials)

Running

  1. Make sure your proxy settings in package.json are configured properly to point to olli-stop-backend. It should look something like this:
"proxy": {
  "/socket": {
    "target": "ws://localhost:44000",
    "changeOrigin": true,
    "ws": true
  },
  "/": {
    "target": "http://localhost:44000",
    "changeOrigin": true
  }
}
  1. Ensure you are running olli-stop-backend if you want the weather component and sending directions to phone to work.
  2. npm start

Simulate bus movement events with ao_sim

  1. create telemetry_transitions database in CouchDB/Cloudant
  2. git clone [email protected]:pdykes/ao_sim.git
  3. cd ao_sim/telemetry
  4. export NODE_CONFIG_DIR=../config
  5. node telemetry.js
  6. in another terminal window 6. cd ao_sim/cmdline 7. export NODE_CONFIG_DIR=../config 8. node ao.js --control telemetry --operation enable

Simulate bus movement events with olli_sim

TODO