{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/168","repository_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python","labels_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/168/comments","events_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/168/events","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/168","id":262145999,"number":168,"title":"RE: Hello and PWM on BBBW w/ Adafruit_BBIO","user":{"login":"silver2row","id":9708195,"avatar_url":"https://avatars2.githubusercontent.com/u/9708195?v=4","gravatar_id":"","url":"https://api.github.com/users/silver2row","html_url":"https://github.com/silver2row","followers_url":"https://api.github.com/users/silver2row/followers","following_url":"https://api.github.com/users/silver2row/following{/other_user}","gists_url":"https://api.github.com/users/silver2row/gists{/gist_id}","starred_url":"https://api.github.com/users/silver2row/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silver2row/subscriptions","organizations_url":"https://api.github.com/users/silver2row/orgs","repos_url":"https://api.github.com/users/silver2row/repos","events_url":"https://api.github.com/users/silver2row/events{/privacy}","received_events_url":"https://api.github.com/users/silver2row/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pdp7","id":313864,"avatar_url":"https://avatars2.githubusercontent.com/u/313864?v=4","gravatar_id":"","url":"https://api.github.com/users/pdp7","html_url":"https://github.com/pdp7","followers_url":"https://api.github.com/users/pdp7/followers","following_url":"https://api.github.com/users/pdp7/following{/other_user}","gists_url":"https://api.github.com/users/pdp7/gists{/gist_id}","starred_url":"https://api.github.com/users/pdp7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdp7/subscriptions","organizations_url":"https://api.github.com/users/pdp7/orgs","repos_url":"https://api.github.com/users/pdp7/repos","events_url":"https://api.github.com/users/pdp7/events{/privacy}","received_events_url":"https://api.github.com/users/pdp7/received_events","type":"User","site_admin":false},"assignees":[{"login":"pdp7","id":313864,"avatar_url":"https://avatars2.githubusercontent.com/u/313864?v=4","gravatar_id":"","url":"https://api.github.com/users/pdp7","html_url":"https://github.com/pdp7","followers_url":"https://api.github.com/users/pdp7/followers","following_url":"https://api.github.com/users/pdp7/following{/other_user}","gists_url":"https://api.github.com/users/pdp7/gists{/gist_id}","starred_url":"https://api.github.com/users/pdp7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdp7/subscriptions","organizations_url":"https://api.github.com/users/pdp7/orgs","repos_url":"https://api.github.com/users/pdp7/repos","events_url":"https://api.github.com/users/pdp7/events{/privacy}","received_events_url":"https://api.github.com/users/pdp7/received_events","type":"User","site_admin":false}],"milestone":null,"comments":28,"created_at":"2017-10-02T16:33:50Z","updated_at":"2017-10-12T01:54:53Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\n**uname -a**: Linux beaglebone 4.9.50-ti-r61 #1 SMP PREEMPT Fri Sep 15 20:10:18 UTC 2017 armv7l GNU/Linux\r\n\r\n**Python**: Python 2.7.13 (default, Jan 19 2017, 14:48:08)\r\n                   [GCC 6.3.0 20170118] on linux2\r\n\r\nI am using the BBBW for software testing and hardware testing. I am testing a piece of software from the book, \"Getting Started with BeagleBone\" (Richardson 2014). I am on page 78, i.e example 6 - 9.\r\n\r\nSoftware:\r\n\r\n    from flask import Flask, render_template\r\n    app = Flask(__name__)\r\n    import Adafruit_BBIO.GPIO as GPIO\r\n    import Adafruit_BBIO.PWM as PWM\r\n\r\n    PWM.start(\"P8_13\", 0.0)\r\n\r\n    @app.route(\"/\")\r\n    def hello():\r\n        if GPIO.input(P8_11):\r\n            doorStatus = \"open\"\r\n        else:\r\n            doorStatus = \"closed\"\r\n        templateData = {\r\n            'doorStatus': doorStatus,\r\n        }\r\n        return render_template('main-door.html', **templateData)\r\n    \r\n    @app.route('/ledLevel/<level>')\r\n    def pin_state(level):\r\n        PWM.set_duty_cycle(\"P8_13\", float(level))\r\n        return \"LED level set to \" + \".\"\r\n    \r\n    if __name__ == \"__main__\":\r\n        app.run(host='192.168.7.2', port=5000, debug=True)\r\n\r\nIssue or Error:\r\n\r\nRuntimeError: Problem with a sysfs file\r\n\r\nSeth\r\n\r\nP.S. I hope this is enough info. If you have any questions, please do not hesitate to contact me.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/comments/335997505","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/168#issuecomment-335997505","issue_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/168","id":335997505,"user":{"login":"pdp7","id":313864,"avatar_url":"https://avatars2.githubusercontent.com/u/313864?v=4","gravatar_id":"","url":"https://api.github.com/users/pdp7","html_url":"https://github.com/pdp7","followers_url":"https://api.github.com/users/pdp7/followers","following_url":"https://api.github.com/users/pdp7/following{/other_user}","gists_url":"https://api.github.com/users/pdp7/gists{/gist_id}","starred_url":"https://api.github.com/users/pdp7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdp7/subscriptions","organizations_url":"https://api.github.com/users/pdp7/orgs","repos_url":"https://api.github.com/users/pdp7/repos","events_url":"https://api.github.com/users/pdp7/events{/privacy}","received_events_url":"https://api.github.com/users/pdp7/received_events","type":"User","site_admin":false},"created_at":"2017-10-12T01:54:53Z","updated_at":"2017-10-12T01:54:53Z","author_association":"COLLABORATOR","body":"@silver2row I'd recommend not using Linux 4.9 kernel for now.  You should be able to get the flask web application running ok with Linux 4.4 kernel."}}
{"actor":{"display_login":"pdp7"}}