{"id":2001,"date":"2018-05-09T23:32:18","date_gmt":"2018-05-10T05:32:18","guid":{"rendered":"http:\/\/bt.beerprojects.com\/wordpress\/?p=2001"},"modified":"2018-05-14T20:38:32","modified_gmt":"2018-05-15T02:38:32","slug":"raspberry-pints-my-digital-taplist","status":"publish","type":"post","link":"https:\/\/bt.beerprojects.com\/wordpress\/?p=2001","title":{"rendered":"Raspberry Pints &#8211; My digital taplist"},"content":{"rendered":"<p>In playing around with the Raspberry Pi and Craftbeerpi, I came across a project called <a href=\"http:\/\/raspberrypints.com\/\" target=\"_blank\" rel=\"noopener\">Raspberry Pints<\/a>. This project is intended to enable a single screen behind a bar show what is on tap.&nbsp; It has fancy features to monitor the kegs if you add flowmeters and stuff.&nbsp; Somewhere along the way I read that <a href=\"http:\/\/bernerbits.github.io\/ras-pints-without-pi\/\">someone noticed<\/a> that this can be &#8216;ported&#8217; to work on a normal apache\/php\/mysql server.&nbsp; So I thought, I have one of those (the website that you are reading) and decided to give it a whirl.<\/p>\n<p>Turns out the project is kind of dead or at least stalled for a while, but I managed to learn that the <a href=\"https:\/\/github.com\/RaspberryPints\/RaspberryPints\/archive\/2.0.1.ziP\" target=\"_blank\" rel=\"noopener\">2.0.1 zip file<\/a> was a good start.&nbsp; I kicked off the install and ta-da it said everything was a success. So I went to the main page and immediately ran into several errors.&nbsp;&nbsp;<\/p>\n<p>Error 1:&nbsp; I think the install script running on my server didn&#8217;t update config files for the username and passwords that I was asked for in the install script.&nbsp; There are a few files this had to be updated.<\/p>\n<p>Error 2: The main page didn&#8217;t recognize some variables setup in a few include files.&nbsp; I&#8217;m pretty not php savy, but it seemed that if I setup a variable as a global things went fine.<\/p>\n<p>Error 3:&nbsp; Some of the includes were missing from the admin page to get into the mysql database.&nbsp; Simple adding the inlcude files to the files that generated errors seemed to overcome this.<\/p>\n<p>Once I was past that I was in and able to set things up.&nbsp; Quickly I discovered that I need to learn how to use this better.  It seemed like some pages were overwriting information about beers when I didn&#8217;t think they should and subsequently mixed up the data on the beers.  After a bit of trial and error I was able to get my info added.<\/p>\n<p>I then made a few updates.&nbsp; I wanted a way to jump back to my wordpress site added to the display.&nbsp; The logo on the top left normally takes you to the admin page, but I changed this to go back to my own page.&nbsp; This took some effort as I didn&#8217;t realize how the project was converting the mysql data into php variables.&nbsp; Several hours later I discovered an include file was doing this magic.&nbsp; Simply adding my new variables to this and adding the data to the mysql database got this all going.&nbsp; I tried to make an Admin link right below the logo, but my random attempts to update the php and css files failed.&nbsp; So instead I setup and Admin link on the left header in a ugly way.<\/p>\n<p>So there we go I have <a href=\"..\/..\/raspberrypints\/index.php\" rel=\"noopener\" target=\"_blank\">my digital taplist<\/a> up and going.&nbsp; Now I can get back to my brewstand controller design, but at some point I need to create my own logo. <\/p>\n<p>5\/10\/2018 Update:  I figured out how to add some PHP code that will convert a snapshot of my current raspberry pints webpage to an image using <a href=\"https:\/\/wkhtmltopdf.org\/\" rel=\"noopener\" target=\"_blank\">khtmltoimage<\/a> and add it to this post and my homepage rather than using iframe.  This allows the image to size correctly in my post.<\/p>\n<div><a href=\"http:\/\/bt.beerprojects.com\/raspberrypints\/index.php\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"wp-content\/gallery\/RaspberryPints.jpg\" alt=\"Image of Raspberry Pints taplist\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In playing around with the Raspberry Pi and Craftbeerpi, I came across a project called Raspberry Pints. This project is intended to enable a single screen behind a bar show what is on tap.&nbsp; It has fancy features to monitor the kegs if you add flowmeters and stuff.&nbsp; Somewhere along the way I read that [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2024,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[250,154],"tags":[451,58,450,449,453,452],"class_list":["post-2001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-beerprojects","category-beer-topics","tag-mysql","tag-php","tag-raspberry-pints","tag-raspberrypints","tag-wkhtmltoimage","tag-wkhtmltopdf"],"_links":{"self":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2001"}],"version-history":[{"count":13,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2001\/revisions"}],"predecessor-version":[{"id":2025,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2001\/revisions\/2025"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/2024"}],"wp:attachment":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}