This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import logging | |
import sys | |
LOG_FORMAT = "%(asctime)s:%(levelname)s:%(processName)s - %(name)s %(message)s" | |
logging.basicConfig(stream=sys.stdout, level=logging.INFO, | |
format=LOG_FORMAT) | |
_log = logging.getLogger("main") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example file using the weather agent. | |
# | |
# Requirements | |
# - A VOLTTRON instance must be started | |
# - A weatheragnet must be running prior to running this code. | |
# | |
# Author: Craig Allwardt | |
from volttron.platform.vip.agent import Agent | |
import gevent |