{"id":14427,"date":"2017-10-15T21:50:38","date_gmt":"2017-10-16T01:50:38","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=14427"},"modified":"2017-10-21T23:36:32","modified_gmt":"2017-10-22T03:36:32","slug":"raspberry-pi-combined-rebootshutdown-button-demo","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2017\/10\/15\/raspberry-pi-combined-rebootshutdown-button-demo\/","title":{"rendered":"Raspberry Pi combined reboot\/shutdown button demo"},"content":{"rendered":"<p><strong>NB<\/strong>: this version <strong>doesn&#8217;t<\/strong> actually do the rebooting or shutting down: it&#8217;s a demo. <a href=\"http:\/\/scruss.com\/blog\/2017\/10\/21\/combined-restart-shutdown-button-for-raspberry-pi\/\">This one does, though \u00e2\u20ac\u00a6<\/a><\/p>\n<p>Here&#8217;s how you might have just one button being a reset button (hold down for two seconds) or a shutdown button (hold down for five):<\/p>\n<p><script src=\"https:\/\/gist.github.com\/scruss\/f6f3d99bbb3d499384b5f9768a9a015d.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NB: this version doesn&#8217;t actually do the rebooting or shutting down: it&#8217;s a demo. This one does, though \u00e2\u20ac\u00a6 Here&#8217;s how you might have just one button being a reset button (hold down for two seconds) or a shutdown button (hold down for five):<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[3083,2540,2510,3082],"class_list":["post-14427","post","type-post","status-publish","format-standard","hentry","category-computers-suck","tag-demo","tag-python","tag-raspberrypi","tag-reset"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-3KH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/14427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=14427"}],"version-history":[{"count":3,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/14427\/revisions"}],"predecessor-version":[{"id":14445,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/14427\/revisions\/14445"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=14427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=14427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=14427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}