Page 1 of 1

Name of the player on the UI screen

PostPosted: 06 Feb 2017, 13:30
by Stephane
Hello,

Would it be possible to display the name of the player on the UI screen? I have two different players and it is not very easy to see which one I control from the Remote Control app or in Firefox.
Another way would be to change the overall color of the UI (red, green, pink, etc...)

Thank you.

PS: forgive me if it has been asked before but I am new to Rune and I did not found any relevant thread.

Re: Name of the player on the UI screen

PostPosted: 06 Feb 2017, 17:51
by hondagx35
Hi Stephane,

fast and easy way:
Modify /srv/http/assets/img/logo.png on your players.

Frank

Re: Name of the player on the UI screen

PostPosted: 06 Feb 2017, 18:23
by Stephane
Hi,
If it could be build dynamically it would be great !
But I will do this. Thanks.

Re: Name of the player on the UI screen

PostPosted: 07 Feb 2017, 10:04
by Stephane
Hello Frank,

I changed the logo as you said but it's a little pain to do it so I found another way:
Instead of MENU at the top right I put the name of the player and MENU: «Salon MENU» and «Garage MENU»
It's at line 73 of /srv/http/app/templates/header.php
I guess it would be easy to put a variable instead and have it set correctly by the UI.

Re: Name of the player on the UI screen

PostPosted: 07 Feb 2017, 22:23
by hondagx35
Hi Stephane,

Add this
Code: Select all
$template->hostname = $redis->get('hostname');

to the end of /srv/http/app/playback_ctl.php

Code: Select all
        <a id="menu-settings" class="dropdown-toggle" role="button" data-toggle="dropdown" data-target="#" href="#"><?=$this->hostname ?> MENU <i class="fa fa-bars dx"></i></a>

/srv/http/app/templates/header.php

Frank

Re: Name of the player on the UI screen

PostPosted: 08 Feb 2017, 10:06
by Stephane
Thank you very much Frank, this is exactly what I wanted. I just deleted the MENU string as it is quite useless.
It looks fine in both the Andoid app and in a web browser.