-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stand alone file watcher example agent #2959
Stand alone file watcher example agent #2959
Conversation
@@ -0,0 +1,50 @@ | |||
## Stand Alone File Watcher example agent | |||
|
|||
This python script will listen to the specified files and publish updates to specific topics on the remote instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a volttron instance
``` | ||
vctl auth keypair | ||
``` | ||
Update settings.py with your public and secret keys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your == the generated
``` | ||
Update settings.py with this server key | ||
|
||
5. Update the config section of settings.py with the files you want this agent to watch for and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove you from this sentence. the agent. or the standalonewatcher agent.
vctl auth add | ||
``` | ||
Provide the IP of the volttron instance when prompted for | ||
address[]: and provide public key of standalone agent when prompted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ip address should be where the agent is running from not the instance's vip address. they can leave it blank to accept all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
credentials should be the publickey generated above in the keypair command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a shortcut you could do vctl auth add --user_id identity_of_agent --credentials publickey_generated_above
|
||
4. Add this standalone agent to volttron auth entry using this command: | ||
``` | ||
vctl auth add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a shortcut is vctl auth add --user_id identity --credentials generated_publickey
vctl auth add | ||
``` | ||
Provide the IP of the volttron instance when prompted for | ||
address[]: and provide public key of standalone agent when prompted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ip address is that of the agent, not the instance. If they were on different machines, this would matter more. Can be blank
@craig8 updated the README |
Description
Added a README with detailed setup instructions and updated comments within settings.py to use the more modern commands.
Type of change
This change is a documentation update
Checklist: