# lp-streamer

> Stream your Vinyl LP player to your wireless speakers.

Latest version **0.4.1** (published 2018-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install lp-streamer
pnpm add lp-streamer
yarn add lp-streamer
bun add lp-streamer
```

Provides the command `lp-streamer`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2018-01-14 |
| First published | 2016-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | linusu |

## Links

- npm: https://www.npmjs.com/package/lp-streamer
- Repository: https://github.com/LinusU/lp-streamer
- Homepage: https://github.com/LinusU/lp-streamer#readme
- Issues: https://github.com/LinusU/lp-streamer/issues
- npm.io page: https://npm.io/package/lp-streamer

## Dependencies (3)

- [express](https://npm.io/package/express.md) ^4.16.2
- [tree-kill](https://npm.io/package/tree-kill.md) ^1.2.0
- [audio-hid-events](https://npm.io/package/audio-hid-events.md) ^0.1.1

## Recent versions

- 0.4.1 (latest) — 2018-01-14
- 0.4.0 — 2018-01-14
- 0.3.1 — 2018-01-04
- 0.3.0 — 2018-01-04
- 0.2.1 — 2016-06-19
- 0.2.0 — 2016-06-19
- 0.1.0 — 2016-06-14

## README

# LP Streamer

Stream your Vinyl LP player to your wireless speakers.

## Installation on Raspberry Pi

Download the latest Raspian image from [raspberrypi.org](https://www.raspberrypi.org/downloads/) and flash it to an empty sd-card.

Create an empty file `ssh` on the boot partition, and configure your wlan credentials by creating a `wpa_supplicant.conf` file:

```text
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
  ssid="The name of my WiFi"
  psk="your-network-WPA/WPA2-security-passphrase"
  key_mgmt=WPA-PSK
}
```

If your wifi doesn't have a password, switch the `network=` part to:

```text
network={
  ssid="The name of my WiFi"
  key_mgmt=NONE
}
```

### Install prerequisites

```sh
sudo apt-get install git libusb-1.0-0-dev lame
```

### Install Node.js

```sh
curl -L https://nodejs.org/dist/v8.9.4/node-v8.9.4-linux-armv6l.tar.gz | sudo tar xz --strip-components=1 -C /usr
```

### Let Node.js bind to port 80 without root

```sh
sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/node
```

### Let `pi` user read audio USB HID signals

```sh
sudo adduser pi root
```

### Install LP Streamer

Clone this repo into `/home/pi/lp-streamer`, install dependencies and link in the service file.

```sh
# Clone the repo
git clone https://github.com/LinusU/lp-streamer.git

# Move into the cloned folder
cd lp-streamer

# Install dependencies, this might take a while
npm install

# Link the SystemD service file
sudo ln -s /home/pi/lp-streamer/lp-streamer.service /etc/systemd/system/lp-streamer.service
```

### Start the service

```sh
sudo systemctl daemon-reload
sudo systemctl enable lp-streamer
sudo systemctl start lp-streamer
```

The service should now start automaticallt whenever the pi is rebooted.

### Start listening 🚀

Open up [http://raspberry.local/listen.m3u](http://raspberry.local/listen.m3u) with your favourite audio player.

---
_Source: https://npm.io/package/lp-streamer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
