Skip to main content

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.

Pytests pypi version

Installation

> pip install volttron

Quick Start

  1. 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)

  2. Start the platform

    > volttron -vv -l volttron.log &>/dev/null &
    
  3. Install listener agent

    > vctl install volttron-listener
    
  4. View status of platform

    > vctl status
    
  5. 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

  1. Clone the repository

    git clone https://github.com/eclipse-volttron/volttron-core -b develop
    
  2. cd into volttron-core directory

    cd volttron-core
    
  3. Install volttron into the current directory

    poetry install
    
  4. Run tests

    poetry run pytest
    
  5. Activate environment (removes the need for add poetry run to all commands)

    poetry shell
    
  6. 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

volttron-10.0.1a34.tar.gz (246.1 kB view details)

Uploaded Source

Built Distribution

volttron-10.0.1a34-py3-none-any.whl (354.4 kB view details)

Uploaded Python 3

File details

Details for the file volttron-10.0.1a34.tar.gz.

File metadata

  • Download URL: volttron-10.0.1a34.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

Hashes for volttron-10.0.1a34.tar.gz
Algorithm Hash digest
SHA256 783d0b548a27c68bc483eb285a39ade2f5a77745045f4183ce5cb273e410ddb0
MD5 9b7ca4639a806c2f5c1f0a3f97d9cfa9
BLAKE2b-256 d6c55aec89dd0166881db546125355a82a9b8cca7833cf5be1deb3de2a3072c7

See more details on using hashes here.

File details

Details for the file volttron-10.0.1a34-py3-none-any.whl.

File metadata

  • Download URL: volttron-10.0.1a34-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

Hashes for volttron-10.0.1a34-py3-none-any.whl
Algorithm Hash digest
SHA256 35a940ec19c165ef0a05199f045940b51772fb899106b517134fecdc1fa64a16
MD5 b2f6465b5b8cb0d05c7b63e42e56d8c4
BLAKE2b-256 e66bb565747813a8d33e859dbe53e7fe2f242d49a373ae6029762ba9c6eb5704

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page