{"action":"created","issue":{"url":"https://api.github.com/repos/MoonshineSG/Octoprint-Filament/issues/10","repository_url":"https://api.github.com/repos/MoonshineSG/Octoprint-Filament","labels_url":"https://api.github.com/repos/MoonshineSG/Octoprint-Filament/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/MoonshineSG/Octoprint-Filament/issues/10/comments","events_url":"https://api.github.com/repos/MoonshineSG/Octoprint-Filament/issues/10/events","html_url":"https://github.com/MoonshineSG/Octoprint-Filament/issues/10","id":174781141,"number":10,"title":"normally closed switch","user":{"login":"cbusillo","id":1875516,"avatar_url":"https://avatars.githubusercontent.com/u/1875516?v=3","gravatar_id":"","url":"https://api.github.com/users/cbusillo","html_url":"https://github.com/cbusillo","followers_url":"https://api.github.com/users/cbusillo/followers","following_url":"https://api.github.com/users/cbusillo/following{/other_user}","gists_url":"https://api.github.com/users/cbusillo/gists{/gist_id}","starred_url":"https://api.github.com/users/cbusillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbusillo/subscriptions","organizations_url":"https://api.github.com/users/cbusillo/orgs","repos_url":"https://api.github.com/users/cbusillo/repos","events_url":"https://api.github.com/users/cbusillo/events{/privacy}","received_events_url":"https://api.github.com/users/cbusillo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-09-02T15:04:30Z","updated_at":"2016-12-28T14:01:21Z","closed_at":null,"body":"My switch is a normally closed switch.  When polling the API it shows 0 when the filament is loaded and 1 when it is not loaded.  Is there a variable I can set for a normally closed switch?\n"},"comment":{"url":"https://api.github.com/repos/MoonshineSG/Octoprint-Filament/issues/comments/269480828","html_url":"https://github.com/MoonshineSG/Octoprint-Filament/issues/10#issuecomment-269480828","issue_url":"https://api.github.com/repos/MoonshineSG/Octoprint-Filament/issues/10","id":269480828,"user":{"login":"OnAShoestring","id":24810828,"avatar_url":"https://avatars.githubusercontent.com/u/24810828?v=3","gravatar_id":"","url":"https://api.github.com/users/OnAShoestring","html_url":"https://github.com/OnAShoestring","followers_url":"https://api.github.com/users/OnAShoestring/followers","following_url":"https://api.github.com/users/OnAShoestring/following{/other_user}","gists_url":"https://api.github.com/users/OnAShoestring/gists{/gist_id}","starred_url":"https://api.github.com/users/OnAShoestring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnAShoestring/subscriptions","organizations_url":"https://api.github.com/users/OnAShoestring/orgs","repos_url":"https://api.github.com/users/OnAShoestring/repos","events_url":"https://api.github.com/users/OnAShoestring/events{/privacy}","received_events_url":"https://api.github.com/users/OnAShoestring/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T14:01:21Z","updated_at":"2016-12-28T14:01:21Z","body":"Hi, thanks for making and sharing this plugin.\r\n\r\nDid you test the input signals with an oscilloscope yet? I recently made my own sensor (http://www.filamentroller.com) which *had* a 600 microsecond blip on power-on which was falsely triggering pause. I assume \"bounce\" was a millisecond debounce value but trying values 4 to 4000 had no effect. Am I making the wrong assumption here?\r\n\r\nIn any case, I added time.sleep(0.100) to the first line of check_status (100 ms manual software debounce) and the problem was solved.\r\n\r\nI later modified my circuit so that my sensor no longer needs the software debounce (no more blips, very clean signal); however, I think this may be the answer to your issue here."}}
{"actor":{"display_login":"OnAShoestring"}}