{"action":"created","issue":{"url":"https://api.github.com/repos/jantimon/meteor-gpio/issues/2","labels_url":"https://api.github.com/repos/jantimon/meteor-gpio/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jantimon/meteor-gpio/issues/2/comments","events_url":"https://api.github.com/repos/jantimon/meteor-gpio/issues/2/events","html_url":"https://github.com/jantimon/meteor-gpio/issues/2","id":110073567,"number":2,"title":"Error: EINVAL, invalid argument (Updated with demo code for RPI)","user":{"login":"KyleKing","id":3784339,"avatar_url":"https://avatars.githubusercontent.com/u/3784339?v=3","gravatar_id":"","url":"https://api.github.com/users/KyleKing","html_url":"https://github.com/KyleKing","followers_url":"https://api.github.com/users/KyleKing/followers","following_url":"https://api.github.com/users/KyleKing/following{/other_user}","gists_url":"https://api.github.com/users/KyleKing/gists{/gist_id}","starred_url":"https://api.github.com/users/KyleKing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KyleKing/subscriptions","organizations_url":"https://api.github.com/users/KyleKing/orgs","repos_url":"https://api.github.com/users/KyleKing/repos","events_url":"https://api.github.com/users/KyleKing/events{/privacy}","received_events_url":"https://api.github.com/users/KyleKing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-06T18:42:34Z","updated_at":"2015-11-23T12:13:26Z","closed_at":null,"body":"Hi, I'm having trouble configuring the demo.\r\n\r\nI'm on a RPI2 with a fresh installation of Raspbian (Jessie). I'm able to run meteor and tested the sample todos app. I followed the workaround to include jantimon:meteor-gpio as a private package and am able to run meteor, but I get this error:\r\n\r\n```\r\n=> Exited with code: 8\r\nW20151006-14:35:19.803(-4)? (STDERR) Error: EINVAL, invalid argument\r\nW20151006-14:35:19.805(-4)? (STDERR)     at Object.fs.writeSync (fs.js:540:18)\r\nW20151006-14:35:19.806(-4)? (STDERR)     at Object.fs.writeFileSync (fs.js:987:21)\r\nW20151006-14:35:19.808(-4)? (STDERR)     at new Gpio (/home/pi/GPIO-test/.meteor/local/isopacks/jantimon_gpio/npm/node_modules/onoff/onoff.js:82:8)\r\nW20151006-14:35:19.811(-4)? (STDERR)     at Object.gpio.getPort (packages/jantimon_gpio/server/index.js:61:1)\r\nW20151006-14:35:19.812(-4)? (STDERR)     at packages/jantimon_gpio/server/index.js:25:1\r\nW20151006-14:35:19.813(-4)? (STDERR)     at Array.forEach (packages/es5-shim/.npm/package/node_modules/es5-shim/es5-shim.js:417:1)\r\nW20151006-14:35:19.815(-4)? (STDERR)     at Object.gpio.configure (packages/jantimon_gpio/server/index.js:23:1)\r\nW20151006-14:35:19.816(-4)? (STDERR)     at GPIO-test.js:32:8\r\nW20151006-14:35:19.817(-4)? (STDERR)     at /home/pi/GPIO-test/.meteor/local/build/programs/server/app/GPIO-test.js:69:4\r\nW20151006-14:35:19.819(-4)? (STDERR)     at /home/pi/GPIO-test/.meteor/local/build/programs/server/boot.js:242:10\r\n```\r\n\r\nI'm using the demo code and this is the function that causes and issue:\r\n```\r\n  // Configuration\r\n  if (Meteor.isServer) {\r\n    gpio.configure({\r\n      poll: true,\r\n      publish: true,\r\n      ports: {\r\n        104: 'out',\r\n        102: 'out',\r\n        97: 'out',\r\n        101: 'out',\r\n        83: 'out',\r\n        88: 'out',\r\n        108: 'in'\r\n      }\r\n    });\r\n  }\r\n```\r\n\r\nHave you seen this error before? I have to go to class now, but I will update my question with more information later tonight.\r\n\r\n\r\nEdit: I think the pin numbers might be the issue...woops!"},"comment":{"url":"https://api.github.com/repos/jantimon/meteor-gpio/issues/comments/158916963","html_url":"https://github.com/jantimon/meteor-gpio/issues/2#issuecomment-158916963","issue_url":"https://api.github.com/repos/jantimon/meteor-gpio/issues/2","id":158916963,"user":{"login":"SidPayton","id":5787625,"avatar_url":"https://avatars.githubusercontent.com/u/5787625?v=3","gravatar_id":"","url":"https://api.github.com/users/SidPayton","html_url":"https://github.com/SidPayton","followers_url":"https://api.github.com/users/SidPayton/followers","following_url":"https://api.github.com/users/SidPayton/following{/other_user}","gists_url":"https://api.github.com/users/SidPayton/gists{/gist_id}","starred_url":"https://api.github.com/users/SidPayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SidPayton/subscriptions","organizations_url":"https://api.github.com/users/SidPayton/orgs","repos_url":"https://api.github.com/users/SidPayton/repos","events_url":"https://api.github.com/users/SidPayton/events{/privacy}","received_events_url":"https://api.github.com/users/SidPayton/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T12:13:26Z","updated_at":"2015-11-23T12:13:26Z","body":"I also can't read any inputs. It would be nice, if @jantimon  could write a simple example on how to do it. The documentation just shows how to write outputs. Thank you very much"}}