{"action":"opened","number":134,"pull_request":{"url":"https://api.github.com/repos/pebble/pebblejs/pulls/134","id":57749973,"html_url":"https://github.com/pebble/pebblejs/pull/134","diff_url":"https://github.com/pebble/pebblejs/pull/134.diff","patch_url":"https://github.com/pebble/pebblejs/pull/134.patch","issue_url":"https://api.github.com/repos/pebble/pebblejs/issues/134","number":134,"state":"open","locked":false,"title":"incomplete attempt to add the ability to send appmessage from a companion app","user":{"login":"jscottnz","id":6979887,"avatar_url":"https://avatars.githubusercontent.com/u/6979887?v=3","gravatar_id":"","url":"https://api.github.com/users/jscottnz","html_url":"https://github.com/jscottnz","followers_url":"https://api.github.com/users/jscottnz/followers","following_url":"https://api.github.com/users/jscottnz/following{/other_user}","gists_url":"https://api.github.com/users/jscottnz/gists{/gist_id}","starred_url":"https://api.github.com/users/jscottnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscottnz/subscriptions","organizations_url":"https://api.github.com/users/jscottnz/orgs","repos_url":"https://api.github.com/users/jscottnz/repos","events_url":"https://api.github.com/users/jscottnz/events{/privacy}","received_events_url":"https://api.github.com/users/jscottnz/received_events","type":"User","site_admin":false},"body":"So my idea was to create a cordova app that could communicate with a pebblejs app. Javascript phone App -> Javascript pebble App !!!\r\n\r\nUsing https://github.com/jbeuckm/cordova-plugin-pebble I was hoping that it would be possible to send a message to the pebble from the companion app.\r\n\r\nI tried straight out of the box and realized that I would need to get the pebble app to listen for a particular message.\r\n\r\nSo, here is a start...\r\nI'm a complete noob to PebbleC (and C) and based my code off: pebble/pebblejs@f06b0c1\r\n\r\nI'd like some advise as to if this is even possible, and if I'm going in the right direction!\r\n\r\nI think I've set up the C part to receive the message, but then I think I need to push it down to the javascript part.\r\nI'm also concerned about large messages... does this all play well together - I suspect not.\r\n\r\nAnyway, I'm happy to work on this but right now I'm going to need some advice.","created_at":"2016-01-30T20:39:19Z","updated_at":"2016-01-30T20:39:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pebble/pebblejs/pulls/134/commits","review_comments_url":"https://api.github.com/repos/pebble/pebblejs/pulls/134/comments","review_comment_url":"https://api.github.com/repos/pebble/pebblejs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pebble/pebblejs/issues/134/comments","statuses_url":"https://api.github.com/repos/pebble/pebblejs/statuses/ad2d724bd61cf69dd4cfd1f985434e40a1458da6","head":{"label":"jscottnz:user-data","ref":"user-data","sha":"ad2d724bd61cf69dd4cfd1f985434e40a1458da6","user":{"login":"jscottnz","id":6979887,"avatar_url":"https://avatars.githubusercontent.com/u/6979887?v=3","gravatar_id":"","url":"https://api.github.com/users/jscottnz","html_url":"https://github.com/jscottnz","followers_url":"https://api.github.com/users/jscottnz/followers","following_url":"https://api.github.com/users/jscottnz/following{/other_user}","gists_url":"https://api.github.com/users/jscottnz/gists{/gist_id}","starred_url":"https://api.github.com/users/jscottnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscottnz/subscriptions","organizations_url":"https://api.github.com/users/jscottnz/orgs","repos_url":"https://api.github.com/users/jscottnz/repos","events_url":"https://api.github.com/users/jscottnz/events{/privacy}","received_events_url":"https://api.github.com/users/jscottnz/received_events","type":"User","site_admin":false},"repo":{"id":50743700,"name":"pebblejs","full_name":"jscottnz/pebblejs","owner":{"login":"jscottnz","id":6979887,"avatar_url":"https://avatars.githubusercontent.com/u/6979887?v=3","gravatar_id":"","url":"https://api.github.com/users/jscottnz","html_url":"https://github.com/jscottnz","followers_url":"https://api.github.com/users/jscottnz/followers","following_url":"https://api.github.com/users/jscottnz/following{/other_user}","gists_url":"https://api.github.com/users/jscottnz/gists{/gist_id}","starred_url":"https://api.github.com/users/jscottnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscottnz/subscriptions","organizations_url":"https://api.github.com/users/jscottnz/orgs","repos_url":"https://api.github.com/users/jscottnz/repos","events_url":"https://api.github.com/users/jscottnz/events{/privacy}","received_events_url":"https://api.github.com/users/jscottnz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jscottnz/pebblejs","description":"Program the Pebble with simply JavaScript","fork":true,"url":"https://api.github.com/repos/jscottnz/pebblejs","forks_url":"https://api.github.com/repos/jscottnz/pebblejs/forks","keys_url":"https://api.github.com/repos/jscottnz/pebblejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jscottnz/pebblejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jscottnz/pebblejs/teams","hooks_url":"https://api.github.com/repos/jscottnz/pebblejs/hooks","issue_events_url":"https://api.github.com/repos/jscottnz/pebblejs/issues/events{/number}","events_url":"https://api.github.com/repos/jscottnz/pebblejs/events","assignees_url":"https://api.github.com/repos/jscottnz/pebblejs/assignees{/user}","branches_url":"https://api.github.com/repos/jscottnz/pebblejs/branches{/branch}","tags_url":"https://api.github.com/repos/jscottnz/pebblejs/tags","blobs_url":"https://api.github.com/repos/jscottnz/pebblejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jscottnz/pebblejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jscottnz/pebblejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jscottnz/pebblejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jscottnz/pebblejs/statuses/{sha}","languages_url":"https://api.github.com/repos/jscottnz/pebblejs/languages","stargazers_url":"https://api.github.com/repos/jscottnz/pebblejs/stargazers","contributors_url":"https://api.github.com/repos/jscottnz/pebblejs/contributors","subscribers_url":"https://api.github.com/repos/jscottnz/pebblejs/subscribers","subscription_url":"https://api.github.com/repos/jscottnz/pebblejs/subscription","commits_url":"https://api.github.com/repos/jscottnz/pebblejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jscottnz/pebblejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jscottnz/pebblejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jscottnz/pebblejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jscottnz/pebblejs/contents/{+path}","compare_url":"https://api.github.com/repos/jscottnz/pebblejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jscottnz/pebblejs/merges","archive_url":"https://api.github.com/repos/jscottnz/pebblejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jscottnz/pebblejs/downloads","issues_url":"https://api.github.com/repos/jscottnz/pebblejs/issues{/number}","pulls_url":"https://api.github.com/repos/jscottnz/pebblejs/pulls{/number}","milestones_url":"https://api.github.com/repos/jscottnz/pebblejs/milestones{/number}","notifications_url":"https://api.github.com/repos/jscottnz/pebblejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jscottnz/pebblejs/labels{/name}","releases_url":"https://api.github.com/repos/jscottnz/pebblejs/releases{/id}","deployments_url":"https://api.github.com/repos/jscottnz/pebblejs/deployments","created_at":"2016-01-30T20:33:28Z","updated_at":"2016-01-30T20:33:29Z","pushed_at":"2016-01-30T20:38:07Z","git_url":"git://github.com/jscottnz/pebblejs.git","ssh_url":"git@github.com:jscottnz/pebblejs.git","clone_url":"https://github.com/jscottnz/pebblejs.git","svn_url":"https://github.com/jscottnz/pebblejs","homepage":null,"size":1300,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"pebble:master","ref":"master","sha":"59fa17f214723f3e6f07ea7eb97d5e3ced8b0d2e","user":{"login":"pebble","id":1048268,"avatar_url":"https://avatars.githubusercontent.com/u/1048268?v=3","gravatar_id":"","url":"https://api.github.com/users/pebble","html_url":"https://github.com/pebble","followers_url":"https://api.github.com/users/pebble/followers","following_url":"https://api.github.com/users/pebble/following{/other_user}","gists_url":"https://api.github.com/users/pebble/gists{/gist_id}","starred_url":"https://api.github.com/users/pebble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pebble/subscriptions","organizations_url":"https://api.github.com/users/pebble/orgs","repos_url":"https://api.github.com/users/pebble/repos","events_url":"https://api.github.com/users/pebble/events{/privacy}","received_events_url":"https://api.github.com/users/pebble/received_events","type":"Organization","site_admin":false},"repo":{"id":20283101,"name":"pebblejs","full_name":"pebble/pebblejs","owner":{"login":"pebble","id":1048268,"avatar_url":"https://avatars.githubusercontent.com/u/1048268?v=3","gravatar_id":"","url":"https://api.github.com/users/pebble","html_url":"https://github.com/pebble","followers_url":"https://api.github.com/users/pebble/followers","following_url":"https://api.github.com/users/pebble/following{/other_user}","gists_url":"https://api.github.com/users/pebble/gists{/gist_id}","starred_url":"https://api.github.com/users/pebble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pebble/subscriptions","organizations_url":"https://api.github.com/users/pebble/orgs","repos_url":"https://api.github.com/users/pebble/repos","events_url":"https://api.github.com/users/pebble/events{/privacy}","received_events_url":"https://api.github.com/users/pebble/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pebble/pebblejs","description":"Program the Pebble with simply JavaScript","fork":true,"url":"https://api.github.com/repos/pebble/pebblejs","forks_url":"https://api.github.com/repos/pebble/pebblejs/forks","keys_url":"https://api.github.com/repos/pebble/pebblejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pebble/pebblejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pebble/pebblejs/teams","hooks_url":"https://api.github.com/repos/pebble/pebblejs/hooks","issue_events_url":"https://api.github.com/repos/pebble/pebblejs/issues/events{/number}","events_url":"https://api.github.com/repos/pebble/pebblejs/events","assignees_url":"https://api.github.com/repos/pebble/pebblejs/assignees{/user}","branches_url":"https://api.github.com/repos/pebble/pebblejs/branches{/branch}","tags_url":"https://api.github.com/repos/pebble/pebblejs/tags","blobs_url":"https://api.github.com/repos/pebble/pebblejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pebble/pebblejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pebble/pebblejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/pebble/pebblejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pebble/pebblejs/statuses/{sha}","languages_url":"https://api.github.com/repos/pebble/pebblejs/languages","stargazers_url":"https://api.github.com/repos/pebble/pebblejs/stargazers","contributors_url":"https://api.github.com/repos/pebble/pebblejs/contributors","subscribers_url":"https://api.github.com/repos/pebble/pebblejs/subscribers","subscription_url":"https://api.github.com/repos/pebble/pebblejs/subscription","commits_url":"https://api.github.com/repos/pebble/pebblejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/pebble/pebblejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/pebble/pebblejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/pebble/pebblejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/pebble/pebblejs/contents/{+path}","compare_url":"https://api.github.com/repos/pebble/pebblejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pebble/pebblejs/merges","archive_url":"https://api.github.com/repos/pebble/pebblejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pebble/pebblejs/downloads","issues_url":"https://api.github.com/repos/pebble/pebblejs/issues{/number}","pulls_url":"https://api.github.com/repos/pebble/pebblejs/pulls{/number}","milestones_url":"https://api.github.com/repos/pebble/pebblejs/milestones{/number}","notifications_url":"https://api.github.com/repos/pebble/pebblejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pebble/pebblejs/labels{/name}","releases_url":"https://api.github.com/repos/pebble/pebblejs/releases{/id}","deployments_url":"https://api.github.com/repos/pebble/pebblejs/deployments","created_at":"2014-05-29T05:22:52Z","updated_at":"2016-01-30T13:13:09Z","pushed_at":"2016-01-25T22:39:47Z","git_url":"git://github.com/pebble/pebblejs.git","ssh_url":"git@github.com:pebble/pebblejs.git","clone_url":"https://github.com/pebble/pebblejs.git","svn_url":"https://github.com/pebble/pebblejs","homepage":null,"size":1307,"stargazers_count":347,"watchers_count":347,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":168,"mirror_url":null,"open_issues_count":57,"forks":168,"open_issues":57,"watchers":347,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pebble/pebblejs/pulls/134"},"html":{"href":"https://github.com/pebble/pebblejs/pull/134"},"issue":{"href":"https://api.github.com/repos/pebble/pebblejs/issues/134"},"comments":{"href":"https://api.github.com/repos/pebble/pebblejs/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/pebble/pebblejs/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/pebble/pebblejs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pebble/pebblejs/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/pebble/pebblejs/statuses/ad2d724bd61cf69dd4cfd1f985434e40a1458da6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":72,"deletions":0,"changed_files":6}}