An Electron application built specifically for a Raspberry Pi 3 running a 7" display but can be easily modified for other displays and operating systems. The backend is powered by Node.js v6.9 and Express. The frontend is built using Angular 1.5 and Angular Material. All data is from the Blockchain.info API.
You can find detailed information about this project via my blog posts below.
- Part 1 - Setting up the Raspberry Pi
- Part 2 - Electron overview & server side code
- Part 3 - Frontend code & autostart guide
- Install Node.js >= v6.9.5. (Using NVM is recommended)
npm install
bower install
npm start
to launch the application in development mode with Chromium's developer tools opened
NOTE: If you plan to make large amounts of requests to Blockchain.info, request an API
code here and enter your personal API code in controllers/apiCode.js
It is currently not possible, or at least easy, to create an electron installer targeted for Linux ARM. See this electron-builder issue for more information.
If you wish instead to autostart this app during the Pi's startup follow these steps.
- Clone this repo to your Pi
- Run
npm install && bower install
- Modify line 5 of
btc-autostart.sh
to cd into the root directory of your cloned app - As root run the following commands to make the
btc-autostart.sh
executable
sudo chown pi:pi /path/to/btc-autostart.sh
sudo chmod +x /path/to/btc-autostart.sh
- Edit your Pi's LXDE
autostart.sh
file to run this applicationsbtc-autostart.sh
file
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart.sh
- At the end of this file add a line pointing to this applications
btc-autostart.sh
file
/path/to/btx-autostart.sh
- Save and exit the file
Ctrl + X, Y, Enter
- Restart your Pi and the app should now automatically start