Skip to content
jhaack edited this page Oct 28, 2015 · 12 revisions

The VOLTTRON project includes a bootstrap script which automatically downloads dependencies and builds VOLTTRON. The script also creates a Python virtual environment for use by the project which can be activated after bootsraping with ". env/bin/activate". This activated Python virtual environment should be used for subsequent bootstraps whenever there are significant changes. The system's Python need only be used on the initial bootstrap.

Before bootstrapping, ensure the required packages are installed. If you intend to develop in Eclipse, we recommend creating the work directory: ~/git or ~/workspace. Then run the following commands in the work directory to work with the master branch of the repository:

For other options see: [Getting VOLTTRON](VOLTTRON Source Options)

Note: Some packages (especially numpy) can be very verbose when they install. Please wait for the wall of text to finish.

To test that installation worked, start up the platform in verbose mode and set a log file:

  • Activate the paltform: . env/bin/activate or source env/bin/activate
  • Start the platform volttron -vv -l volttron.log&
  • If it starts with no errors, then your setup is correct
  • If you are developing in Eclipse, you should update the Python path at this point. See: EclipseDevEnvironment

Note: The default working directory is ~/.volttron. The default directory for creation of agent packages is ~/.volttron/packaged

To test agent deployment and messaging, build and deploy ListenerAgent. From the volttron directory:

  • Activate the paltform (if not already activated): . env/bin/activate or source env/bin/activate
  • Package the agent: volttron-pkg package examples/ListenerAgent
  • Set the config file: volttron-pkg configure ~/.volttron/packaged/listeneragent-3.0-py2-none-any.whl examples/ListenerAgent/config
  • Install agent into platform (with platform running): volttron-ctl install ~/.volttron/packaged/listeneragent-3.0-py2-none-any.whl
  • Start the agent: volttron-ctl start --name listeneragent-3.0
  • Check status: volttron-ctl status
  • Note the uuid
  • Check that Listener is publishing heartbeat message: cat volttron.log
  • Stop the agent with: volttron-ctl stop --name listeneragent-3.0 or with volttron-ctl stop <uuid>

See Speeding Up VOLTTRON Builds for information on improving VOLTTRON build times.

Wiki Home

Quick Start Guide

Getting VOLTTRON

VOLTTRON Community

VOLTTRON Core Services

Historians

Drivers

Instance Management

Applications
  • ...
Examples
Developers
HOWTOS

VOLTTRON Versions and Features

Transactional Network Platform Overview

Platform Services

Volttron Restricted

Information Exchange Standards

FAQ

Project Home

Clone this wiki locally