{"action":"created","comment":{"url":"https://api.github.com/repos/GetStructure/structure-docs/pulls/comments/54198535","id":54198535,"diff_hunk":"@@ -0,0 +1,137 @@\n+# Getting Started with the Raspberry PI\n+\n+The <a href=\"https://www.raspberrypi.org/\" target=\"_blank\">Raspberry PI</a> is a very popular compute module commonly used in IoT related projects. This guide covers how to connect the Raspberry PI to the Structure Platform.\n+\n+The example for this guide is a button that is connected to the GPIO on the Raspberry PI. Whenever the button is pressed, a [state](/devices/state) message will be sent to the platform that can be used to trigger actions. To demonstrate device [commands](/devices/state), there is also an LED connected to GPIO that the platform can turn on and off.\n+\n+The source code for this example is <a href=\"https://github.com/GetStructure/example-raspberry-pi\" target=\"_blank\">available on GitHub</a>.\n+\n+## Install Node.js on the Raspberry PI\n+\n+We're going to use the <a href=\"https://github.com/GetStructure/structure-api-js\" target=\"_blank\">Structure JavaScript SDK</a> to connect the Raspberry PI to the Structure Platform. Follow the instructions <a href=\"https://www.getstructure.io/blog/how-to-install-nodejs-on-raspberry-pi\" target=\"_blank\">on our blog</a> for how to install Node.js.\n+","path":"docs/getting-started/boards/getting-started-with-raspberry-pi.md","position":12,"original_position":12,"commit_id":"caf3c4f5c1a72a54acf7f73e878df2e06c77866c","original_commit_id":"caf3c4f5c1a72a54acf7f73e878df2e06c77866c","user":{"login":"cephirothdy2j","id":881769,"avatar_url":"https://avatars.githubusercontent.com/u/881769?v=3","gravatar_id":"","url":"https://api.github.com/users/cephirothdy2j","html_url":"https://github.com/cephirothdy2j","followers_url":"https://api.github.com/users/cephirothdy2j/followers","following_url":"https://api.github.com/users/cephirothdy2j/following{/other_user}","gists_url":"https://api.github.com/users/cephirothdy2j/gists{/gist_id}","starred_url":"https://api.github.com/users/cephirothdy2j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cephirothdy2j/subscriptions","organizations_url":"https://api.github.com/users/cephirothdy2j/orgs","repos_url":"https://api.github.com/users/cephirothdy2j/repos","events_url":"https://api.github.com/users/cephirothdy2j/events{/privacy}","received_events_url":"https://api.github.com/users/cephirothdy2j/received_events","type":"User","site_admin":false},"body":"Got an error when trying to install node where root could access. \r\npi@raspberrypi:~ $ sudo ln -s /home/pi/.nvm/versions/node/v5.7.0/bin/node /usr/bin/node\r\nln: failed to create symbolic link ‘/usr/bin/node’: File exists","created_at":"2016-02-26T02:33:15Z","updated_at":"2016-02-26T02:33:15Z","html_url":"https://github.com/GetStructure/structure-docs/pull/3#discussion_r54198535","pull_request_url":"https://api.github.com/repos/GetStructure/structure-docs/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/GetStructure/structure-docs/pulls/comments/54198535"},"html":{"href":"https://github.com/GetStructure/structure-docs/pull/3#discussion_r54198535"},"pull_request":{"href":"https://api.github.com/repos/GetStructure/structure-docs/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/GetStructure/structure-docs/pulls/3","id":60757324,"html_url":"https://github.com/GetStructure/structure-docs/pull/3","diff_url":"https://github.com/GetStructure/structure-docs/pull/3.diff","patch_url":"https://github.com/GetStructure/structure-docs/pull/3.patch","issue_url":"https://api.github.com/repos/GetStructure/structure-docs/issues/3","number":3,"state":"open","locked":false,"title":"Added getting started doc for Raspberry PI.","user":{"login":"InconceivableDuck","id":938667,"avatar_url":"https://avatars.githubusercontent.com/u/938667?v=3","gravatar_id":"","url":"https://api.github.com/users/InconceivableDuck","html_url":"https://github.com/InconceivableDuck","followers_url":"https://api.github.com/users/InconceivableDuck/followers","following_url":"https://api.github.com/users/InconceivableDuck/following{/other_user}","gists_url":"https://api.github.com/users/InconceivableDuck/gists{/gist_id}","starred_url":"https://api.github.com/users/InconceivableDuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InconceivableDuck/subscriptions","organizations_url":"https://api.github.com/users/InconceivableDuck/orgs","repos_url":"https://api.github.com/users/InconceivableDuck/repos","events_url":"https://api.github.com/users/InconceivableDuck/events{/privacy}","received_events_url":"https://api.github.com/users/InconceivableDuck/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-25T22:18:08Z","updated_at":"2016-02-26T02:33:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4eca9c969d4d677992b3ea696b113eacb5a8ed5","assignee":{"login":"cephirothdy2j","id":881769,"avatar_url":"https://avatars.githubusercontent.com/u/881769?v=3","gravatar_id":"","url":"https://api.github.com/users/cephirothdy2j","html_url":"https://github.com/cephirothdy2j","followers_url":"https://api.github.com/users/cephirothdy2j/followers","following_url":"https://api.github.com/users/cephirothdy2j/following{/other_user}","gists_url":"https://api.github.com/users/cephirothdy2j/gists{/gist_id}","starred_url":"https://api.github.com/users/cephirothdy2j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cephirothdy2j/subscriptions","organizations_url":"https://api.github.com/users/cephirothdy2j/orgs","repos_url":"https://api.github.com/users/cephirothdy2j/repos","events_url":"https://api.github.com/users/cephirothdy2j/events{/privacy}","received_events_url":"https://api.github.com/users/cephirothdy2j/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/GetStructure/structure-docs/pulls/3/commits","review_comments_url":"https://api.github.com/repos/GetStructure/structure-docs/pulls/3/comments","review_comment_url":"https://api.github.com/repos/GetStructure/structure-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GetStructure/structure-docs/issues/3/comments","statuses_url":"https://api.github.com/repos/GetStructure/structure-docs/statuses/caf3c4f5c1a72a54acf7f73e878df2e06c77866c","head":{"label":"GetStructure:feature/getting-started-raspberry-pi","ref":"feature/getting-started-raspberry-pi","sha":"caf3c4f5c1a72a54acf7f73e878df2e06c77866c","user":{"login":"GetStructure","id":15053553,"avatar_url":"https://avatars.githubusercontent.com/u/15053553?v=3","gravatar_id":"","url":"https://api.github.com/users/GetStructure","html_url":"https://github.com/GetStructure","followers_url":"https://api.github.com/users/GetStructure/followers","following_url":"https://api.github.com/users/GetStructure/following{/other_user}","gists_url":"https://api.github.com/users/GetStructure/gists{/gist_id}","starred_url":"https://api.github.com/users/GetStructure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetStructure/subscriptions","organizations_url":"https://api.github.com/users/GetStructure/orgs","repos_url":"https://api.github.com/users/GetStructure/repos","events_url":"https://api.github.com/users/GetStructure/events{/privacy}","received_events_url":"https://api.github.com/users/GetStructure/received_events","type":"Organization","site_admin":false},"repo":{"id":45547684,"name":"structure-docs","full_name":"GetStructure/structure-docs","owner":{"login":"GetStructure","id":15053553,"avatar_url":"https://avatars.githubusercontent.com/u/15053553?v=3","gravatar_id":"","url":"https://api.github.com/users/GetStructure","html_url":"https://github.com/GetStructure","followers_url":"https://api.github.com/users/GetStructure/followers","following_url":"https://api.github.com/users/GetStructure/following{/other_user}","gists_url":"https://api.github.com/users/GetStructure/gists{/gist_id}","starred_url":"https://api.github.com/users/GetStructure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetStructure/subscriptions","organizations_url":"https://api.github.com/users/GetStructure/orgs","repos_url":"https://api.github.com/users/GetStructure/repos","events_url":"https://api.github.com/users/GetStructure/events{/privacy}","received_events_url":"https://api.github.com/users/GetStructure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GetStructure/structure-docs","description":"Structure Documentation","fork":false,"url":"https://api.github.com/repos/GetStructure/structure-docs","forks_url":"https://api.github.com/repos/GetStructure/structure-docs/forks","keys_url":"https://api.github.com/repos/GetStructure/structure-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GetStructure/structure-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GetStructure/structure-docs/teams","hooks_url":"https://api.github.com/repos/GetStructure/structure-docs/hooks","issue_events_url":"https://api.github.com/repos/GetStructure/structure-docs/issues/events{/number}","events_url":"https://api.github.com/repos/GetStructure/structure-docs/events","assignees_url":"https://api.github.com/repos/GetStructure/structure-docs/assignees{/user}","branches_url":"https://api.github.com/repos/GetStructure/structure-docs/branches{/branch}","tags_url":"https://api.github.com/repos/GetStructure/structure-docs/tags","blobs_url":"https://api.github.com/repos/GetStructure/structure-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GetStructure/structure-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GetStructure/structure-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/GetStructure/structure-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GetStructure/structure-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/GetStructure/structure-docs/languages","stargazers_url":"https://api.github.com/repos/GetStructure/structure-docs/stargazers","contributors_url":"https://api.github.com/repos/GetStructure/structure-docs/contributors","subscribers_url":"https://api.github.com/repos/GetStructure/structure-docs/subscribers","subscription_url":"https://api.github.com/repos/GetStructure/structure-docs/subscription","commits_url":"https://api.github.com/repos/GetStructure/structure-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/GetStructure/structure-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/GetStructure/structure-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/GetStructure/structure-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/GetStructure/structure-docs/contents/{+path}","compare_url":"https://api.github.com/repos/GetStructure/structure-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GetStructure/structure-docs/merges","archive_url":"https://api.github.com/repos/GetStructure/structure-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GetStructure/structure-docs/downloads","issues_url":"https://api.github.com/repos/GetStructure/structure-docs/issues{/number}","pulls_url":"https://api.github.com/repos/GetStructure/structure-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/GetStructure/structure-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/GetStructure/structure-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GetStructure/structure-docs/labels{/name}","releases_url":"https://api.github.com/repos/GetStructure/structure-docs/releases{/id}","deployments_url":"https://api.github.com/repos/GetStructure/structure-docs/deployments","created_at":"2015-11-04T15:22:38Z","updated_at":"2016-02-24T23:10:41Z","pushed_at":"2016-02-25T22:18:08Z","git_url":"git://github.com/GetStructure/structure-docs.git","ssh_url":"git@github.com:GetStructure/structure-docs.git","clone_url":"https://github.com/GetStructure/structure-docs.git","svn_url":"https://github.com/GetStructure/structure-docs","homepage":null,"size":52458,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"GetStructure:master","ref":"master","sha":"ca0ea3f36ebecaf0a43e888f7260217b031cc141","user":{"login":"GetStructure","id":15053553,"avatar_url":"https://avatars.githubusercontent.com/u/15053553?v=3","gravatar_id":"","url":"https://api.github.com/users/GetStructure","html_url":"https://github.com/GetStructure","followers_url":"https://api.github.com/users/GetStructure/followers","following_url":"https://api.github.com/users/GetStructure/following{/other_user}","gists_url":"https://api.github.com/users/GetStructure/gists{/gist_id}","starred_url":"https://api.github.com/users/GetStructure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetStructure/subscriptions","organizations_url":"https://api.github.com/users/GetStructure/orgs","repos_url":"https://api.github.com/users/GetStructure/repos","events_url":"https://api.github.com/users/GetStructure/events{/privacy}","received_events_url":"https://api.github.com/users/GetStructure/received_events","type":"Organization","site_admin":false},"repo":{"id":45547684,"name":"structure-docs","full_name":"GetStructure/structure-docs","owner":{"login":"GetStructure","id":15053553,"avatar_url":"https://avatars.githubusercontent.com/u/15053553?v=3","gravatar_id":"","url":"https://api.github.com/users/GetStructure","html_url":"https://github.com/GetStructure","followers_url":"https://api.github.com/users/GetStructure/followers","following_url":"https://api.github.com/users/GetStructure/following{/other_user}","gists_url":"https://api.github.com/users/GetStructure/gists{/gist_id}","starred_url":"https://api.github.com/users/GetStructure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetStructure/subscriptions","organizations_url":"https://api.github.com/users/GetStructure/orgs","repos_url":"https://api.github.com/users/GetStructure/repos","events_url":"https://api.github.com/users/GetStructure/events{/privacy}","received_events_url":"https://api.github.com/users/GetStructure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GetStructure/structure-docs","description":"Structure Documentation","fork":false,"url":"https://api.github.com/repos/GetStructure/structure-docs","forks_url":"https://api.github.com/repos/GetStructure/structure-docs/forks","keys_url":"https://api.github.com/repos/GetStructure/structure-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GetStructure/structure-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GetStructure/structure-docs/teams","hooks_url":"https://api.github.com/repos/GetStructure/structure-docs/hooks","issue_events_url":"https://api.github.com/repos/GetStructure/structure-docs/issues/events{/number}","events_url":"https://api.github.com/repos/GetStructure/structure-docs/events","assignees_url":"https://api.github.com/repos/GetStructure/structure-docs/assignees{/user}","branches_url":"https://api.github.com/repos/GetStructure/structure-docs/branches{/branch}","tags_url":"https://api.github.com/repos/GetStructure/structure-docs/tags","blobs_url":"https://api.github.com/repos/GetStructure/structure-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GetStructure/structure-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GetStructure/structure-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/GetStructure/structure-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GetStructure/structure-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/GetStructure/structure-docs/languages","stargazers_url":"https://api.github.com/repos/GetStructure/structure-docs/stargazers","contributors_url":"https://api.github.com/repos/GetStructure/structure-docs/contributors","subscribers_url":"https://api.github.com/repos/GetStructure/structure-docs/subscribers","subscription_url":"https://api.github.com/repos/GetStructure/structure-docs/subscription","commits_url":"https://api.github.com/repos/GetStructure/structure-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/GetStructure/structure-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/GetStructure/structure-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/GetStructure/structure-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/GetStructure/structure-docs/contents/{+path}","compare_url":"https://api.github.com/repos/GetStructure/structure-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GetStructure/structure-docs/merges","archive_url":"https://api.github.com/repos/GetStructure/structure-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GetStructure/structure-docs/downloads","issues_url":"https://api.github.com/repos/GetStructure/structure-docs/issues{/number}","pulls_url":"https://api.github.com/repos/GetStructure/structure-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/GetStructure/structure-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/GetStructure/structure-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GetStructure/structure-docs/labels{/name}","releases_url":"https://api.github.com/repos/GetStructure/structure-docs/releases{/id}","deployments_url":"https://api.github.com/repos/GetStructure/structure-docs/deployments","created_at":"2015-11-04T15:22:38Z","updated_at":"2016-02-24T23:10:41Z","pushed_at":"2016-02-25T22:18:08Z","git_url":"git://github.com/GetStructure/structure-docs.git","ssh_url":"git@github.com:GetStructure/structure-docs.git","clone_url":"https://github.com/GetStructure/structure-docs.git","svn_url":"https://github.com/GetStructure/structure-docs","homepage":null,"size":52458,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GetStructure/structure-docs/pulls/3"},"html":{"href":"https://github.com/GetStructure/structure-docs/pull/3"},"issue":{"href":"https://api.github.com/repos/GetStructure/structure-docs/issues/3"},"comments":{"href":"https://api.github.com/repos/GetStructure/structure-docs/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/GetStructure/structure-docs/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/GetStructure/structure-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GetStructure/structure-docs/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/GetStructure/structure-docs/statuses/caf3c4f5c1a72a54acf7f73e878df2e06c77866c"}}}}