improve docs
This commit is contained in:
parent
8bb1af628b
commit
0e7c1b080d
2 changed files with 38 additions and 62 deletions
|
|
@ -26,23 +26,21 @@ Running icecast and darkice. See icecast-darkice.md for setup instructions.
|
||||||
|
|
||||||
## Setup instructions
|
## Setup instructions
|
||||||
### Creature comforts
|
### Creature comforts
|
||||||
sudo apt update && install git vim zsh
|
1. sudo apt update && install git vim zsh
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
2. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
|
|
||||||
### Icecast2 and Darkice installation
|
### Icecast2 and Darkice installation
|
||||||
Follow this tutorial: https://dev.to/shilleh/stream-audio-from-raspberry-pi-to-local-computer-1a1c
|
Loosely following this tutorial: https://dev.to/shilleh/stream-audio-from-raspberry-pi-to-local-computer-1a1c
|
||||||
|
|
||||||
|
|
||||||
#### Install icecast2
|
#### Install icecast2
|
||||||
sudo apt install icecast2
|
1. sudo apt install icecast2
|
||||||
|
2. It will ask you for three passwords. Set them all as emergence.
|
||||||
It will ask you for three passwords. Set them all as emergence.
|
|
||||||
|
|
||||||
|
|
||||||
#### Install darkice
|
#### Install darkice
|
||||||
sudo apt install darkice
|
1. sudo apt install darkice
|
||||||
|
2. sudo vim /etc/darkice.cfg
|
||||||
sudo vim /etc/darkice.cfg
|
|
||||||
|
|
||||||
```
|
```
|
||||||
[general]
|
[general]
|
||||||
|
|
@ -72,8 +70,7 @@ public = no # Do not list on public lists
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Daemonize darkice
|
#### Daemonize darkice
|
||||||
|
1. sudo vim /lib/systemd/system/darkice.service
|
||||||
sudo vim /lib/systemd/system/darkice.service
|
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Darkice Service
|
Description=Darkice Service
|
||||||
|
|
@ -87,10 +84,7 @@ ExecStart=/usr/bin/darkice -c /etc/darkice.cfg
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
|
2. sudo systemctl daemon-reload
|
||||||
sudo systemctl daemon-reload
|
3. sudo systemctl enable icecast2
|
||||||
|
4. sudo systemctl enable darkice
|
||||||
sudo systemctl enable icecast2
|
|
||||||
|
|
||||||
sudo systemctl enable darkice
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,24 +32,22 @@ Running mplayer, soundcard library, lcd graphics library, and custom python code
|
||||||
|
|
||||||
## Setup instructions
|
## Setup instructions
|
||||||
### Creature comforts
|
### Creature comforts
|
||||||
sudo apt update && install git vim zsh
|
1. sudo apt update && install git vim zsh
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
2. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
|
|
||||||
### Waveshare soud card drivers
|
|
||||||
Follw instructions at https://www.waveshare.com/wiki/WM8960_Audio_HAT
|
|
||||||
|
|
||||||
|
|
||||||
|
### Install Waveshare soud card drivers
|
||||||
#### Install drivers
|
#### Install drivers
|
||||||
git clone https://github.com/waveshare/WM8960-Audio-HAT
|
Following instructions instructions at https://www.waveshare.com/wiki/WM8960_Audio_HAT
|
||||||
cd WM8960-Audio-HAT
|
|
||||||
sudo ./install.sh
|
|
||||||
sudo reboot
|
|
||||||
sudo dkms status
|
|
||||||
|
|
||||||
Check for drivers installed
|
1. git clone https://github.com/waveshare/WM8960-Audio-HAT
|
||||||
|
2. cd WM8960-Audio-HAT
|
||||||
|
3. sudo ./install.sh
|
||||||
|
4. sudo reboot
|
||||||
|
5. sudo dkms status
|
||||||
|
6. Check the output of dkms to confirm that drivers installed correctly
|
||||||
|
7. sudo apt install mplayer
|
||||||
|
|
||||||
#### Test drivers
|
#### Test radio
|
||||||
sudo apt install mplayer
|
|
||||||
mplayer -playlist http://blackportaldetroit.com:1313/portal.m3u
|
mplayer -playlist http://blackportaldetroit.com:1313/portal.m3u
|
||||||
|
|
||||||
#### Daemonize radio
|
#### Daemonize radio
|
||||||
|
|
@ -78,40 +76,23 @@ sudo reboot
|
||||||
alsamixer
|
alsamixer
|
||||||
sudo alsactl store
|
sudo alsactl store
|
||||||
|
|
||||||
### LCD Screen
|
### LCD screen and sound processing logic
|
||||||
Follow https://peppe8o.com/1602-lcd-raspberry-pi-display/
|
Install software from this repo
|
||||||
|
|
||||||
sudo apt install python3-pip python3-smbus i2c-tools -y
|
|
||||||
sudo raspi-config
|
|
||||||
|
|
||||||
enable i2c in interface options
|
|
||||||
|
|
||||||
|
|
||||||
|
1. sudo raspi-config
|
||||||
|
2. enable i2c in interface options
|
||||||
|
3. i2cdetect -y 1
|
||||||
|
4. confirm that i2cdetect tells you the address 27.
|
||||||
|
|
||||||
|
5. curl https://get.volta.sh | bash
|
||||||
|
6. volta install node
|
||||||
|
7. git clone git@git.featherboaz.com:boazsender/portal.git
|
||||||
|
|
||||||
python3 -m venv screen --system-site-packages
|
8. cd portal && npm install
|
||||||
source ./screen/bin/activate
|
9. npx prisma generate && npx prisma db push && npx prisma db seed
|
||||||
|
|
||||||
pip3 install adafruit-circuitpython-charlcd
|
10. sudo vim /lib/systemd/system/screen.service
|
||||||
|
|
||||||
wget https://peppe8o.com/download/python/lcd/i2c-lcd-test-01-hello-world.py
|
|
||||||
|
|
||||||
i2cdetect -y 1
|
|
||||||
|
|
||||||
python3 i2c-lcd-test-01-hello-world.py
|
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
curl https://get.volta.sh | bash
|
|
||||||
volta install node
|
|
||||||
|
|
||||||
git clone git@git.featherboaz.com:boazsender/portal.git
|
|
||||||
|
|
||||||
cd portal && npm install
|
|
||||||
npx prisma generate && npx prisma db push && npx prisma db seed
|
|
||||||
|
|
||||||
sudo vim /lib/systemd/system/screen.service
|
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Screen Service
|
Description=Screen Service
|
||||||
|
|
@ -126,5 +107,6 @@ ExecStart=/home/grace/.volta/bin/node /home/grace/portal/build/screen.js
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
sudo systemctl daemon-reload
|
11. sudo systemctl daemon-reload
|
||||||
sudo systemctl enable listener
|
12. sudo systemctl enable listener
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue