VOLTTRON™ is an open source platform for distributed sensing and control. The platform provides services for collecting and storing data from buildings and devices and provides an environment for developing applications which interact with that data.
Project description
VOLTTRON™ is an open source platform for distributed sensing and control. The platform provides services for collecting and storing data from buildings and devices and provides an environment for developing applications which interact with that data.
Installation
> pip install volttron
Quick Start
-
Setup VOLTTRON_HOME environment variable: export VOLTTRON_HOME=/path/to/volttron_home/dir
NOTE This is madatory if you have/had in the past, a monolithic VOLTTRON version that used the default VOLTTRON_HOME $HOME/.volttron. This modular version of VOLTTRON cannot work with volttron_home used by monolithic version of VOLTTRON(version 8.3 or earlier)
-
Start the platform
> volttron -vv -l volttron.log &>/dev/null &
-
Install listener agent
> vctl install volttron-listener
-
View status of platform
> vctl status
-
Shutdown the platform
> vctl shutdown --platform
Full VOLTTRON documentation available at VOLTTRON Readthedocs
Contributing to VOLTTRON
Please see the contributing.md document before contributing to this repository.
Development of VOLTTRON
Environment
VOLTTRON_HOME
Setup VOLTTRON_HOME environment variable: export VOLTTRON_HOME=/path/to/volttron_home/dir.
This is madatory if you have/had in the past, a monolithic VOLTTRON version that used the default VOLTTRON_HOME $HOME/.volttron. Modular version of VOLTTRON cannot work with volttron_home used by monolithic version of VOLTTRON(version 8.3 or earlier)
Poetry
VOLTTRON uses Poetry, a dependency management and packaging tool for Python. If you don't have Poetry installed on your machine, follow these steps to install it on your machine.
To check if Poetry is installed, run poetry --version
. If you receive the error 'command not found: poetry', add the following line to your '~/.bashrc' script: export PATH=$PATH:$HOME/.local/bin
.
Recommended configuration for poetry
By default, poetry creates a virtual environment in {cache-dir}/virtualenvs. To configure 'poetry' to create the virtualenv inside this project's root directory, run the following command:
poetry config virtualenvs.in-project true
Setup
-
Clone the repository
git clone https://github.com/eclipse-volttron/volttron-core -b develop
-
cd into volttron-core directory
cd volttron-core
-
Install volttron into the current directory
poetry install
-
Run tests
poetry run pytest
-
Activate environment (removes the need for add poetry run to all commands)
poetry shell
-
Run volttron
volttron -vv -l volttron.log &>/dev/null &
Using modules to run VOLTTRON
In order to run VOLTTRON from within an ide the recommended way is to run the platform using the modules
> poetry shell
> python -m volttron.server -vv -l volttron.log &
> python -m volttron.commands.control -vv status
Please see the contributing.md document before contributing to this repository.
Happy Editing!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file volttron-10.0.1a33.tar.gz
.
File metadata
- Download URL: volttron-10.0.1a33.tar.gz
- Upload date:
- Size: 246.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0b2 CPython/3.8.14 Linux/5.15.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 593ab6173a2d21110ef69a5508ae92ac21744e6a89cd6a85c31f0d891aa0a925 |
|
MD5 | 8c72571a7c378e245908e01e39faa559 |
|
BLAKE2b-256 | 51401f9857325e83eb311e749e343179fe8df3d48ed68ae24d0d8d524f7ba4a4 |
File details
Details for the file volttron-10.0.1a33-py3-none-any.whl
.
File metadata
- Download URL: volttron-10.0.1a33-py3-none-any.whl
- Upload date:
- Size: 354.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0b2 CPython/3.8.14 Linux/5.15.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 052c716a7ded704045af25c6806f16ab2890edc53b3d784390db376b8d6ec8e4 |
|
MD5 | 16378ebffcdce6aa9e2a47ee8a9ebcd9 |
|
BLAKE2b-256 | d6d2f9e9822b48af2822c0bdfbb8f70315a8626e4876edd8db9fd6272fafc99e |