/like-counter-pi

Very basic web app to display facebook likes on Raspberry Pi.

Primary LanguageShell

http://www.wtfpl.net

README

Simple web application displaying the like counter on Rapsberry Pi display.

Installation Guide

Prerequisites

Font dependencies

We're using custom fonts, so feel free to skip this if you don't plan on using custom fonts.

# for ubuntu/debian
sudo apt-get install fontconfig fbterm

Display dependencies

sudo apt-get install -y build-essential libconfig++-dev

Step 1

Update your Raspbian distribution:

sudo apt update

Git is already installed on your Raspberry. Let's check it out:

git --version

Example output:

=> git version 2.23.0

Step 2

Let's clone this repo:

git clone git@github.com:arharovets/like-counter-pi.git

Step 3

Let's install Ruby:

cd like-counter-pi
chmod +x install_ruby.sh # makes the script executable
./install_ruby.sh

It might take some time (~2 hr on Pi Zero). Pour yourself a big cup of tea ☕️.

The output should look like:

=> Reload the current shell to get access to rbenv using:
=> source ~/.bashrc

Close current Terminal window and open a new one. Type the following command:

source ~/.bashrc

Yay! Check the installed version:

ruby -v

Output:

=> ruby 2.6.3somenumbersandletters

Step 4

Now that we have Ruby installed...

cd like-counter-pi
bundle install
rbenv rehash

Step 5

sudo chmod +x ./install_matrix_display.sh
sudo chmod +x ./run_terminal_emulator.sh
sudo sh ./install_matrix_display.sh

... and reboot.

Step 6

Make sure your Raspberry boots into console mode, and run:

cd like-counter-pi
sh ./run_terminal_emulator.sh
thor like_counter:live

IRL Example

alt text

alt text