johnpdowling / custom_components Goto Github PK
View Code? Open in Web Editor NEWcustom components (new and overrides) for 0.91+ home assistant
License: Apache License 2.0
custom components (new and overrides) for 0.91+ home assistant
License: Apache License 2.0
When trying to install the add-on, I get this error:
The command '/bin/bash -o pipefail -c apk update && apk add --no-cache libcrypto1.1=1.1.1g-r0 libssl1.1=1.1.1g-r0 && apk add --no-cache --virtual deps1 alsa-lib-dev autoconf automake cmake avahi-dev bash bsd-compat-headers build-base confuse-dev curl curl-dev ffmpeg-dev file git gnutls-dev gperf json-c-dev libevent-dev libgcrypt-dev libplist-dev libsodium-dev libtool libunistring-dev openjdk7-jre-base protobuf-c-dev sqlite-dev && apk add --no-cache --virtual=deps2 --repository http://nl.alpinelinux.org/alpine/edge/testing libantlr3c-dev mxml-dev && apk add --no-cache avahi confuse dbus ffmpeg json-c libcurl libevent libgcrypt libplist libsodium libunistring libuv=1.29.1-r0 libuv-dev=1.29.1-r0 protobuf-c sqlite sqlite-libs openssl && apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing libantlr3c mxml && curl -L -o /tmp/antlr-3.4-complete.jar http://www.antlr3.org/download/antlr-3.4-complete.jar && echo '#!/bin/bash' > /usr/local/bin/antlr3 && echo 'exec java -cp /tmp/antlr-3.4-complete.jar org.antlr.Tool "$@"' >> /usr/local/bin/antlr3 && chmod 775 /usr/local/bin/antlr3 && cd /tmp && git clone --branch "v3.2.2" --depth=1 https://github.com/warmcat/libwebsockets.git && cd /tmp/libwebsockets && cmake ./ -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=TRUE -DLWS_IPV6=ON -DLWS_STATIC_PIC=ON -DLWS_UNIX_SOCK=OFF -DLWS_WITH_LIBUV=ON -DLWS_WITH_SHARED=ON -DLWS_WITHOUT_TESTAPPS=ON && make && make install && cd /tmp && git clone https://github.com/ejurgensen/forked-daapd.git && cd /tmp/forked-daapd && autoreconf -fi && ./configure --enable-itunes --with-libwebsockets && make && make install && apk del --purge deps1 deps2 && rm -rf /usr/local/bin/antlr3 /tmp/* && cd /usr/local/etc && sed -i -e 's/\(uid.*=.*\)/uid = "root"/g' forked-daapd.conf && sed -i s#"ipv6 = yes"#"ipv6 = no"#g forked-daapd.conf && sed -i s#/srv/music#/config/forked-daapd/music#g forked-daapd.conf && sed -i s#/usr/local/var/cache/forked-daapd/songs3.db#/config/forked-daapd/cache/songs3.db#g forked-daapd.conf && sed -i s#/usr/local/var/cache/forked-daapd/cache.db#/config/forked-daapd/cache/cache.db#g forked-daapd.conf && sed -i s#/usr/local/var/log/forked-daapd.log#/dev/stdout#g forked-daapd.conf && sed -i "/websocket_port\ =/ s/# *//" forked-daapd.conf && sed -i "/trusted_networks\ =/ s/# *//" forked-daapd.conf && sed -i "/pipe_autostart\ =/ s/# *//" forked-daapd.conf && sed -i "/db_path\ =/ s/# *//" forked-daapd.conf && sed -i "/cache_path\ =/ s/# *//" forked-daapd.conf' returned a non-zero code: 99
once I’ve sent a ‘say’ to the speakers, they turn off, and won’t easily turn back on again. Any ideas anyone why this might be?
I installed this component and it pulled in the end points from my forked-daapd box as media players. However whenever I try to interact with them through the Developer Tools -> Services utility, nothing happens. Any tips or pointers to getting this to work would be helpful. Thanks.
Hi @johnpdowling, I tried your custom component (which I was waiting/looking for months now). Great idea btw! :)
I added it to my Home Assistant configuration with "forked-daapd:" only, then I get this error on start:
Setup failed for forked-daapd: No setup function defined.
What can I do? How is this component correctly configured in my configuration.yaml?
I now get:
Error executing script. Unexpected error for call_service at pos 4: Got unexpected return value: 'playlist: file:/srv/music/playlists/r1, Last-Modified: 2021-02-17T20:04:54Z, playlist: file:/srv/music/playlists/r2, Last-Modified: 2021-02-17T20:04:55Z, playlist: file:/srv/music/playlists/r3, Last-Modified: 2021-02-17T20:04:55Z, playlist: file:/srv/music/playlists/r4, Last-Modified: 2021-02-17T20:04:55Z, playlist: file:/srv/music/playlists/r4x, Last-Modified: 2021-02-17T20:04:56Z, playlist: file:/srv/music/playlists/r6, Last-Modified: 2021-02-17T20:04:55Z
Hello,
I tried installing this directly from your repo by adding it in "Supervisor > Add-on store > Repositories", selecting the "forked-daapd" add-on and clicking install. The installer fails and directs me to my log file which records this error:
20-09-30 20:56:21 ERROR (SyncWorker_0) [supervisor.docker.addon] Can't build a6b98bcd/armv7-addon-forked-daapd:0.0.2: The command '/bin/bash -o pipefail -c apk update && apk add --no-cache libcrypto1.1=1.1.1g-r0 libssl1.1=1.1.1g-r0 && apk add --no-cache --virtual deps1 alsa-lib-dev autoconf automake cmake avahi-dev bash bsd-compat-headers build-base confuse-dev curl curl-dev ffmpeg-dev file git gnutls-dev gperf json-c-dev libevent-dev libgcrypt-dev libplist-dev libsodium-dev libtool libunistring-dev openjdk7-jre-base protobuf-c-dev sqlite-dev && apk add --no-cache --virtual=deps2 --repository http://nl.alpinelinux.org/alpine/edge/testing libantlr3c-dev mxml-dev && apk add --no-cache avahi confuse dbus ffmpeg json-c libcurl libevent libgcrypt libplist libsodium libunistring libuv=1.29.1-r0 libuv-dev=1.29.1-r0 protobuf-c sqlite sqlite-libs openssl && apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing libantlr3c mxml && curl -L -o /tmp/antlr-3.4-complete.jar http://www.antlr3.org/download/antlr-3.4-complete.jar && echo '#!/bin/bash' > /usr/local/bin/antlr3 && echo 'exec java -cp /tmp/antlr-3.4-complete.jar org.antlr.Tool "$@"' >> /usr/local/bin/antlr3 && chmod 775 /usr/local/bin/antlr3 && cd /tmp && git clone --branch "v3.2.2" --depth=1 https://github.com/warmcat/libwebsockets.git && cd /tmp/libwebsockets && cmake ./ -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=TRUE -DLWS_IPV6=ON -DLWS_STATIC_PIC=ON -DLWS_UNIX_SOCK=OFF -DLWS_WITH_LIBUV=ON -DLWS_WITH_SHARED=ON -DLWS_WITHOUT_TESTAPPS=ON && make && make install && cd /tmp && git clone https://github.com/ejurgensen/forked-daapd.git && cd /tmp/forked-daapd && autoreconf -fi && ./configure --enable-itunes --with-libwebsockets && make && make install && apk del --purge deps1 deps2 && rm -rf /usr/local/bin/antlr3 /tmp/* && cd /usr/local/etc && sed -i -e 's/\(uid.*=.*\)/uid = "root"/g' forked-daapd.conf && sed -i s#"ipv6 = yes"#"ipv6 = no"#g forked-daapd.conf && sed -i s#/srv/music#/config/forked-daapd/music#g forked-daapd.conf && sed -i s#/usr/local/var/cache/forked-daapd/songs3.db#/config/forked-daapd/cache/songs3.db#g forked-daapd.conf && sed -i s#/usr/local/var/cache/forked-daapd/cache.db#/config/forked-daapd/cache/cache.db#g forked-daapd.conf && sed -i s#/usr/local/var/log/forked-daapd.log#/dev/stdout#g forked-daapd.conf && sed -i "/websocket_port\ =/ s/# *//" forked-daapd.conf && sed -i "/trusted_networks\ =/ s/# *//" forked-daapd.conf && sed -i "/pipe_autostart\ =/ s/# *//" forked-daapd.conf && sed -i "/db_path\ =/ s/# *//" forked-daapd.conf && sed -i "/cache_path\ =/ s/# *//" forked-daapd.conf' returned a non-zero code: 1
Here are the details of my Raspberry Pi installation:
arch | armv7l
-- | --
chassis | embedded
dev | false
docker | true
docker_version | 19.03.11
hassio | true
host_os | HassOS 4.13
installation_type | Home Assistant OS
os_name | Linux
os_version | 4.19.127-v7l
python_version | 3.8.5
supervisor | 245
timezone | America/Los_Angeles
version | 0.115.2
virtualenv | false
Aside from the 112th word in the error which reads simply "confuse" I am not able to make heads or tails of this error. Does it mean anything to you? Is there something I can do differently to get this to install?
Thanks,
Samuel
In README.md, Installation:
Create a named pipe %config%/forked-daapd/HomeAssistantAnnounce
Question: How to create a named pipe? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.