DLNA renderer options

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
wizardofoz
Posts: 13
Joined: Sat Dec 17, 2016 6:34 am

DLNA renderer options

Post by wizardofoz »

Is anyone aware of any DLNA renderer for DietPi?
rothchild
Posts: 85
Joined: Sat Jun 27, 2015 10:39 am

Re: DLNA renderer options

Post by rothchild »

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
rothchild
Posts: 85
Joined: Sat Jun 27, 2015 10:39 am

Re: DLNA renderer options

Post by rothchild »

Ok, I'm having a bit more luck with this in /etc/init.d

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
And then doing

Code: Select all

update-rc.d gmediarender defaults
Still doesn't seem to start on boot but: :~#service gmediarender restart seems to get it going ok
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: DLNA renderer options

Post by Fourdee »

rothchild wrote:Ok, I'm having a bit more luck with this in /etc/init.d

Code: Select all

                                                                    
# Required-Start: $remote\_fs $syslog
# Required-Stop: $remote\_fs $syslog
Still doesn't seem to start on boot but: :~#service gmediarender restart seems to get it going ok
Probably halting as syslog isnt installed by default, you'll need Full Logging Mode for that, or:

Code: Select all

apt-get install rsyslog -y
And $remote\_fs should be

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.
rothchild
Posts: 85
Joined: Sat Jun 27, 2015 10:39 am

Re: DLNA renderer options

Post by rothchild »

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
rothchild
Posts: 85
Joined: Sat Jun 27, 2015 10:39 am

Re: DLNA renderer options

Post by rothchild »

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)
Post Reply