Skip to content

Instantly share code, notes, and snippets.

@bonicim
Created July 13, 2022 22:14
Show Gist options
  • Select an option

  • Save bonicim/bbe2e2ad569c312ef2c7520a28ed3e22 to your computer and use it in GitHub Desktop.

Select an option

Save bonicim/bbe2e2ad569c312ef2c7520a28ed3e22 to your computer and use it in GitHub Desktop.
Steps to install Platform Driver Agent and fake driver on Volttron modular - developers
  • Create a directory called volttron_modular
mkdir volttron_modular
cd volttron_modular
  • Since the modular Driver framework has yet to be published on PyPi, we need to clone them to our machine. Clone the following repos:
git clone https://github.com/VOLTTRON/volttron-lib-base-driver.git
git clone https://github.com/VOLTTRON/volttron-lib-fake.git
git clone https://github.com/VOLTTRON/volttron-platform-driver.git
  • Create a virtual environment
python -m venv env
  • Activate the environment
source env/bin/activate
  • Install volttron
pip install volttron
  • Install the base driver
pip install -e volttron-lib-base-driver
  • Install the fake driver
pip install -e volttron-lib-fake
  • Start volttron
volttron -vv -l volttron.log &
  • Install PlatformDriver
vctl install volttron-platform-driver/ --agent-config volttron-platform-driver/config --tag platform_driver --start
  • Install Fake Driver
vctl config store platform.driver fake.csv volttron-lib-fake/fake.csv --csv
vctl config store platform.driver devices/campus/building/fake volttron-lib-fake/fake.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment