BuildingDepot v3.3 (link)
BuildingDepot (BD) is a data sensor and actuation system for building management and control. It consists of a central server that uses a RESTful API to send (POST) and retrieve (GET) data. The typical data that BD stores is sensor data for buildings, including data from wireless sensor networks, existing SCADA systems, and other related data sources.
The BD server consists of three separate services - the DataService, the DirectoryService, and the UserService.
- Installation
- What's Installed
- Configuration
To install BD, you can just run the install.sh script in the installation folder. The default installation location is /srv.
-
Extract the package and cd into the folder**:
$ tar -xzf buildingdepot-3.#.#.tar.gz $ cd buildingdepot-3.#.#/
-
Run the installer (if running the installer using sudo, please consider adding -H flag)
$ ./install.sh
This will install BuildingDepot in the default installation location /srv/buildingdepot with the following directory structure:
- buildingdepot
- CentralService - CentralService
- DataService - DataService
- CentralReplica - The central replica that is present at every DataService
- venv - Python Virtual Environment
- Note: This installer installs the BD DataService, CentralService, MongoDB, InfluxDB and Redis on the same machine. The installer also requires a Mail Transfer Agent or Gmail APIs. The installer has an optional requirement to use SSL certificates.
To upgrade to a new version of BD for an existing installation, run the upgrade_to_latest_BD.sh script in the scripts folder. The default installation location is /srv.
-
Extract the new package and cd into the folder:
$ tar -xzf buildingdepot-3.#.#.tar.gz $ cd buildingdepot-3.#.#/
-
cd into the scripts folder:
$ cd scripts/
-
Run the installer (if running installer using sudo, please consider adding -H flag)
$ ./install.sh
The BD Installer configures BD with some default values.
The CentralService can be accessed on port 81, and the DataService on port 82.
CentralService
To access the CentralService, go to
URL - https://:81
DataService
To access the DataService, go to
URL - https://:82
-
The following packages are installed using apt-get
-
openssl
-
python3-setuptools
-
python3-dev
-
build-essential
-
python3-software-properties
-
mongodb
-
python3-pip
-
nginx
-
supervisor
-
redis-server
-
influxdb
-
The following packages are installed in the python virtual environment
-
Flask
-
mongoengine
-
Flask-Login
-
Flask-Script
-
Flask-OAuthlib
-
jsonschema
-
pika
-
Sphinx
-
sphinx-theme
-
Flask-WTF
-
Flask-Bootstrap
-
uWSGI
-
redis
-
influxdb
-
pymongo
-
aniso8601
-
firebase-admin