{"id":298,"date":"2013-11-09T17:03:00","date_gmt":"2013-11-09T17:03:00","guid":{"rendered":"http:\/\/thomas.w-p.me.uk\/blog\/2013\/11\/squeezebox-frustration-prompts-action\/"},"modified":"2013-11-09T17:03:00","modified_gmt":"2013-11-09T17:03:00","slug":"squeezebox-frustration-prompts-action","status":"publish","type":"post","link":"https:\/\/thomas.w-p.me.uk\/blog\/2013\/11\/squeezebox-frustration-prompts-action\/","title":{"rendered":"Squeezebox Frustration prompts action&#8230;"},"content":{"rendered":"<p>I sold my broken squeezebox on ebay.\u00a0 It turns out it was just the power supply.\u00a0 How incredibly frustrating.<\/p>\n<p>So I decided to work on getting my RPi LMS a display.\u00a0 Notes.<\/p>\n<p><a href=\"https:\/\/github.com\/WiringPi\/WiringPi2-Python\">https:\/\/github.com\/WiringPi\/WiringPi2-Python<\/a> to install wiringPi for my LCD display, but it wouldn&#8217;t compile.  Neither would <a href=\"https:\/\/github.com\/WiringPi\/WiringPi-Python\">https:\/\/github.com\/WiringPi\/WiringPi-Python<\/a>.<\/p>\n<p><a href=\"https:\/\/github.com\/WiringPi\/WiringPi-Python\/issues\/7\">https:\/\/github.com\/WiringPi\/WiringPi-Python\/issues\/7<\/a> fixed this and I compiled WiringPi2.<\/p>\n<p>I had much more success with this<br \/><a href=\"http:\/\/pylms-python-logitech-media-server.readthedocs.org\/en\/latest\/index.html\">http:\/\/pylms-python-logitech-media-server.readthedocs.org\/en\/latest\/index.html <\/a><br \/>and could read what was playing on the SqueezeLite with no issues at all.<\/p>\n<pre># Proof of concept - needs to be run as sudo<br>import wiringpi2 as wp<br><br>from pylms.server import Server<br>from pylms.player import Player<br><br># set up the display<br>wp.wiringPiSetup();<br>lcd = wp.lcdInit (2, 16, 4,  11,10 , 0,1,2,3,0,0,0,0) ;from pylms.player import Player<br><br># connect to the squeezebox<br>sc = Server(hostname=\"192.168.0.5\", port=9090)<br>sc.connect()<br>sl = sc.get_player(\"b8:27:eb:eb:37:68\")<br><br>#clear the lcd<br>wp.lcdClear(lcd)<br>wp.lcdPosition(lcd, 0, 0)<br>wp.lcdPuts(lcd,sl.get_track_title()[:16])<br>wp.lcdPosition(lcd, 0, 1)<br>wp.lcdPuts(lcd,sl.get_track_album()[:16])<\/pre>\n<p>So that is a start &#8211; now to make it update when the track changes and to scroll the titles.\u00a0 And&#8230;. And&#8230;<\/p>\n<div><a href=\"http:\/\/4.bp.blogspot.com\/-thckNml-jh4\/Un5uLTJQDKI\/AAAAAAAAVZo\/99sJq31-Zu8\/s1600\/2013-11-09+16.56.29.jpg\" imageanchor=\"1\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"300\" src=\"http:\/\/4.bp.blogspot.com\/-thckNml-jh4\/Un5uLTJQDKI\/AAAAAAAAVZo\/99sJq31-Zu8\/s400\/2013-11-09+16.56.29.jpg\" width=\"400\"><\/a><\/div>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I sold my broken squeezebox on ebay.\u00a0 It turns out it was just the power supply.\u00a0 How incredibly frustrating. So I decided to work on getting my RPi LMS a display.\u00a0 Notes. https:\/\/github.com\/WiringPi\/WiringPi2-Python to install wiringPi for my LCD display, but it wouldn&#8217;t compile. Neither would https:\/\/github.com\/WiringPi\/WiringPi-Python. https:\/\/github.com\/WiringPi\/WiringPi-Python\/issues\/7 fixed this and I compiled WiringPi2. I &hellip; <a href=\"https:\/\/thomas.w-p.me.uk\/blog\/2013\/11\/squeezebox-frustration-prompts-action\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Squeezebox Frustration prompts action&#8230;<\/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":[],"tags":[33,34,36],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","tag-raspberry-pi","tag-squeezebox","tag-squeezelite"],"_links":{"self":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/298","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=298"}],"version-history":[{"count":0,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}