Comments (7)
Try to give gmrender-resurrect the IP address to listen on. It only can listen on one interface (due to some underlying reasons in the UPnP library).
With the command 'ifconfig' (older) or 'ip addr' (newer distributions) you can figure out on your machine which IP your wifi is configured for. Then start gmrender-resurrect with the --ip-address flag that you give that IP.
Let me know if that works.
from gmrender-resurrect.
Hmmm. When I launch it from the command line, it appears. It is only when I
launch it from the init script that it didn't show up. I know the ip
address in any case. The WiFi is temporary. I guess I'll have to edit the
init script for each setup.
On Nov 13, 2013 8:02 PM, "Henner Zeller" [email protected] wrote:
Try to give gmrender-resurrect the IP address to listen on. It only can
listen on one interface (due to some underlying reasons in the UPnP
library).With the command 'ifconfig' (older) or 'ip addr' (newer distributions) you
can figure out on your machine which IP your wifi is configured for. Then
start gmrender-resurrect with the --ip-address flag that you give that IP.Let me know if that works.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-28453610
.
from gmrender-resurrect.
Well, you could determine the IP address automatically in that script. For instance:
MY_IP=$(ip addr | sed 's/inet ([.0-9]_)._wlan0/\1/p;d')
.. then add this on the call to gmediarender
... --ip-address $MY_IP
Make sure that at the time your gmediarender is started, the network is up (e.g. numbering in /etc/rc2.d/)
from gmrender-resurrect.
Henner,
I hard coded the IP address in the startup script b/c the SED script did
not work.
sed: -e expression #1, char 27: invalid reference \1 on `s' command's RHS
I guess my question is more that gmediarender acts differently when you
start adding parameters than when you just give it a name.. For example:
#> /usr/local/bin/gmediarender -f "LabMusic" -d
will launch it and show that name on the network regardless of which
interface is connected. No need to tell it what the IP address is.
When I launch it from the script, it seems to 'need' to know the ip address
of the interface.
...
start-stop-daemon -x $BINARY_PATH -c "$DAEMON_USER" -S -- -f
"$UPNP_DEVICE_NAME" -d -u "$UPNP_UUID" $GS_SINK_PARAM $GS_DEVICE_PARAM
--gstout-initial-volume-db=$INITIAL_VOLUME_DB --ip-address $MY_IP
...
What am I missing?
Keith
On Wed, Nov 13, 2013 at 9:03 PM, Henner Zeller [email protected]:
Well, you could determine the IP address automatically in that script. For
instance:MY_IP=$(ip addr | sed 's/inet ([.0-9]_)._wlan0/\1/p;d')
.. then add this on the call to gmediarender
... --ip-address $MY_IPMake sure that at the time your gmediarender is started, the network is up
(e.g. numbering in /etc/rc2.d/)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-28455842
.
from gmrender-resurrect.
Looks like the github rendering thing ate all the backslashes. Let's try that again, hopefully it renders now as 'code'
MY_IP=$(ip addr | sed 's/inet \([.0-9]*\).*wlan0/\1/p;d')
the fact if you add the flag '-f' to give it a name should not change anything. You should try the usual debugging tricks with shellscripts to print out what the final command line looks like (e.g. 'echo' it). Also, write the gmrender logfile to some place where you can inspect it after the script started - it might reveal the proper reason what went wrong ( --logfile=/tmp/gmrender.log or something )
Also, did you verify that the network is up when the gmrender script is started ?
from gmrender-resurrect.
I'll confirm that this last suggestion works. At least for me.
from gmrender-resurrect.
Just did a clean new install and it works 'out of the box' for WiFi or ethernet
from gmrender-resurrect.
Related Issues (20)
- Documentation of --gstout-audiodevice is incorrect
- Enhancement: Support external volume control
- daemon starts with Error: UPNP_E_INVALID_INTERFACE HOT 3
- Cut 0.1 release HOT 2
- DSD Native HOT 6
- disconnected client but device audio is still not relased HOT 6
- Compile errors with libupnp 1.14.13
- [Debian PowerPC G3] error in stdout when trying to play m3u8 stream HOT 2
- hi-fi cast on android shows only one of multiple gmediarender on intranet [v0.1] HOT 3
- Issues Volume Control with Replay Gain HOT 17
- Home asistant and youtube music unable play HOT 3
- Scrobbling HOT 4
- Wrong link to wiki compatibility page HOT 1
- Trouble working with Pipewire HOT 1
- Convolution with Filter possible? HOT 3
- Trying to show video, it crash HOT 9
- Music lag, playing by pulseaudio-dlna / gmediarender on raspberry 4b
- [error] UPNP_E_SOCKET_BIND (-203) HOT 1
- Sparky USB dietpi+gmrender play next error
- How to support rk3566 hardware acceleration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmrender-resurrect.