-
Notifications
You must be signed in to change notification settings - Fork 218
PlatformStartup
unknown edited this page Oct 23, 2015
·
4 revisions
With volttron-lite running, you need to perform the following commands:
- Install the agent executable: volttron-ctrl install-executable <path to .egg file>
- Install agent launch file: volttron-ctrl load-agent <path to .json launch file> [<new agent name>]
- Enable automatic starting of agent: volttron-ctrl enable-agent <agent name>
- Test start the agent: volttron-ctrl start <agent name>
Then restart volttron-lite and the agent should start automatically. Autostart can be skipped using the --skip-autstart command-line option.
By convention, agents should have either a .service or .agent suffix. .service agents are considered essential to the platform and are started before other agents. Below is an example.
[volttron]$ . bin/activate
(volttron)[volttron]$ cd examples/ListenerAgent
(volttron)[ListenerAgent]$ python setup.py bdist_egg
...
creating 'dist/listeneragent-3.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
...
(volttron)[ListenerAgent]$ volttron-ctrl install-executable dist/listeneragent-3.0-py2.7.egg
(volttron)[ListenerAgent]$ volttron-ctrl load listeneragent.launch.json listener.agent
(volttron)[ListenerAgent]$ volttron-ctrl list-executables
listeneragent-3.0-py2.7.egg
(volttron)[ListenerAgent]$ volttron-ctrl list-agents
AGENT AUTOSTART STATUS
listener.agent disabled
(volttron)[ListenerAgent]$ volttron-ctrl enable-agent listener.agent
(volttron)[ListenerAgent]$ volttron-ctrl list-agents
AGENT AUTOSTART STATUS
listener.agent enabled
(volttron)[ListenerAgent]$ volttron-ctrl start listener.agent
(volttron)[ListenerAgent]$ volttron-ctrl list-agents
AGENT AUTOSTART STATUS
listener.agent enabled running
(volttron)[ListenerAgent]$ volttron-ctrl stop listener.agent
(volttron)[ListenerAgent]$ volttron-ctrl list-agents
AGENT AUTOSTART STATUS
listener.agent enabled 0
Full ExampleSetup
- Platform Agent
- VOLTTRON Central Agent
- Platform Commands
- Platform Configuration
- [Platform Hardening Security Recommendations] (Linux-Platform-Hardening-Recommendations-for-VOLTTRON-users)
- ...
- [Building VOLTTRON] (Building-VOLTTRON)
- Example Agents
- Agent Development
- [Shortcut Scripts] (Scripts)
- [VOLTTRON Conventions] (Conventions)
- [sMAP Test Server] (sMAP-Test-Instance)
- [Design Discussions] (Design Discussions)
- VIP
- VIP - VOLTTRON Interconnect Protocol
- RPC by example
- VIP - Known Identities
- VIP - Authentication
- VIP - Authorization
- Protecting Pub/Sub Topics
- Setup Eclipse for VOLTTRON
- Deployment Walkthrough
- Forward Historian Walkthrough
- [Create New Historian Agent] (Developing-Historian-Agents)
- [Create New Driver Agent] (Develop-Driver-Agent)
- [Developing With Eclipse] (Eclipse)
- Migrations
- [2.x to 3.x Migration](2.x-to 3.x-Migration)
- 1.2 to 2.0 Migration
- [Deployment Recommendations](Recommendations for Deployments)
VOLTTRON Versions and Features
Transactional Network Platform Overview
- Established Topics
- Working with the Actuator Agent
- Logging
- [Multi-Node Communication] (MultiBuildingMessaging)
Information Exchange Standards