Skip to content

AccessibleOlli/ces-stop-arrivals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#AccessibleOlli bus stop arrivals board

Overview

Prerequisites

ces-arrivals-board 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/ces-stop-arrivals.git
  1. Install node modules
  • cd ces-stop-arrivals
  • npm install
  1. Copy the .env.template file to .env
  • cp .env.template .env

The file should look similar to the following (change the CouchDB database urls to point to your CouchDB instance and database (with the appropriate credentials):

PORT=44002
BROWSER=startChrome.js #optional
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_OLLI_STOP_IDX=3

Running

  1. Make sure your proxy setting in package.json is configured properly to point to olli-stop-backend. It should look something like this:
"proxy": "http://localhost:44000"
  1. Ensure you are running olli-stop-backend if you want the weather component 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