Git Product home page Git Product logo

hassio-addons's Introduction

Almostserious HASS.IO Repository

Hey! This is my Home Assistant's Supervisor add-ons repository.

Based on Raph2i with some smaller changes. All Addons compile on your machine at installation, let it work. Librespot takes 5-15 minutes to build as an example.

hassio-addons's People

Contributors

almostserious avatar fietstasss avatar manutoky avatar raph2i avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hassio-addons's Issues

snapcast-server not starting up due to recent docker changes in HA

Snapcast-server version 0.25 is installed, but while starting up, getting the following error - **"s6-overlay-suexec: fatal: can only run as pid 1"**.

I did a little digging and found this page mentioning recent changes related to S6-Overlay -
https://developers.home-assistant.io/blog/2022/05/12/s6-overlay-base-images/

Please update the add-on to be compatible with this changes.

Environment Info -
Home Assistant Core 2022.5.5
Home Assistant Supervisor 2022.05.2
Home Assistant OS 8.1
Device - Raspberry Pi 4B+

Unable to install snapcast on Hassio 2021.2.0

Unable to install snapcast on Hassio 2021.2.0

when i tried to install i got error:

The command '/bin/ash -o pipefail -c sed -i -e 's/v[[:digit:]]..*//edge//g' /etc/apk/repositories && apk add --no-cache snapcast bash' returned a non-zero code: 1

also i see the following log in hassio:

WARNING:
Ignoring https://dl-cdn.alpinelinux.org/alpine/edge/main: Permission denied

fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz

WARNING:
Ignoring https://dl-cdn.alpinelinux.org/alpine/edge/community: temporary error (try again later)

ERROR:
unable to select packages:

snapcast (no such package):
required by: world[snapcast]

Removing intermediate container 28ba52a16ef7

Spotcast / Librespot

The spotcast and librespot seem not to work with current HA versions.. At least for me.

Anyone else come across those problems?

Both addons are installed and get started.

Getting this error over and over again from Spotcast:

[Error] (PosixStream) Connect exception: execve failed: Permission denied

snapcast-client stopped working

thanks for your addons, great work
I noticed that snapcast-client stopped working, probably after the upgrade on the release #9

this is what I get when I connect to my snapcast server:
metadata:{"STREAM":"Volumio-MPD"} 2020-05-03 22-04-52 [Info] Codec: flac 2020-05-03 22-04-52 [Notice] sampleformat: 48000:16:2 ALSA lib dlmisc.c:283:(snd_dlobj_cache_get0) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so ((null): Error loading shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so: No such file or directory) 2020-05-03 22-04-52 [Err] Controller::onException: Can't open default PCM device: No such device or address 2020-05-03 22-04-54 [Warn] timeout while waiting for response to: 730, timeout 2000 2020-05-03 22-04-54 [Err] Exception in Controller::worker(): Can't open default PCM device: No such device or address 2020-05-03 22-04-55 [Notice] Connected to 10.251.107.65 2020-05-03 22-04-55 [Info] My MAC: "02:42:ac:1e:21:0a", socket: 5 2020-05-03 22-04-55 [Info] ServerSettings - buffer: 1000, latency: 0, volume: 100, muted: 0

there is also an open issue about this: home-assistant/plugin-audio#12

Improve installation note

Hi @raph2i,

Could it be possible to get some instructions about to get it live ?

I would like to perform a standard installation for test like :

Client_iPhone -> LibreSpot -> SnapcastServer -> SnapcastClient.

Actually when I launch Snapcast server I get the following logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15:58:49] INFO: Populating snapserver.conf...
[15:58:50] INFO: Starting SnapServer...
Error relocating /usr/lib/libavahi-common.so.3: __gettimeofday_time64: symbol not found
Error relocating /usr/lib/libavahi-common.so.3: __time64: symbol not found
Error relocating /usr/lib/libFLAC.so.8: __fstat_time64: symbol not found
Error relocating /usr/lib/libFLAC.so.8: __stat_time64: symbol not found
Error relocating /usr/lib/libFLAC.so.8: __utime64: symbol not found
Error relocating /usr/lib/libintl.so.8: __fstat_time64: symbol not found
Error relocating /usr/lib/libdbus-1.so.3: __lstat_time64: symbol not found
Error relocating /usr/lib/libdbus-1.so.3: __clock_getres_time64: symbol not found
Error relocating /usr/lib/libdbus-1.so.3: __pthread_cond_timedwait_time64: symbol not found
Error relocating /usr/lib/libdbus-1.so.3: __gettimeofday_time64: symbol not found
Error relocating /usr/lib/libdbus-1.so.3: __nanosleep_time64: symbol not found
Error relocating /usr/lib/libdbus-1.so.3: __fstat_time64: symbol not found
Error relocating /usr/lib/libdbus-1.so.3: __stat_time64: symbol not found
Error relocating /usr/lib/libdbus-1.so.3: __clock_gettime64: symbol not found
Error relocating /usr/bin/snapserver: __localtime64_r: symbol not found
Error relocating /usr/bin/snapserver: __stat_time64: symbol not found
Error relocating /usr/bin/snapserver: __fstat_time64: symbol not found
Error relocating /usr/bin/snapserver: __time64: symbol not found
[cmd] /run.sh exited 127
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Configuration :

