GitHub - SoftwareDefinedBuildings/openbas: UC Berkeley Open Building Automation Systems (OpenBAS) (original) (raw)
OpenBAS
Deployment Setup
See INSTALL.md
in this directory
Development Setup
Getting Started
Install Meteorite.
To install all the dependencies and run the app:
cd openbas
mrt --settings settings.json
When cloning this for the first time, make sure that you have the upmu-plotter
submodule updated. To do this, run the following command from the same directory as this README:
git submodule update --init
git submodule foreach git pull origin master
Problems Being up to date?
- from clean openbas install
mrt migrate-app
-- this will fail- remove accounts-ui-bootstrap-3 and collectionfs from smart.json, remove trailing comma from line 8
mrt install
mrt migrate-app
- remove
cfs-*
,collectionfs
from packages, .meteor/packages meteor remove cmather:iron-router
meteor add iron:router
meteor add mizzao:jquery-ui
meteor remove mizzao:jqueryui
meteor remove mrt:bootstrap-3
meteor add mizzao:bootstrap-3
sed -e 's/^[a-zA-Z0-9]/meteor remove &/' .meteor/packages | sed 's/\@[0-9\.]*//g' > packages-rm.sh
sed -e 's/ remove / add /' packages-rm.sh > packages-add.sh
bash packages-rm.sh
meteor list
meteor update
bash packages-add.sh
meteor add cfs:standard-packages
meteor add cfs:filesystem
meteor --settings settings.json
should work
If on Ubuntu system:
Install Meteor
curl https://install.meteor.com | sh
Put Meteor's node on the path
export PATH=~/.meteor/tools/latest/bin:$PATH
Install NPM, Node's package manager
Install meteorite
sudo -H npm install -g meteorite
From within the openbas folder, run the following to install dependencies and run the app
mrt --settings settings.json
Running OpenBAS
- change subscription key in building.ini for your local archiver
- change archiver location in settings.json for local archiver
- change public.site in settings.json to be Metadata/Site for building.ini
- install pymongo:
OR
sudo apt-get install python-pymongo
then run the source:
twistd -n smap building.ini