-
1Clone and install the RUNBOX repo to your Raspberry Pi
1. Clone the repo
git clone git@github.com:Dude-its-Matt-G/RUNBOX.git
2. Install NPM packages
npm install
3. Rebuild modules
./node_modules/.bin/electron-rebuild
4. Run the application
npm run start
-
2Install YEPKIT's ykushcmd package
TAKEN FROM YEPKIT GITHUB - https://github.com/Yepkit/ykush
For Linuxlibusb-1.0
must be installed. For Debian based systems run the following.sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev
With these dependencies installed, build the application the running the following script.
./build.sh
After a successful build process you can install the ykush command in the system. To do so, run:
sudo ./install.sh
After install, the
ykushcmd
command is ready for use.Windows
To build using MinGW run the following command.
For 32bit:
make -f Makefile_win32
For 64bit:
make -f Makefile_win64
After a successful build process the executable file will be created in the
bin\Win32
orbin\Win64
folder depending if it was the 32 or 64 bit build. -
3Configure Ykush3 for GPIO control
TAKEN FROM YEPKIT WEBPAGE - https://learn.yepkit.com/tutorial/ykush3-gpio-control-interface
GPIO control interface is disabled by default on YKUSH3 boards. To enable it do the following.
# Enable GPIO control interface $ sudo ykushcmd ykush3 --gpio enable # Reset the board $ sudo ykushcmd ykush3 --reset
-
4Configure Raspberry Pi for Waveshare monitor
In order to get the Waveshare to display properly you will need to edit the config.txt. To do so, open the terminal and type:
sudo nano /boot/config.txt
You will need to add the following:
# 1920x1080 monitor (0 means monitor 1 the outside most hdmi port) hdmi_force_hotplug:0=1 hdmi_group:0=0 hdmi_mode:0=82 # waveshare (inside most hdmi port) hdmi_force_hotplug:1=1 hdmi_group:1=2 hdmi_mode:1=87 hdmi_cvt:1=1024x600 60
Ensure not to plug the monitors to the wrong ports.
You will also need to setup the touch screen on the Waveshare. Now this may differ from time to time especially if you don't have two monitors plugged in. Since I do at all times, for example I have to run this code at startup:
xinput map-to-output 9 HDMI-2
Please visit this page for instructions on how to tailor this code for your own use: https://networks.guru/2018/11/23/using-dual-monitor-dual-touch-screens-on-ubuntu/
The xinput code I have in a DELAYED startup "user service".
I believe this is delayed by at least 1 minute on my setup!You can follow these instructions to assist in the creation of startup services:
https://scruss.com/blog/2017/10/22/creating-a-systemd-user-service-on-your-raspberry-pi/I believe I added the script to push the app to the Waveshare upon opening in "main.js" lines 30 through 39
-
5OPTIONAL - Make RUNBOX open on start-up
You would just add a user service that opens the app though it must be delayed. I believe mine is delayed by at least 1 minute - just as the xinput is. You can play around with this to get the quickest load time. Though too soon and it will not have the required items to run properly!
You can follow these instructions to assist in the creation of startup services:
https://scruss.com/blog/2017/10/22/creating-a-systemd-user-service-on-your-raspberry-pi/ -
6OPTIONAL - Add power switch to Raspberry Pi
I added an on/off button using the instructions from:
https://howchoo.com/g/mwnlytk3zmm/how-to-add-a-power-button-to-your-raspberry-pi
I use this switch from Amazon because GRTA :)
https://www.amazon.com/dp/B07SRGG7KF?psc=1&ref=ppx_yo2_dt_b_product_details
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.