stream:
  streams:
    - >-
      pipe:///share/snapfifo/librespot?name=SpotifyConnect&sampleformat=44100:16:2
    - 'pipe:///share/snapfifo/mopidy?name=Mopidy&sampleformat=44100:16:2'
  buffer: '1000'
  codec: flac
  send_to_muted: 'false'
  sampleformat: '48000:16:2'
http:
  enabled: 'true'
  doc_root: ' '
tcp:
  enabled: 'true'
logging:
  enabled: 'true'
server:
  threads: '-1'
  datadir: /share/snapcast/

Unable to install this sddon on hassio

Hello I'm facing this issue when i try to install this addon

The command '/bin/ash -o pipefail -c apk add --no-cache python2 py2-paho-mqtt bash curl wget tar && curl -L https://raw.githubusercontent.com/MartyTremblay/sip2mqtt/master/sip2mqtt.py -o sip2mqtt.py && apk add --no-cache --virtual .build4pjsip alpine-sdk && apk add --no-cache libsrtp-dev python2-dev openssl-dev opus-dev && cd && wget -qnv "http://www.pjsip.org/release/2.7.2/pjproject-2.7.2.tar.bz2" -O - | tar xjf - && cd pjproject-2.7.2 && ./configure --with-external-srtp --enable-shared --disable-sound --disable-oss --disable-sdl --disable-speex-aec --disable-video --prefix=/usr/local > /dev/null && make dep && make && make install && cd pjsip-apps/src/python && make && make install && cd && rm -rf pjproject-2.7.2 && apk del .build4pjsip' returned a non-zero code: 1

image

Can anyone please help me in order to solve this issue ? Thank and bets regards

Error install sip2mqtt in Hassio

HassOS - 3.12
Supervisor - 222

20-05-11 19:01:00 INFO (MainThread) [supervisor.addons] Create Home Assistant add-on data folder /data/addons/data/7d3aa1ca_sip2mqtt
20-05-11 19:01:00 INFO (SyncWorker_9) [supervisor.docker.addon] Start build 7d3aa1ca/armv7-addon-sip2mqtt:beta
20-05-11 19:01:17 ERROR (SyncWorker_9) [supervisor.docker.addon] Can't build 7d3aa1ca/armv7-addon-sip2mqtt:beta: The command '/bin/ash -o pipefail -c apk add --no-cache python2 py2-paho-mqtt bash curl wget tar && curl -L https://raw.githubusercontent.com/MartyTremblay/sip2mqtt/master/sip2mqtt.py -o sip2mqtt.py && apk add --no-cache --virtual .build4pjsip alpine-sdk && apk add --no-cache libsrtp-dev python2-dev openssl-dev opus-dev && cd && wget -qnv "http://www.pjsip.org/release/2.7.2/pjproject-2.7.2.tar.bz2" -O - | tar xjf - && cd pjproject-2.7.2 && ./configure --with-external-srtp --enable-shared --disable-sound --disable-oss --disable-sdl --disable-speex-aec --disable-video --prefix=/usr/local > /dev/null && make dep && make && make install && cd pjsip-apps/src/python && make && make install && cd && rm -rf pjproject-2.7.2 && apk del .build4pjsip' returned a non-zero code: 1

Unable to build sip2mqtt on aarch64

Trying to install sip2mqtt in latest Home Assistant on an Odroidc2 (aarch64) failed:

../../webrtc/src/webrtc//modules/audio_processing/aec/aec_core_sse2.c:15:10: fatal error: emmintrin.h: No such file or directory

Looks like it's trying to build webrtc with intrinisics for Intel SSE2.
Maybe disable WebRTC would help? (--disable-libwebrtc)

Librespot error - libgcc missing?

Hey there,

I added your repo and was able to successfully get snapserver and snapclient working, thank you! I'm having a problem with libspotify - after building and starting the container, I'm getting the error that libgcc_s.so.1 is missing. I'm not sure how to fix this?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Start Librespot...
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /usr/local/bin/librespot)
Error relocating /usr/local/bin/librespot: _Unwind_Resume: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetIPInfo: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetDataRelBase: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetRegionStart: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_SetGR: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetTextRelBase: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_DeleteException: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_RaiseException: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetIP: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_Backtrace: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetLanguageSpecificData: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_SetIP: symbol not found
[cmd] /run.sh exited 127
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

snapserver: add tcp input port forward option for incoming tcp streams.

You can add an input stream to snapserver with a stream like:

- 'tcp://0.0.0.0:4953/?name=tcp_in'

But this being docker, we'd need a port forward into the container to see it.

With this in place, I reckon I'll be able to have a tannoy/public address like system. (especially with the meta:/// stream type coming in snapcast 0.22)

How do I install this in HASSio?

I just installed Hassio on a Raspi4 and now want to use Spotify Connect and Snapcast to cast the sound to snapcast clients. This repo looks perfect for it, but I don't understand how I can install it. I think I need to add this repo as an additional Hassio addon store, but I'm unsure how.

Could anyone help me out with a tip on how to use this code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.