Skip to content

thobardin/babpi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babpi

Follow score and rank players for your football table games, using a raspberry-pi. Not a new idea, but never found a complete solution.

You'll need:

And you'll get:

provide screenshot

Installation

For development

babpi can be run straight from your dev machine with:

npm install
npm run dev

Then just open http://127.0.0.1:3000/ in your favorite browser. You can mock the button interface by pressing a, A, b and B.

Raspberry pi

Let's start with a fresh raspberry pi:

# Update system
sudo apt-get update
sudo apt-get upgrade

# Install chromium 48
cd
wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb
sudo dpkg -i chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

# Install node
cd
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb

# Install babPi (this)
cd
sudo apt-get install git
git clone https://github.com/dav-m85/babpi.git
cd babpi
npm install
npm install onoff
npm run build

# Setup GPIO
cd wiringPi-b0a60c3/
gpio -v
gpio readall
gpio mode 0 up

# Replace /home/pi/.config/lxsession/LXDE/autostart with the following lines
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
#@xscreensaver -no-splash
@xset s off
@xset -dpms
@xset s noblank
unclutter -idle 0
gpio mode 0 up
node /home/pi/babpi/server.js </dev/null >/home/pi/babpi/server.log 2>&1 &
chromium-browser --kiosk http://192.168.0.107:3000/scoreboard --incognito

TODO

There's still a few things I would like to improve:

Feel free to do a Pull Request.

References

Those below are outdated but I did use them for inspiration...

Other projects

About

Scoreboard for football table with a Raspberry Pi 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 54.0%
  • JavaScript 33.9%
  • Python 7.8%
  • HTML 4.3%