{"action":"closed","issue":{"url":"https://api.github.com/repos/victronenergy/venus/issues/428","repository_url":"https://api.github.com/repos/victronenergy/venus","labels_url":"https://api.github.com/repos/victronenergy/venus/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/victronenergy/venus/issues/428/comments","events_url":"https://api.github.com/repos/victronenergy/venus/issues/428/events","html_url":"https://github.com/victronenergy/venus/issues/428","id":416569044,"node_id":"MDU6SXNzdWU0MTY1NjkwNDQ=","number":428,"title":"canvu: digital input is not working","user":{"login":"mpvader","id":5200296,"node_id":"MDQ6VXNlcjUyMDAyOTY=","avatar_url":"https://avatars1.githubusercontent.com/u/5200296?v=4","gravatar_id":"","url":"https://api.github.com/users/mpvader","html_url":"https://github.com/mpvader","followers_url":"https://api.github.com/users/mpvader/followers","following_url":"https://api.github.com/users/mpvader/following{/other_user}","gists_url":"https://api.github.com/users/mpvader/gists{/gist_id}","starred_url":"https://api.github.com/users/mpvader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpvader/subscriptions","organizations_url":"https://api.github.com/users/mpvader/orgs","repos_url":"https://api.github.com/users/mpvader/repos","events_url":"https://api.github.com/users/mpvader/events{/privacy}","received_events_url":"https://api.github.com/users/mpvader/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mansr","id":322231,"node_id":"MDQ6VXNlcjMyMjIzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/322231?v=4","gravatar_id":"","url":"https://api.github.com/users/mansr","html_url":"https://github.com/mansr","followers_url":"https://api.github.com/users/mansr/followers","following_url":"https://api.github.com/users/mansr/following{/other_user}","gists_url":"https://api.github.com/users/mansr/gists{/gist_id}","starred_url":"https://api.github.com/users/mansr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mansr/subscriptions","organizations_url":"https://api.github.com/users/mansr/orgs","repos_url":"https://api.github.com/users/mansr/repos","events_url":"https://api.github.com/users/mansr/events{/privacy}","received_events_url":"https://api.github.com/users/mansr/received_events","type":"User","site_admin":false},"assignees":[{"login":"mansr","id":322231,"node_id":"MDQ6VXNlcjMyMjIzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/322231?v=4","gravatar_id":"","url":"https://api.github.com/users/mansr","html_url":"https://github.com/mansr","followers_url":"https://api.github.com/users/mansr/followers","following_url":"https://api.github.com/users/mansr/following{/other_user}","gists_url":"https://api.github.com/users/mansr/gists{/gist_id}","starred_url":"https://api.github.com/users/mansr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mansr/subscriptions","organizations_url":"https://api.github.com/users/mansr/orgs","repos_url":"https://api.github.com/users/mansr/repos","events_url":"https://api.github.com/users/mansr/events{/privacy}","received_events_url":"https://api.github.com/users/mansr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2019-03-03T21:45:50Z","updated_at":"2019-03-11T11:04:26Z","closed_at":"2019-03-11T11:04:26Z","author_association":"CONTRIBUTOR","body":"- [x] Add dbus-digitalinputs as a machine dependency to [packagegroup-ve-dbus-data-producers.bb](https://github.com/victronenergy/meta-victronenergy/blob/master/meta-ve-software/recipes-packagegroups/packagegroup-ve-dbus-data-producers.bb) for the canvu\r\n- [x] Fix below error\r\n\r\n```\r\nroot@canvu500:/opt/victonenergy# ./dbus_digitalinputs.py /dev/gpio/digital_input_*\r\nRegistering GPIO 1 for type 0\r\nRegistering GPIO 1 for type 2\r\nTraceback (most recent call last):\r\n  File \"./ext/velib_python/vedbus.py\", line 313, in _properties_changed_handler\r\n    self._eventCallback(self._serviceName, self._path, changes)\r\n  File \"./ext/velib_python/settingsdevice.py\", line 107, in handleChangedSetting\r\n    self._eventCallback(setting, oldvalue, changes['Value'])\r\n  File \"./dbus_digitalinputs.py\", line 415, in handle_setting_change\r\n    register_gpio(inputs[inp], inp, bus, settings)\r\n  File \"./dbus_digitalinputs.py\", line 397, in register_gpio\r\n    handler.level = pulses.register(path, gpio)\r\n  File \"./dbus_digitalinputs.py\", line 96, in register\r\n    with open(os.path.join(path, 'edge'), 'ab') as fp:\r\nIOError: [Errno 13] Permission denied: '/sys/devices/soc0/soc/2100000.aips-bus/21f0000.serial/serial0/serial0-0/gpiochip7/gpio/gpio257/edge'\r\n```\r\n\r\nThe error only occurs after going into the menus and changing the type from disabled (= type 0) to anything else."}}
{"actor":{"display_login":"mansr"}}