{"action":"created","issue":{"url":"https://api.github.com/repos/billhsu/jUART/issues/45","repository_url":"https://api.github.com/repos/billhsu/jUART","labels_url":"https://api.github.com/repos/billhsu/jUART/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/billhsu/jUART/issues/45/comments","events_url":"https://api.github.com/repos/billhsu/jUART/issues/45/events","html_url":"https://github.com/billhsu/jUART/issues/45","id":170162640,"number":45,"title":"ReferenceError: plugin is not defined","user":{"login":"oshihirii","id":5090307,"avatar_url":"https://avatars.githubusercontent.com/u/5090307?v=3","gravatar_id":"","url":"https://api.github.com/users/oshihirii","html_url":"https://github.com/oshihirii","followers_url":"https://api.github.com/users/oshihirii/followers","following_url":"https://api.github.com/users/oshihirii/following{/other_user}","gists_url":"https://api.github.com/users/oshihirii/gists{/gist_id}","starred_url":"https://api.github.com/users/oshihirii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshihirii/subscriptions","organizations_url":"https://api.github.com/users/oshihirii/orgs","repos_url":"https://api.github.com/users/oshihirii/repos","events_url":"https://api.github.com/users/oshihirii/events{/privacy}","received_events_url":"https://api.github.com/users/oshihirii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-09T13:14:47Z","updated_at":"2016-08-10T05:07:57Z","closed_at":null,"body":"Environment: \r\n\r\nFirefox 48 for Ubuntu\r\n\r\nI've followed these steps in README.md:\r\n\r\n- Copy `bin/Linux/npjUART.so` to: `~/.mozilla/extensions`.\r\n\r\n- And `js` file looks like:\r\n\r\n```\r\n//Get a Serial object\r\nvar ser = plugin().Serial;\r\n\r\n// Open a port\r\nser.open(\"/dev/ttyACM0\");\r\n\r\n// Set port options\r\nvar baud = 9600;\r\nvar parity = 0;\r\nvar csize = 8;\r\nvar flow = 0;\r\nvar stop = 0;\r\n\r\nser.set_option(baud, parity, csize, flow, stop);\r\n\r\n// Send a byte to serial port\r\nchar = \"\";\r\n\r\nser.send(char);\r\n```\r\nDid I need to take any other steps?  \r\n\r\nDo I have to \"build it\"?\r\n\r\nWhen I run the HTML file, Firebug says:\r\n\r\n> ReferenceError: plugin is not defined"},"comment":{"url":"https://api.github.com/repos/billhsu/jUART/issues/comments/238767115","html_url":"https://github.com/billhsu/jUART/issues/45#issuecomment-238767115","issue_url":"https://api.github.com/repos/billhsu/jUART/issues/45","id":238767115,"user":{"login":"oshihirii","id":5090307,"avatar_url":"https://avatars.githubusercontent.com/u/5090307?v=3","gravatar_id":"","url":"https://api.github.com/users/oshihirii","html_url":"https://github.com/oshihirii","followers_url":"https://api.github.com/users/oshihirii/followers","following_url":"https://api.github.com/users/oshihirii/following{/other_user}","gists_url":"https://api.github.com/users/oshihirii/gists{/gist_id}","starred_url":"https://api.github.com/users/oshihirii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshihirii/subscriptions","organizations_url":"https://api.github.com/users/oshihirii/orgs","repos_url":"https://api.github.com/users/oshihirii/repos","events_url":"https://api.github.com/users/oshihirii/events{/privacy}","received_events_url":"https://api.github.com/users/oshihirii/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T05:07:56Z","updated_at":"2016-08-10T05:07:56Z","body":"Thank you for the information.  \r\n\r\nDo you know anything else that does the same job?\r\n\r\nI need to communicate from web page to local serial port.\r\n\r\nI was using pyserial (mine is a python based web application) but that only works locally - not from a \"live\" website. \r\n\r\nI looked at:\r\n\r\nhttp://www.firebreath.org/display/documentation/Download\r\n\r\nand downloaded the zip file.\r\n\r\nHow do I do Step 1 of the steps in your README.md ie \"Install FireBreath\"?\r\n\r\n"}}
{"actor":{"display_login":"oshihirii"}}