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

Eclipse VOLTTRON™

Eclipse VOLTTRON (eclipse-volttron/volttron-core) 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.

Eclipse VOLTTRON™ Python 3.10 Python 3.11 Pytests pypi version

Prerequisites

  • poetry >= 1.8.2

  • python >= 3.10

  • pip >= 24.0

    Note: Ubuntu 22.04 comes with python 3.10. To upgrade pip run python -m pip install --upgrade pip

Installation

This package installs the main components of Eclipse VOLTTRON (volttron-core, volttron-lib-auth, volttron-lib-zmq).

It is highly recommended you use a virtual environment for installing volttron.

python -m venv <directory name for your virtual env. for example .venv>
source .venv/bin/activate
export VOLTTRON_HOME=</path/to/volttron/home>
pip install volttron

Note you can also run pip install volttron-core volttron-lib-zmq volttron-lib-auth

Quick Start

  1. Setup VOLTTRON_HOME environment variable: export VOLTTRON_HOME=/path/to/volttron_home/dir

    NOTE This is mandatory 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 agents and optional libraries:

    Each volttron agent is in it own repository. Each agent's repository will have its own readme with instructions on how to install the agent and any optional libarires that could be used with the agent. But in general, agents should be installed using vctl install command.

    For example,

    vctl install volttron-listener
    

    All libraries that the agent depends on will automatically get installed in your current python environment.

    Optional Libraries

    In addition to mandatory libraries that are automatically installed during agent install, some agents could have optional features that are enabled or disabled based on availability of additional libraries. For example, an agent could support unit conversion if the python pint library is installed in the python environment. In order to install optional libraries use

    poetry add --directory $VOLTTRON_HOME <library name>
    

    Modular VOLTTRON uses poetry for dependency management. When VOLTTRON is started, it creates a poetry project (pyproject.toml file) in VOLTTRON_HOME directory and uses that for keeping track of all installed packages. For example, when you run vctl install volttron-listener an entry for that agent's package name and version gets added to $VOLTTRON_HOME/pyproject.toml. If you are installing optional libraries, such as pint use poetry add --directory $VOLTTORN_HOME pint instead of pip. Poetry will check if the version of volttron-core (and other librabries) in your current activated environment is compatible with requirements of the version of volttron-lib-bacnet-driver you are installing.

    Warning: You could use pip to install librabries, but pip will not check dependent library versions for compatibility and simply overwrite packages in the current environment. For example, if you are running volttron-core version 2.0.0 and volttron-lib-bacnet-driver has dependency on volttron-core version 1.0.0, pip install volttron-lib-bacnet-driver would overwrite volttron-core version 2.0.0 with version 1.0.0. However poetry add --directory $VOLTTRON_HOME volttron-lib-bacnet-driver will fail because of a version incompatibility error.

  4. View status of platform

    vctl status
    
  5. Shutdown the platform

    vctl shutdown --platform
    

Available Agents

Libraries

Links to important documentation

Contributing to VOLTTRON

Please see the contributing.md document before contributing to this repository.

Please see developing_on_modular.md document for developing your agents against volttron.

Disclaimer Notice

This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.

Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

volttron_core-2.0.0rc3.tar.gz (227.5 kB view details)

Uploaded Source

Built Distribution

volttron_core-2.0.0rc3-py3-none-any.whl (291.8 kB view details)

Uploaded Python 3

File details

Details for the file volttron_core-2.0.0rc3.tar.gz.

File metadata

  • Download URL: volttron_core-2.0.0rc3.tar.gz
  • Upload date:
  • Size: 227.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for volttron_core-2.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 d92476907075c2568005d1547312dde5e88f9bfda63796354d772dba0756f7fc
MD5 060f4ec57ac79b9413f4d76ce72a319d
BLAKE2b-256 5b98203fe8e4b6b5dbfbca7295609b0209265c7b7f3535353fc72228f63e31cd

See more details on using hashes here.

File details

Details for the file volttron_core-2.0.0rc3-py3-none-any.whl.

File metadata

  • Download URL: volttron_core-2.0.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 291.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for volttron_core-2.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 59d70e67078d28b1bb801483bf3ff768d77f2bc687df3c27c691deae1f254f30
MD5 09e0dbd655823d9669c595eee2918b9c
BLAKE2b-256 c57b0727ab17d27644d51c5ccbc3e5900232fc0d79c55dc81fc1629d82446465

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