Saturday, December 23, 2017

RaspberryPints Screen Uploader

Raspberrypints Image
After setting up my RaspberryPints server, I wanted to share the page with everyone.  Not wanting to give away the details of the server or exposing an unhardened device to the Internet, I decided to post an image of the tap list.

The process included the following:
  • Taking a screenshot using a Cron job
  • Create a DropBox Account
  • Uploading screenshot to DropBox using DropBox Uploader
  • Exposing the DropBox image as a public image

Take Screen Shots

Scrot (SCReenshOT) is an open source, powerful and flexible, command line utility for taking screen shots of your Desktop, Terminal or a Specific Window manually or automatically by Cron job. Scrot is similar to Linux ‘import‘ command, but uses ‘imlib2‘ library to capture and save images. It supports multiple image formats (JPG, PNG, GIF, etc), which you can specify while taking screen shots by using the tool.

Login as Pi

login using the the pi user perform the following

Install Scrot

sudo apt-get install scrot
sudo mkdir /screenshots

Modify the scot command

Modify the scort.sh file to provide a consistent filename.  This will allow the use of a single file name in your blog.  Using the nano editor type the following:

sudo nano /screenshots/scrot.sh
Now we will change the following line from being a dynamic filename to a constant filename.  The following line is changed from
DISPLAY=:0 scrot 'tecmint-%Y-%m-%d-%H_%M.jpg' -q 20 && mv /screenshots/*.jpg /media/tecmint
to

DISPLAY=:0 scrot 'raspberryPints.jpg' -q 20

Modify file permission

sudo chmod u+x /screenshots/scrot.sh

Create the Cron Job for every 60 minutes

crontab -e
0 * * * * /path/to/home/scrot.sh
Ctrl+X to exit and save

sudo /etc/init.d/cron start

Create a DropBox Account

Generate Access Token
Created Drop Box Account
<!*** goodloe.jason@gmail.com ***>

Head to https://www.dropbox.com/developers/apps to create a new Dropbox App

Generate Access Token

Uploading screenshot to DropBox using DropBox Uploader

http://raspberrypituts.com/dropbox-uploader-in-python/
git clone https://github.com/andreafabrizi/Dropbox-Uploader.git
cd Dropbox-Uploader
chmod +x dropbox_uploader.sh
./dropbox_uploader.sh
The first time you run dropbox_uploader, you'll be guided through a wizard in order to configure access to your Dropbox. This configuration will be stored in ~/.dropbox_uploader.

DropBox Upload Cron Job

(using pi@raspberryPINTS)

crontab -e
Add the following two lines to the file and save

0 * * * * /screenshots/scrot.sh | logger
0 * * * * /Dropbox-Uploader/dropbox_uploader.sh upload /home/pi/raspberrypintsscreen.jpg raspberrypintsscreen.jpg | logger

Exposing the DropBox image as a public image

Share DropBox image
Select the image in Dropbox.  Click the share button, and the following dialog will appear.  
Select copy link.
The link provided by DropBox is for a page.  This needs to be modified to the image.  The following is the link from DropBox


https://www.dropbox.com/s/bucohgzq1adquu2/raspberrypintsscreen.jpg?dl=0
modify the www.dropbox to dl.dropbox


https://dl.dropbox.com/s/bucohgzq1adquu2/raspberrypintsscreen.jpg
This image can now be shared.  My results for this page can be seen at the "On Tap" menu link.
*****************

Note: Instead of modifying the files in my initial implementation, I renamed the files and used the following:
  • screenshots/scrotsamename.sh
  • 0 * * * * /screenshots/scrotsamename.sh | logger
  • 0 * * * * /Dropbox-Uploader/dropbox_uploader.sh upload /home/pi/raspberrypintsscreen.jpg raspberrypintsscreen.jpg | logger

Note: The additional applications are found in the root folder under
  • /Dropbox-Uploader
  • /screenshots

Sunday, November 12, 2017

#151 Plinian Legacy (NB Pliny Clone)

Northern Brewer's version of Pliney the Elder west coast style IPA, with a fresh hop aroma of floral citrus, and pine. Vinnie would want you to enjoy this fresh.
Fermentables
AmtName


10.0 ozCarapils (Briess) 


6.0 ozBairds Carastan 


4 lbsDME Pilsen (Briess)


6 lbsLME Pilsen Light (Briess) [Boil for 15 min]


12.0 ozCorn Sugar (Dextrose) [Boil for 1 min]


Hops Used
AmtName

%/IBU
90 Minute - First Wort



0.25 ozAmarillo 

7.3 IBUs
2.00 ozHopShot 

63.5 IBUs
45 Minute - Boil



1.00 ozColumbus/Tomahawk/Zeus (CTZ) 

42.3 IBUs
25 Minute - Boil



1.00 ozSimcoe

26.8 IBUs
15 Minute - Boil



2.50 ozSimcoe

24.0 IBUs
1.50 ozCentennial

11.1 IBUs
Dry Hop - 10 days



1.50 ozColumbus/Tomahawk/Zeus (CTZ)

0.0 IBUs
1.00 ozCentennial 

0.0 IBUs
1.00 ozSimcoe  

0.0 IBUs
Dry Hop - 5 days



0.50 ozColumbus/Tomahawk/Zeus (CTZ) 

0.0 IBUs
0.50 ozSimcoe 

0.0 IBUs
0.25 ozAmarillo

0.0 IBUs
0.25 ozCentennial 

0.0 IBUs
Fermentation
AmtName


1California Ale (White Labs #WLP001) 

1WLN4000 Clarity Ferm

Wednesday, November 1, 2017

#149 Zythos IPA



MoreBeer's Hopunion's Zythos IPA.  Hopunion is one of the main suppliers of hops in the Craft Brewing industry.  Zythos is a new "IPA style" hop blend created to optimize and exceed the aroma characteristics of the traditional, and sometimes hard to get, IPA hops. Hopunion had a team of professional hop sniffers blending combinations of hops. The interesting thing about blending hops is like blending wine - the blend actually ends up being different than the sum of the parts. Pretty cool.1
Fermentables

Amt Name IBUs
8.0 oz Cara-Pils/Dextrine (2.0 SRM)
8.0 oz Caramel/Crystal Malt - 20L (20.0 SRM)
1 lbs DME Golden Light (Briess) (4.0 SRM)
9 lbs Extra Light (1.9 SRM)
6.60 oz Malto-Dextrine (Boil 60.0 mins)
Hop Schedule

1.00 oz Zythos [10.90 %] - Boil 60.0 min 35.0
1.00 oz Zythos [10.90 %] - Boil 45.0 min 32.1
1.00 oz Zythos [10.90 %] - Boil 20.0 min 21.2
1.00 oz Zythos [10.90 %] - Boil 6.0 min 8.2
2.00 oz Zythos [10.90 %] - Boil 1.0 min 3.0
2.00 oz Zythos [10.90 %] - Dry Hop 7.0 Days
Yeast
2.0 pkg California Ale (White Labs #WLP001) [35.49 ml]

Tuesday, May 23, 2017

#150 Nate's Citrus Bomb

Nate Smith Twitter
Brewed by Cervejaria Tupiniquim
Recipe by Nate Smith, @nathanhomebrew, of Oakland, CA.  Nate does a bit of judging based on his post.

Nate is a participant in the Brewing Network's Sunday Session podcast, an active member of D.O.Z.E. (Diablo Order of Zymiracle Enthusiasts) Homebrew Club.

The beer has gives off citrus, mango, and pineapple.


Amt Name IBUs
12.0 oz Crystal 15, 2-Row, (Great Western) (15.0 SRM)
9 lbs LME Golden Light (Briess) (4.0 SRM)
8.0 oz MoreBeer Ultra Light DME (2.3 SRM)
Hop Schedule
1.50 oz Magnum [12.00 %] - Boil 60.0 min 57.7 IBUs
1.00 oz Columbus (Tomahawk) [14.00 %] - Boil 30.0 min 34.5 IBUs
1.00 oz Centennial [10.00 %] - Boil 1.0 min 1.4 IBUs
1.00 oz Citra [12.00 %] - Boil 1.0 min 1.7 IBUs
1.00 oz Columbus (Tomahawk) [14.00 %] - Boil 1.0 min 1.9 IBUs
3.00 oz Falconer's Flight [11.00 %] - Dry Hop 7.0 Days 0.0 IBUs
Yeast
1.0 pkg California Ale (White Labs #WLP001) [35.49 ml] -

Nate's Recommendations on the Citrus Bomb IPA:
Use WLP001 (with a starter) or WY1056 yeast. Plan on an 18-20 day fermentation: 10 Days at 65F, then raise to 68F on the 10th. Add your dry hops 5 days later, and rack 3-5 days after that. *NOTE* Fining with biofine is recommended!

In the review section, some have suggested using Brett Trois wlp644

Win A Trip To 2015 NHC @ MoreBeer.com

linkwithin_site_id 2127225

Related Posts Plugin...