DLNA renderer options
-
- Posts: 13
- Joined: Sat Dec 17, 2016 6:34 am
DLNA renderer options
Is anyone aware of any DLNA renderer for DietPi?
Re: DLNA renderer options
I just came here to request the addition of gmediarender to DP.
It's already in the repos so should be simple to add, although I was going to complicate the request a bit as I'm having trouble getting it running as a service and also it needs an option (probably in dietpi-justboom) for the user to change the name of the server (the -f switch when loading it from a prompt).
EDIT: Further research suggests I'm not the only one having issues with running it as a service: https://bugs.launchpad.net/ubuntu/+sour ... ug/1547763
It's already in the repos so should be simple to add, although I was going to complicate the request a bit as I'm having trouble getting it running as a service and also it needs an option (probably in dietpi-justboom) for the user to change the name of the server (the -f switch when loading it from a prompt).
EDIT: Further research suggests I'm not the only one having issues with running it as a service: https://bugs.launchpad.net/ubuntu/+sour ... ug/1547763
Re: DLNA renderer options
Ok, I'm having a bit more luck with this in /etc/init.d
And then doing
Still doesn't seem to start on boot but: :~#service gmediarender restart seems to get it going ok
Code: Select all
#!/bin/sh
### BEGIN INIT INFO
# Provides: gmediarender
# Required-Start: $remote\_fs $syslog
# Required-Stop: $remote\_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start GMediaRender at boot time
# Description: Start GMediaRender at boot time.
### END INIT INFO
USER=root
HOME=/root
export USER HOME
case "$1" in
start)
echo "Starting GMediaRender"
start-stop-daemon -x /usr/bin/gmediarender -c root:audio -S -- -f dietpi-dlna-render -d
;;
stop)
echo "Stopping GMediaRender"
start-stop-daemon -x /usr/bin/gmediarender -K
;;
\*)
echo "Usage: /etc/init.d/gmediarender {start\|stop}"
exit 1
;;
esac
exit 0
Code: Select all
update-rc.d gmediarender defaults
Re: DLNA renderer options
Probably halting as syslog isnt installed by default, you'll need Full Logging Mode for that, or:rothchild wrote:Ok, I'm having a bit more luck with this in /etc/init.d
Still doesn't seem to start on boot but: :~#service gmediarender restart seems to get it going okCode: Select all
# Required-Start: $remote\_fs $syslog # Required-Stop: $remote\_fs $syslog
Code: Select all
apt-get install rsyslog -y
Code: Select all
$remote_fs
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: DLNA renderer options
Thanks Fourdee,
To keep things 'dieted' can I do without the syslog? i.e. can I just remove reference to it from this boot script? I have no real need for any logs
To keep things 'dieted' can I do without the syslog? i.e. can I just remove reference to it from this boot script? I have no real need for any logs
Re: DLNA renderer options
I've made a change of tack, upmpdcli seems to play nicely with mopidy/mpd.
It's not natively in the repos but is easy to add using the developers rasbian jessie repo: https://www.lesbonscomptes.com/upmpdcli/downloads.html
As explained in the mopidy docs it works out of the box: https://docs.mopidy.com/en/latest/clients/upnp/
What's nice about this one is I'm streaming from bubble upnp on my phone and the mopidy interface (spotmop in this instance) is correctly reporting the 'currently playing' track (which didn't happen with gmediarender)
It's not natively in the repos but is easy to add using the developers rasbian jessie repo: https://www.lesbonscomptes.com/upmpdcli/downloads.html
As explained in the mopidy docs it works out of the box: https://docs.mopidy.com/en/latest/clients/upnp/
What's nice about this one is I'm streaming from bubble upnp on my phone and the mopidy interface (spotmop in this instance) is correctly reporting the 'currently playing' track (which didn't happen with gmediarender)