Code Monkey home page Code Monkey logo

Comments (7)

hzeller avatar hzeller commented on July 23, 2024

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.

gearhead avatar gearhead commented on July 23, 2024

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.

hzeller avatar hzeller commented on July 23, 2024

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.

gearhead avatar gearhead commented on July 23, 2024

Henner,

I hard coded the IP address in the startup script b/c the SED script did
not work.

$> MY_IP=$(ip addr | sed 's/inet ([.0-9]).wlan0/\1/p;d')
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_IP

Make 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.

hzeller avatar hzeller commented on July 23, 2024

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.

sm7xvd avatar sm7xvd commented on July 23, 2024

I'll confirm that this last suggestion works. At least for me.

from gmrender-resurrect.

gearhead avatar gearhead commented on July 23, 2024

Just did a clean new install and it works 'out of the box' for WiFi or ethernet

from gmrender-resurrect.

Related Issues (20)

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.