SlabPi: Difference between revisions

From NURDspace
(48 intermediate revisions by 4 users not shown)
Line 2: Line 2:
|Name=SlabPi
|Name=SlabPi
|Owner=Invict
|Owner=Invict
|Status=Infrastructure
|Status=Infra
|Location=Behind the printer
|Hostname=slabpi.dhcp.nurd.space
|Picture=Slabpi.jpg
|Location=Near the amp
|Picture=Slabpi2.jpg
|Tool=No
|Tool=No
}}
}}
SlabPi is the replacement for [[Slab]] on a Raspberry Pi 3. It has been moved, because of [[downscaling]].
==What==
SlabPi is the replacement for [[Slab]] on a [https://www.raspberrypi.org/products/raspberry-pi-3-model-b/ Raspberry Pi 3]. It has been moved, because of [[downscaling]].
It will be challenged with as much infra a Raspberry Pi can handle.


It runs the MPD Server and it has a SenseHAT for measuring temperature, humidity and atmospheric pressure on Raspbian.
It runs the MPD Server and <s>espeak</s>. It is running on [https://www.raspberrypi.org/downloads/raspbian/ Raspbian Stretch Lite].
 
A DAC+ Hat has been added for better audio quality.
 
==DAC+==
 
PiFi HIFI DAC+ Digital Audio Card added for better audio quality.
 
Installation:
Edit /boot/config.txt
 
Disable the line
#dtparam=audio=on
 
add
dtoverlay=hifiberry-dacplus


==MPD==
==MPD==


Fixed an issue where MPD hangs on song change. Fix it by uncommenting "device" option in the "audio_output" block (in my case ALSA) in mpd.conf. This is a common error.
<s>Currently runs through LiquidSoap, so there is a +- 30 second delay. Ask [[User:R3boot|r3boot]] ;).</s>


Fixed an issue where MPD hangs on song change. Fix it by uncommenting "device" option in the "audio_output" block (in my case ALSA) in mpd.conf.
This is a common error.


Connection through client.
Connection through client.


Host: slabpi.dhcp.nurd.space
Host: slabpi.dhcp.nurd.space
Line 23: Line 43:
Port: 6600
Port: 6600


==SenseHAT==
It is integrated with Home Assistant view on [[Jarvis]].
 
HTTPD outputs:
* port 6666 (8000:16:1) used by the VOIP system
* port 7777 (44100:16:2) used by Audiophiles
 
==PulseAudio==
The SlabPI is now running PulseAudio, this allows multiple streams to be play simultaneously without having to stop/kill MPD.


The measurements are locally readable on a Node-RED dashboard here. http://slabpi.dhcp.nurd.space:1880/ui/#/0 and public on https://metrics.nurd.space/dashboard/db/space-dash?refresh=1m&orgId=1
<s>Eventually, PulseAudio will be made accessible through the network so everyone can dump their audio to the Slabpi.</s>
Pulseaudio should be accessible over the network, I don't really know yet if it really works though.


==Icecast==
There is an icecast server running again on port 8050. It's a direct feed from Pulseaudio so all sounds (Entrance themes, speak commands) will be heard on the stream. Perhaps I'll eventually make MPD send to icecast as well for a "clean signal"


==WiP==
Mount point(s):
 
To do:
* /nurds (Pulseaudio)
* Sensor measurement implementation on [[Nurdbot]]
 
* SenseHAT died. Check on what's up.
== MPD Control ==
* SenseHAT is now directly above the Raspberry Pi 3 board, need to connect a 40 pin cable for better temperature measurement
For those not wanting to install a MPD client, there now runs a small MPD client on port 80 (ypmd) that can be used to directly control MPD.
 
 
== Youtube ==
This project now has it's own wiki page, [[MPDTube]]
 
==espeak==
 
<s>Espeak is now functional, there were ALSA problems.</s> We Pulseaudio now!
 
==Motion webcam==
Running motion for webcam, see [http://slabpi:8081/ this link]
 
Possible resolutions:
 
* 160x120
* 320x240
* 640x480
Can be checked with:
v4l2-ctl --list-formats-ext
 
It is included in the Home Assistant view of [[Jarvis]].
 
==Labelprinter implementation==
 
Labelprinter is up and running.
See [[Labelprinter]].
 
==Entrance Themes==
 
It has a script running which plays a part of a song for each individual member entering the space. See [[Entrance themes]].
 
==WIP==
 
* <strike>espeak [[Nurdbot]] implementation</strike> Seems to work!
* Moar cams
* Move logging to mounted location to preserve the micro SD card quality.
* Backups
* Icecast server?
* Scrobble to last.fm?

Revision as of 00:00, 7 September 2019

SlabPi
Slabpi2.jpg
Owner Invict
Status Infra
Hostname slabpi.dhcp.nurd.space
Location Near the amp
Tool No
Tool category

SlabPi

Slabpi2.jpg {{{InventoryOwner}}}Property "Tool Owner" (as page type) with input value "{{{InventoryOwner}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. Near the amp

What

SlabPi is the replacement for Slab on a Raspberry Pi 3. It has been moved, because of downscaling. It will be challenged with as much infra a Raspberry Pi can handle.

It runs the MPD Server and espeak. It is running on Raspbian Stretch Lite.

A DAC+ Hat has been added for better audio quality.

DAC+

PiFi HIFI DAC+ Digital Audio Card added for better audio quality.

Installation:

Edit /boot/config.txt

Disable the line

#dtparam=audio=on

add

dtoverlay=hifiberry-dacplus

MPD

Currently runs through LiquidSoap, so there is a +- 30 second delay. Ask r3boot ;).

Fixed an issue where MPD hangs on song change. Fix it by uncommenting "device" option in the "audio_output" block (in my case ALSA) in mpd.conf. This is a common error.

Connection through client.

Host: slabpi.dhcp.nurd.space

Port: 6600

It is integrated with Home Assistant view on Jarvis.

HTTPD outputs:

  • port 6666 (8000:16:1) used by the VOIP system
  • port 7777 (44100:16:2) used by Audiophiles

PulseAudio

The SlabPI is now running PulseAudio, this allows multiple streams to be play simultaneously without having to stop/kill MPD.

Eventually, PulseAudio will be made accessible through the network so everyone can dump their audio to the Slabpi. Pulseaudio should be accessible over the network, I don't really know yet if it really works though.

Icecast

There is an icecast server running again on port 8050. It's a direct feed from Pulseaudio so all sounds (Entrance themes, speak commands) will be heard on the stream. Perhaps I'll eventually make MPD send to icecast as well for a "clean signal"

Mount point(s):

  • /nurds (Pulseaudio)

MPD Control

For those not wanting to install a MPD client, there now runs a small MPD client on port 80 (ypmd) that can be used to directly control MPD.


Youtube

This project now has it's own wiki page, MPDTube

espeak

Espeak is now functional, there were ALSA problems. We Pulseaudio now!

Motion webcam

Running motion for webcam, see this link

Possible resolutions:

  • 160x120
  • 320x240
  • 640x480

Can be checked with:

v4l2-ctl --list-formats-ext

It is included in the Home Assistant view of Jarvis.

Labelprinter implementation

Labelprinter is up and running. See Labelprinter.

Entrance Themes

It has a script running which plays a part of a song for each individual member entering the space. See Entrance themes.

WIP

  • espeak Nurdbot implementation Seems to work!
  • Moar cams
  • Move logging to mounted location to preserve the micro SD card quality.
  • Backups
  • Icecast server?
  • Scrobble to last.fm?