{"action":"created","comment":{"url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/comments/83469436","pull_request_review_id":4313897,"id":83469436,"diff_hunk":"@@ -0,0 +1,113 @@\n+=====================================================================================\n+How to integrate Matlab application with VOLTTRON to send control commands to devices\n+=====================================================================================\n+\n+Overview:\n+=========\n+\n+    Matlab-VOLTTRON integration allows Matlab application to receive\n+    data from devices and send control commands to change points on\n+    those devices.\n+\n+    DrivenMatlabAgent in VOLTTRON allows this interaction by using zmq\n+    sockets to communicate with Matlab application.\n+\n+Data Flow Architecture:\n+-------------\n+\n+|Architecture|\n+\n+\n+Installation steps for system running Matlab:\n+=============================================\n+\n+1. Install python. Suggested 3.4. Other supported versions 2.7, 3.3.\n+\n+2. Install pyzmq (tested with version 15.2.0)\n+\n+    Follow steps at: https://github.com/zeromq/pyzmq\n+\n+1. Matlab (tested with R2015b)\n+\n+2. Setup python path inside Matlab\n+\n+   Open Matlab command window and set python path as:\n+\n+   pyversion [*path/to]*/python.exe\n+\n+3. To test if python path is setup correctly type following in Matlab\n+   command window and it should show python.exe path with version\n+   information.\n+\n+    pyversion\n+\n+1. To test if pyzmq library is installed correctly and is accessible\n+   from python inside Matlab, type following in Matlab command window\n+   and it should show pyzmq version installed.\n+\n+   py.zmq.pyzmq\\_version()\n+\n+2. Copy example.m from volttron/examples/MatlabControlApplication to your desired folder.\n+\n+Run and test Matlab VOLTTRON Integration:\n+=========================================\n+\n+Assumptions\n+-----------\n+\n+-  Device driver agent is already developed\n+\n+Configuration\n+-------------\n+\n+1. Copy example configuration file applications/pnnl/DrivenMatlabAgent/config\\_waterheater to volltron/config.\n+\n+2. Change config\\_url and data\\_url in the new config file to the\n+   ipaddress of machine running Matlab. Keep the same port numbers.\n+\n+3. Change campus, building and unit (device) name in the config file.\n+\n+4. Open example.m change following line :\n+\n+   matlab\\_result =\n+   '{\"commands\":{\"Zone1\":[[\"temperature\",27]],\"Zone2\":[[\"temperature\",28]]}}';\n+\n+   Change it to include correct device name and point names in the\n+   format:\n+\n+   '{\"commands\":{\"device1\":[[\"point1\",value1]],\"device2\":[[\"point2\",value2]]}}';\n+\n+Steps to test integration:\n+--------------------------\n+\n+1. Install VOLTTRON on a VM or different system than the one\n+   running Matlab.\n+\n+    Follow link: http://volttron.readthedocs.io/en/develop/install.html\n+","path":"docs/source/devguides/walkthroughs/DrivenMatlabAgent-Walkthrough.rst","position":87,"original_position":87,"commit_id":"8b0db1ba0b14f657f09e10c0c5a7eaff875a76c5","original_commit_id":"5c3293028b7a0a56b93f0654a98b57d97f162a01","user":{"login":"poorva1209","id":6538501,"avatar_url":"https://avatars.githubusercontent.com/u/6538501?v=3","gravatar_id":"","url":"https://api.github.com/users/poorva1209","html_url":"https://github.com/poorva1209","followers_url":"https://api.github.com/users/poorva1209/followers","following_url":"https://api.github.com/users/poorva1209/following{/other_user}","gists_url":"https://api.github.com/users/poorva1209/gists{/gist_id}","starred_url":"https://api.github.com/users/poorva1209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poorva1209/subscriptions","organizations_url":"https://api.github.com/users/poorva1209/orgs","repos_url":"https://api.github.com/users/poorva1209/repos","events_url":"https://api.github.com/users/poorva1209/events{/privacy}","received_events_url":"https://api.github.com/users/poorva1209/received_events","type":"User","site_admin":false},"body":"Didn't get it. What needs to be a sub-repo ? VOLTTRON installation ?","created_at":"2016-10-14T17:48:26Z","updated_at":"2016-10-14T17:48:26Z","html_url":"https://github.com/VOLTTRON/volttron/pull/854#discussion_r83469436","pull_request_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/854","_links":{"self":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/comments/83469436"},"html":{"href":"https://github.com/VOLTTRON/volttron/pull/854#discussion_r83469436"},"pull_request":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/854"}}},"pull_request":{"url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/854","id":88901101,"html_url":"https://github.com/VOLTTRON/volttron/pull/854","diff_url":"https://github.com/VOLTTRON/volttron/pull/854.diff","patch_url":"https://github.com/VOLTTRON/volttron/pull/854.patch","issue_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/854","number":854,"state":"open","locked":false,"title":"Docs","user":{"login":"poorva1209","id":6538501,"avatar_url":"https://avatars.githubusercontent.com/u/6538501?v=3","gravatar_id":"","url":"https://api.github.com/users/poorva1209","html_url":"https://github.com/poorva1209","followers_url":"https://api.github.com/users/poorva1209/followers","following_url":"https://api.github.com/users/poorva1209/following{/other_user}","gists_url":"https://api.github.com/users/poorva1209/gists{/gist_id}","starred_url":"https://api.github.com/users/poorva1209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poorva1209/subscriptions","organizations_url":"https://api.github.com/users/poorva1209/orgs","repos_url":"https://api.github.com/users/poorva1209/repos","events_url":"https://api.github.com/users/poorva1209/events{/privacy}","received_events_url":"https://api.github.com/users/poorva1209/received_events","type":"User","site_admin":false},"body":"\n\n<!-- Reviewable:start -->\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/volttron/volttron/854)\n<!-- Reviewable:end -->\n","created_at":"2016-10-11T20:05:14Z","updated_at":"2016-10-14T17:48:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08470ab40f47a5c47b7c8f9f40fefaddcfaece6f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/854/commits","review_comments_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/854/comments","review_comment_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/854/comments","statuses_url":"https://api.github.com/repos/VOLTTRON/volttron/statuses/8b0db1ba0b14f657f09e10c0c5a7eaff875a76c5","head":{"label":"poorva1209:docs","ref":"docs","sha":"8b0db1ba0b14f657f09e10c0c5a7eaff875a76c5","user":{"login":"poorva1209","id":6538501,"avatar_url":"https://avatars.githubusercontent.com/u/6538501?v=3","gravatar_id":"","url":"https://api.github.com/users/poorva1209","html_url":"https://github.com/poorva1209","followers_url":"https://api.github.com/users/poorva1209/followers","following_url":"https://api.github.com/users/poorva1209/following{/other_user}","gists_url":"https://api.github.com/users/poorva1209/gists{/gist_id}","starred_url":"https://api.github.com/users/poorva1209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poorva1209/subscriptions","organizations_url":"https://api.github.com/users/poorva1209/orgs","repos_url":"https://api.github.com/users/poorva1209/repos","events_url":"https://api.github.com/users/poorva1209/events{/privacy}","received_events_url":"https://api.github.com/users/poorva1209/received_events","type":"User","site_admin":false},"repo":{"id":62244864,"name":"volttron","full_name":"poorva1209/volttron","owner":{"login":"poorva1209","id":6538501,"avatar_url":"https://avatars.githubusercontent.com/u/6538501?v=3","gravatar_id":"","url":"https://api.github.com/users/poorva1209","html_url":"https://github.com/poorva1209","followers_url":"https://api.github.com/users/poorva1209/followers","following_url":"https://api.github.com/users/poorva1209/following{/other_user}","gists_url":"https://api.github.com/users/poorva1209/gists{/gist_id}","starred_url":"https://api.github.com/users/poorva1209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poorva1209/subscriptions","organizations_url":"https://api.github.com/users/poorva1209/orgs","repos_url":"https://api.github.com/users/poorva1209/repos","events_url":"https://api.github.com/users/poorva1209/events{/privacy}","received_events_url":"https://api.github.com/users/poorva1209/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poorva1209/volttron","description":"VOLTTRON Distributed Control System Platform","fork":true,"url":"https://api.github.com/repos/poorva1209/volttron","forks_url":"https://api.github.com/repos/poorva1209/volttron/forks","keys_url":"https://api.github.com/repos/poorva1209/volttron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poorva1209/volttron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poorva1209/volttron/teams","hooks_url":"https://api.github.com/repos/poorva1209/volttron/hooks","issue_events_url":"https://api.github.com/repos/poorva1209/volttron/issues/events{/number}","events_url":"https://api.github.com/repos/poorva1209/volttron/events","assignees_url":"https://api.github.com/repos/poorva1209/volttron/assignees{/user}","branches_url":"https://api.github.com/repos/poorva1209/volttron/branches{/branch}","tags_url":"https://api.github.com/repos/poorva1209/volttron/tags","blobs_url":"https://api.github.com/repos/poorva1209/volttron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poorva1209/volttron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poorva1209/volttron/git/refs{/sha}","trees_url":"https://api.github.com/repos/poorva1209/volttron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poorva1209/volttron/statuses/{sha}","languages_url":"https://api.github.com/repos/poorva1209/volttron/languages","stargazers_url":"https://api.github.com/repos/poorva1209/volttron/stargazers","contributors_url":"https://api.github.com/repos/poorva1209/volttron/contributors","subscribers_url":"https://api.github.com/repos/poorva1209/volttron/subscribers","subscription_url":"https://api.github.com/repos/poorva1209/volttron/subscription","commits_url":"https://api.github.com/repos/poorva1209/volttron/commits{/sha}","git_commits_url":"https://api.github.com/repos/poorva1209/volttron/git/commits{/sha}","comments_url":"https://api.github.com/repos/poorva1209/volttron/comments{/number}","issue_comment_url":"https://api.github.com/repos/poorva1209/volttron/issues/comments{/number}","contents_url":"https://api.github.com/repos/poorva1209/volttron/contents/{+path}","compare_url":"https://api.github.com/repos/poorva1209/volttron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poorva1209/volttron/merges","archive_url":"https://api.github.com/repos/poorva1209/volttron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poorva1209/volttron/downloads","issues_url":"https://api.github.com/repos/poorva1209/volttron/issues{/number}","pulls_url":"https://api.github.com/repos/poorva1209/volttron/pulls{/number}","milestones_url":"https://api.github.com/repos/poorva1209/volttron/milestones{/number}","notifications_url":"https://api.github.com/repos/poorva1209/volttron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poorva1209/volttron/labels{/name}","releases_url":"https://api.github.com/repos/poorva1209/volttron/releases{/id}","deployments_url":"https://api.github.com/repos/poorva1209/volttron/deployments","created_at":"2016-06-29T17:29:29Z","updated_at":"2016-06-29T17:30:36Z","pushed_at":"2016-10-14T17:31:04Z","git_url":"git://github.com/poorva1209/volttron.git","ssh_url":"git@github.com:poorva1209/volttron.git","clone_url":"https://github.com/poorva1209/volttron.git","svn_url":"https://github.com/poorva1209/volttron","homepage":null,"size":44621,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"VOLTTRON:develop","ref":"develop","sha":"6b8971d774916d3028de2e7429a101b607819646","user":{"login":"VOLTTRON","id":5875448,"avatar_url":"https://avatars.githubusercontent.com/u/5875448?v=3","gravatar_id":"","url":"https://api.github.com/users/VOLTTRON","html_url":"https://github.com/VOLTTRON","followers_url":"https://api.github.com/users/VOLTTRON/followers","following_url":"https://api.github.com/users/VOLTTRON/following{/other_user}","gists_url":"https://api.github.com/users/VOLTTRON/gists{/gist_id}","starred_url":"https://api.github.com/users/VOLTTRON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VOLTTRON/subscriptions","organizations_url":"https://api.github.com/users/VOLTTRON/orgs","repos_url":"https://api.github.com/users/VOLTTRON/repos","events_url":"https://api.github.com/users/VOLTTRON/events{/privacy}","received_events_url":"https://api.github.com/users/VOLTTRON/received_events","type":"Organization","site_admin":false},"repo":{"id":14191740,"name":"volttron","full_name":"VOLTTRON/volttron","owner":{"login":"VOLTTRON","id":5875448,"avatar_url":"https://avatars.githubusercontent.com/u/5875448?v=3","gravatar_id":"","url":"https://api.github.com/users/VOLTTRON","html_url":"https://github.com/VOLTTRON","followers_url":"https://api.github.com/users/VOLTTRON/followers","following_url":"https://api.github.com/users/VOLTTRON/following{/other_user}","gists_url":"https://api.github.com/users/VOLTTRON/gists{/gist_id}","starred_url":"https://api.github.com/users/VOLTTRON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VOLTTRON/subscriptions","organizations_url":"https://api.github.com/users/VOLTTRON/orgs","repos_url":"https://api.github.com/users/VOLTTRON/repos","events_url":"https://api.github.com/users/VOLTTRON/events{/privacy}","received_events_url":"https://api.github.com/users/VOLTTRON/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/VOLTTRON/volttron","description":"VOLTTRON Distributed Control System Platform","fork":false,"url":"https://api.github.com/repos/VOLTTRON/volttron","forks_url":"https://api.github.com/repos/VOLTTRON/volttron/forks","keys_url":"https://api.github.com/repos/VOLTTRON/volttron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VOLTTRON/volttron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VOLTTRON/volttron/teams","hooks_url":"https://api.github.com/repos/VOLTTRON/volttron/hooks","issue_events_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/events{/number}","events_url":"https://api.github.com/repos/VOLTTRON/volttron/events","assignees_url":"https://api.github.com/repos/VOLTTRON/volttron/assignees{/user}","branches_url":"https://api.github.com/repos/VOLTTRON/volttron/branches{/branch}","tags_url":"https://api.github.com/repos/VOLTTRON/volttron/tags","blobs_url":"https://api.github.com/repos/VOLTTRON/volttron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VOLTTRON/volttron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VOLTTRON/volttron/git/refs{/sha}","trees_url":"https://api.github.com/repos/VOLTTRON/volttron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VOLTTRON/volttron/statuses/{sha}","languages_url":"https://api.github.com/repos/VOLTTRON/volttron/languages","stargazers_url":"https://api.github.com/repos/VOLTTRON/volttron/stargazers","contributors_url":"https://api.github.com/repos/VOLTTRON/volttron/contributors","subscribers_url":"https://api.github.com/repos/VOLTTRON/volttron/subscribers","subscription_url":"https://api.github.com/repos/VOLTTRON/volttron/subscription","commits_url":"https://api.github.com/repos/VOLTTRON/volttron/commits{/sha}","git_commits_url":"https://api.github.com/repos/VOLTTRON/volttron/git/commits{/sha}","comments_url":"https://api.github.com/repos/VOLTTRON/volttron/comments{/number}","issue_comment_url":"https://api.github.com/repos/VOLTTRON/volttron/issues/comments{/number}","contents_url":"https://api.github.com/repos/VOLTTRON/volttron/contents/{+path}","compare_url":"https://api.github.com/repos/VOLTTRON/volttron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VOLTTRON/volttron/merges","archive_url":"https://api.github.com/repos/VOLTTRON/volttron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VOLTTRON/volttron/downloads","issues_url":"https://api.github.com/repos/VOLTTRON/volttron/issues{/number}","pulls_url":"https://api.github.com/repos/VOLTTRON/volttron/pulls{/number}","milestones_url":"https://api.github.com/repos/VOLTTRON/volttron/milestones{/number}","notifications_url":"https://api.github.com/repos/VOLTTRON/volttron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VOLTTRON/volttron/labels{/name}","releases_url":"https://api.github.com/repos/VOLTTRON/volttron/releases{/id}","deployments_url":"https://api.github.com/repos/VOLTTRON/volttron/deployments","created_at":"2013-11-07T02:07:46Z","updated_at":"2016-10-01T01:01:13Z","pushed_at":"2016-10-14T17:15:39Z","git_url":"git://github.com/VOLTTRON/volttron.git","ssh_url":"git@github.com:VOLTTRON/volttron.git","clone_url":"https://github.com/VOLTTRON/volttron.git","svn_url":"https://github.com/VOLTTRON/volttron","homepage":null,"size":91796,"stargazers_count":95,"watchers_count":95,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":295,"forks":49,"open_issues":295,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/854"},"html":{"href":"https://github.com/VOLTTRON/volttron/pull/854"},"issue":{"href":"https://api.github.com/repos/VOLTTRON/volttron/issues/854"},"comments":{"href":"https://api.github.com/repos/VOLTTRON/volttron/issues/854/comments"},"review_comments":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/854/comments"},"review_comment":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VOLTTRON/volttron/pulls/854/commits"},"statuses":{"href":"https://api.github.com/repos/VOLTTRON/volttron/statuses/8b0db1ba0b14f657f09e10c0c5a7eaff875a76c5"}}}}
{"actor":{"display_login":"poorva1209"}}