olli-stop requires olli-stop-backend. Follow the instructions to install olli-stop-backend before proceeding.
- Install Node
- 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
- Install node modules
cd olli-stop
npm install
- 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
- Change the CouchDB database urls to point to your CouchDB instance (with the appropriate credentials)
- 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
}
}
- Ensure you are running olli-stop-backend if you want the weather component and sending directions to phone to work.
npm start
Simulate bus movement events with ao_sim
- create
telemetry_transitions
database in CouchDB/Cloudant git clone [email protected]:pdykes/ao_sim.git
cd ao_sim/telemetry
export NODE_CONFIG_DIR=../config
node telemetry.js
- 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