-
Notifications
You must be signed in to change notification settings - Fork 3
Installing Openchirp
Khushboo Bhatia edited this page May 7, 2018
·
11 revisions
- Mongo DB - https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
- InfluxDB - https://docs.influxdata.com/influxdb/v1.5/introduction/installation/
- Redis - sudo apt-get -y install redis-server
- https://mosquitto.org/download/
- Mosquito Auth Plugin https://github.com/jpmens/mosquitto-auth-plug
- 2.1 Download and Install Mongo C Driver
- 2.2 Download Mosquitto Source code
- 2.3 Update config.mk ( Set yes for files and mongo backend and update SSL and mosquitto source code path)
- 2.4 Compile plugin
- 2.5 Update mosquitto configuration as follows:
#Path to auth plugin compiled above
auth_plugin /etc/mosquitto/auth-plug.so
auth_opt_backends files,mongo
# Mosquitto and Node.js share the same mongo database, so use the host and port of mongodb configured for rest
auth_opt_mongo_uri mongodb://localhost:27017`
#Database should be set to "openchirp" as it is shared by rest server and mosquitto
auth_opt_mongo_database openchirp`
#Table name should be set to "thingcredentials" as it is shared by rest server and mosquitto
auth_opt_mongo_user_coll thingcredentials
auth_opt_password_file /etc/mosquitto/passwords
auth_opt_acl_file /etc/mosquitto/acls
- Website : https://github.com/OpenChirp/website
- REST : https://github.com/OpenChirp/openchirp_rest
- Storage Service: https://github.com/OpenChirp/mqtt_influx_storage_service
- Mapper Service : https://github.com/OpenChirp/gpsmapper-service
- Grafana Dashboard : https://github.com/OpenChirp/grafana_dashboards
$ npm install // This will download all the javascript dependencies in package.json
$ npm start // Starts node.js with default settings in config/development.json and default port is 10010
- Create a google oauth client ID for your website here. Click on the Configure Project button. This will generate an oauth client id.
- Update REST config and website config with the generated oauth client ID.
- https://console.developers.google.com
OpenChirp is a research project started by the WiseLab at Carnegie Mellon University.
- Simple Device Tutorial
- PubSub Overview
- Time Series Data
- Device Tutorial
- Generate User Token Tutorial
- LoRaWAN Specific
-
Services
- Byte Translator
- Easybits
- Time Series Storage
- Event Trigger
- LoRaWAN Gateway
- GPS Mapper
- Custom Service
- Openchirp Packages
- REST API