Player software for Media Centre nodes.

Hardware

Configuration

Remote Config

Set in .kodi/remote.conf.

This is a non-userdata setting so must be restored after upgrades.

AppleTV remote.conf:

# Apple TV  remote
factory_code	= 0x87ee0001 
work_mode  	= 1
repeat_enable 	= 1
release_delay	= 150
debug_enable 	= 1
reg_control	= 0xfbe40

key_begin
	0x0b 103	;UP
	0x0d 108	;DOWN
	0x08 105	;LEFT
	0x07 106	;RIGHT
	0x04  28	;OK
	0x02  14	;MENU
key_end

Disable Logging

    -1

$[Get Code]8

Buffer Media

Kodi does not buffer local media (including smb:// and nfs://) by default.

Set advancedsettings/network/buffermode (v17 Krypton: advancedsettings/cache/buffermode) to 1 (cache all):

      1     5      

$[Get Code]11

Shared Database

      mysql     ${MYSQL_IP}     3306     ${USER}     ${PASSWORD}         mysql     ${MYSQL_IP}     3306     ${USER}     ${PASSWORD}         true     true  

$[Get Code]12

${MYSQL_IP}
Hostname or IP address of [MySQL][13][?][13] server.
${USER}
[MySQL][13][?][13] username
${PASSWORD}
[MySQL][13][?][13] password

Server permissions

Give user permission to use and create new Kodi databases.

grant all privileges on `MyMusic%`.* to ${USER};
grant all privileges on `MyVideos%`.* to ${USER};

Services

Enables Airplay, UPnP, web interface (no username or password)

            true                 true         ${LOCATION}         true         25         true         750         20         9777         10         true         false         true         false         false         true                 80                 ${WEB_INTERFACE}         true    

$[Get Code]15

${LOCATION}
the name of the room the player is in.
${WEB_INTERFACE}
webinterface.chorus if it is installed, otherwise webinterface.default

Multi Room Audio

Add-on
http://kodi.wiki/view/Add-on:XSqueeze

Troubleshooting

Fixing broken databases

  • Enable loglevel=0 in advancedsettings.xml Check for log messages about upgrade failures NOTICE: Attempting to update the database MyVideos99 from version 93 to 99 ERROR: SQL: [MyVideos99] Undefined MySQL error: Code (1060) Query: ALTER TABLE movie ADD userrating integer

  • Stop media nodes rake HOSTS="lounge ballroom bedroom-mark" media_stop

  • Login to Hastur mysql
  • Drop old database drop database MyVideos99

  • Start master media node rake HOSTS="lounge" media_restart

  • Check logs for successful upgrade
  • Restart other media nodes rake HOSTS="lounge ballroom bedroom-mark" media_restart