{"id":440,"date":"2013-11-19T09:53:24","date_gmt":"2013-11-19T09:53:24","guid":{"rendered":"http:\/\/thomas.w-p.me.uk\/blog\/?p=440"},"modified":"2013-11-19T10:12:19","modified_gmt":"2013-11-19T10:12:19","slug":"moving-rpizebox-to-git","status":"publish","type":"post","link":"https:\/\/thomas.w-p.me.uk\/blog\/2013\/11\/moving-rpizebox-to-git\/","title":{"rendered":"Moving RPizeBox to git"},"content":{"rendered":"<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-448 aligncenter\" alt=\"500D_1901\" src=\"https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1901-1024x682.jpg\" width=\"604\" height=\"402\" srcset=\"https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1901-1024x682.jpg 1024w, https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1901-300x200.jpg 300w, https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1901.jpg 1200w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/p>\n<p>Now I have the proof of concept for the RPi, I wanted to improve the code and have long term plans to make it remember tracks we skip, as well as allowing a blacklist!\u00a0 I wanted to keep some sort of version control, and this is where <a href=\"https:\/\/github.com\/\">git <\/a>comes in.\u00a0 I have been aware of git for a while but don&#8217;t really know much about it.<\/p>\n<p>I now have created my own git hub for RPizeBox at <a href=\"https:\/\/github.com\/thomaswwp\/RPizeBox\">https:\/\/github.com\/thomaswwp\/RPizeBox<\/a>. I also forked PyLMS (which appears to be abandoned) and will eventually include it in my build as a module, rather than simply importing the code.<\/p>\n<p>I have reduced the code to two scripts, but this looks like it has increased the CPU overhead to about 6%, so I may revert to what I had before.<\/p>\n<p>I have also made a Fritzing diagram of the setup for future reference.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/RPizeBox_bb.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-442 aligncenter\" alt=\"RPizeBox_bb\" src=\"https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/RPizeBox_bb-1024x922.png\" width=\"604\" height=\"543\" srcset=\"https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/RPizeBox_bb-1024x922.png 1024w, https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/RPizeBox_bb-300x270.png 300w, https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/RPizeBox_bb.png 1944w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">I also found that the skip forward button was broken on the remote, so just remapped other buttons.<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1902.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-449\" alt=\"500D_1902\" src=\"https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1902-1024x682.jpg\" width=\"604\" height=\"402\" srcset=\"https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1902-1024x682.jpg 1024w, https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1902-300x200.jpg 300w, https:\/\/thomas.w-p.me.uk\/blog\/wp-content\/uploads\/2013\/11\/500D_1902.jpg 1200w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now I have the proof of concept for the RPi, I wanted to improve the code and have long term plans to make it remember tracks we skip, as well as allowing a blacklist!\u00a0 I wanted to keep some sort of version control, and this is where git comes in.\u00a0 I have been aware of &hellip; <a href=\"https:\/\/thomas.w-p.me.uk\/blog\/2013\/11\/moving-rpizebox-to-git\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Moving RPizeBox to git<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[64,39,42,33,32,38,34,36],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-geekiness","tag-git","tag-python","tag-quad-seven-segment-display","tag-raspberry-pi","tag-rpizebox","tag-spotify","tag-squeezebox","tag-squeezelite"],"_links":{"self":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":5,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/440\/revisions\/464"}],"wp:attachment":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}