From 18dba9b9f231f2793a3439522cc201bb14ce1778 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 12 Dec 2021 20:28:38 +0100 Subject: [PATCH] Added services installation howto --- INSTALLATION.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 75d411c..480bcc6 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -218,4 +218,27 @@ $ bluetoothctl Now connect your device with the noxbox raspberry pi. Don't forget to confirm in bluetoothctl twice. -Now you can stream some songs on your noxbox. \ No newline at end of file +Now you can stream some songs on your noxbox. + +# Install services + +First run the deploy script to upload the services to your raspberry pi: + +```shell +chmod +x ./deploy.sh +./deploy.sh -u USERNAME -h HOST_IP +``` + +Now login to your raspberry pi and execute the following as sudo: + +```shell +~/audio-box/install.sh +``` + +Check the following to see if the services are running correctly + +```shell +ls -la /data/services/i2c-amp-control # Should contain node_modules and index.js +ls -la /etc/systemd/system/i2c-amp-control.service # Should exist +journalctl -fu i2c-amp-control # Should show log messages when volume buttons are pressed +```