Skip to content

VOLTTRON/volttron-pubsub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

The PubSub and SynchronizedPubSub agents are VOLTTRON agents that include a number of convenience functions for subscribing to topics, handling topic matches, and synchronizing message exchange. Typically, these agents would not be run on the VOLTTRON platform as provided, but instead would be installed into the VOLTTRON virtual environment and extended by agents requiring this functionality. This README contains instructions for installing these modules into the VOLTTRON virtual environments' site-packages directory.

DEPENDENCIES

The following instructions assume you have already cloned this repository.

Make sure you have installed VOLTTRON and its dependencies.

INSTALLATION

Enable the VOLTTRON virtual environment.

$ . [VOLTTRON repository location]/env/bin/activate

Install the package.

$ cd [volttron-pubsub repository location]
$ python setup.py install

AGENT CONFIGURATION FOR EXAMPLE

No changes need to be made for the included example.

PACKAGING AND RUNNING EXAMPLE

Navigate to VOLTTRON source directory

$ cd [VOLTTRON repository location]

Enable the VOLTTRON virtual environment

$ . env/bin/activate

Run VOLTTRON

$ volttron -vv -l [logfilepath.log] &

Export environment variables required for make-agent.sh

$ export SOURCE=[volttron-pubsub repository location]/pnnl/pubsubagent/
$ export CONFIG=[volttron-pubsub repository location]/pubsub
$ export TAG=pubsub-a

Run the VOLTTRON make-agent.sh script

$ . scripts/core/make-agent.sh

View the log. The agent will indicate that it has subscribed to the test/input topic.

$ tail -f [logfilepath.log]
...
2016-04-25 10:06:27,249 (pubsub-0.1 4493) pubsub.agent INFO: subscribed to test/input
...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%