Skip to content
jhaack edited this page Oct 1, 2014 · 8 revisions

Under construction

MultiBuilding config:

{
    "building-publish-address": "tcp://127.0.0.1:12201",
    "building-subscribe-address": "tcp://127.0.0.1:12202",
    "uuid": "MultiBuildingService",
    "hosts": {
        "campus/platform1": {
            "pub": "tcp://127.0.0.1:12201",
            "sub": "tcp://127.0.0.1:12202"
        },
        "campus/platform2": {
            "pub": "tcp://127.0.1.1:12201",
            "sub": "tcp://127.0.1.1:12202"
        }
    }
}

GreeterAgent config: { "agentid": "Greeter1", "receiving_platforms": ["platform2"] }

PlatformConfiguration

. env/bin/activate

mkdir ~/.platform1
VOLTTRON_HOME=~/.platform1 volttron -vv -l platform1.log&
VOLTTRON_HOME=~/.platform1 volttron-pkg package Agents/MultiBuilding
VOLTTRON_HOME=~/.platform1 volttron-pkg configure /tmp/volttron_wheels/multibuildingagent-0.1-py2-none-any.whl Agents/MultiNodeExample/multicomm.service
VOLTTRON_HOME=~/.platform1 volttron-ctl install multinode=/tmp/volttron_wheels/multibuildingagent-0.1-py2-none-any.whl

VOLTTRON_HOME=~/.platform1 volttron-pkg package Agents/MultiNodeExample
VOLTTRON_HOME=~/.platform1 volttron-pkg configure /tmp/volttron_wheels/greeteragent-0.1-py2-none-any.whl Agents/MultiNodeExample/agent1.config
VOLTTRON_HOME=~/.platform1 volttron-ctl install greeter=/tmp/volttron_wheels/greeteragent-0.1-py2-none-any.whl

mkdir ~/.platform2
VOLTTRON_HOME=~/.platform2 volttron -vv -l platform2.log&
VOLTTRON_HOME=~/.platform2 volttron-pkg package Agents/MultiBuilding
VOLTTRON_HOME=~/.platform2 volttron-pkg configure /tmp/volttron_wheels/multibuildingagent-0.1-py2-none-any.whl Agents/MultiNodeExample/multicomm2.service
VOLTTRON_HOME=~/.platform2 volttron-ctl install multinode=/tmp/volttron_wheels/multibuildingagent-0.1-py2-none-any.whl

VOLTTRON_HOME=~/.platform2 volttron-pkg package Agents/MultiNodeExample
VOLTTRON_HOME=~/.platform2 volttron-pkg configure /tmp/volttron_wheels/greeteragent-0.1-py2-none-any.whl Agents/MultiNodeExample/agent2.config
VOLTTRON_HOME=~/.platform2 volttron-ctl install greeter=/tmp/volttron_wheels/greeteragent-0.1-py2-none-any.whl

VOLTTRON_HOME=~/.platform1 volttron-ctl start --tag multinode
VOLTTRON_HOME=~/.platform1 volttron-ctl start --tag greeter
VOLTTRON_HOME=~/.platform2 volttron-ctl start --tag multinode
VOLTTRON_HOME=~/.platform2 volttron-ctl start --tag greeter

grep Greeter2 platform1.log -a

2014-09-30 17:13:41,840 (greeteragent-0.1 13878) greeter.agent DEBUG: Topic: greetings/hello, Headers: Headers({u'Date': u'2014-10-01 00:13:41.831539Z', u'Cookie': u'Greeter2', u'AgentID': u'Greeter2', u'Content-Type': [u'application/json']}), Message: ['{"message":"HELLO from Greeter2!"}']

grep Greeter1 platform2.log -a

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