48e973b0ca8f4699ba332b1979895eb0c333fe17
MediaCentre/Kodi.md
... | ... | @@ -2,17 +2,17 @@ |
2 | 2 | title: Kodi |
3 | 3 | --- |
4 | 4 | |
5 | -Player software for Media Centre nodes. |
|
5 | +Player software for Media Centre nodes. |
|
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | 9 | # Hardware |
10 | 10 | |
11 | -* [Xios DS][1] |
|
12 | -* [Archos 80 Cobalt][2] |
|
13 | -* [RaspBMC][3] [OSMC][4] |
|
14 | -* [Tesco Hudl 2][5] |
|
15 | -* [Kindle Fire 7][6] |
|
11 | +* [Xios DS][1] |
|
12 | +* [Archos 80 Cobalt][2] |
|
13 | +* [RaspBMC][3] [OSMC][4] |
|
14 | +* [Tesco Hudl 2][5] |
|
15 | +* [Kindle Fire 7][6] |
|
16 | 16 | |
17 | 17 | |
18 | 18 | |
... | ... | @@ -20,20 +20,20 @@ Player software for Media Centre nodes. |
20 | 20 | |
21 | 21 | ## Remote Config |
22 | 22 | |
23 | -Set in `.kodi/remote.conf`. |
|
23 | +Set in `.kodi/remote.conf`. |
|
24 | 24 | |
25 | -This is a **non-userdata setting** so must be restored after upgrades. |
|
25 | +This is a **non-userdata setting** so must be restored after upgrades. |
|
26 | 26 | |
27 | -[AppleTV][7] remote.conf: |
|
27 | +[AppleTV][7] remote.conf: |
|
28 | 28 | |
29 | 29 | # Apple TV remote |
30 | - factory_code = 0x87ee0001 |
|
30 | + factory_code = 0x87ee0001 |
|
31 | 31 | work_mode = 1 |
32 | 32 | repeat_enable = 1 |
33 | 33 | release_delay = 150 |
34 | 34 | debug_enable = 1 |
35 | 35 | reg_control = 0xfbe40 |
36 | - |
|
36 | + |
|
37 | 37 | key_begin |
38 | 38 | 0x0b 103 ;UP |
39 | 39 | 0x0d 108 ;DOWN |
... | ... | @@ -42,7 +42,7 @@ This is a **non-userdata setting** so must be restored after upgrades. |
42 | 42 | 0x04 28 ;OK |
43 | 43 | 0x02 14 ;MENU |
44 | 44 | key_end |
45 | - |
|
45 | + |
|
46 | 46 | |
47 | 47 | |
48 | 48 | |
... | ... | @@ -52,15 +52,15 @@ This is a **non-userdata setting** so must be restored after upgrades. |
52 | 52 | <advancedsettings> |
53 | 53 | <loglevel>-1</loglevel> |
54 | 54 | </advancedsettings> |
55 | - |
|
55 | + |
|
56 | 56 | |
57 | 57 | |
58 | 58 | |
59 | 59 | ## Buffer Media |
60 | 60 | |
61 | -Kodi does not buffer local media (including `smb://` and `nfs://`) by default. |
|
61 | +Kodi does not buffer local media (including `smb://` and `nfs://`) by default. |
|
62 | 62 | |
63 | -Set [advancedsettings/network/buffermode][9] (v17 Krypton: [advancedsettings/cache/buffermode][10]) to 1 (cache all): |
|
63 | +Set [advancedsettings/network/buffermode][9] (v17 Krypton: [advancedsettings/cache/buffermode][10]) to 1 (cache all): |
|
64 | 64 | |
65 | 65 | |
66 | 66 | |
... | ... | @@ -72,7 +72,7 @@ Set [advancedsettings/network/buffermode][9] (v17 Krypton: [advancedsettings/cac |
72 | 72 | <!-- <cachemembuffersize>52428800</cachemembuffersize> --> |
73 | 73 | </network> |
74 | 74 | </advancedsettings> |
75 | - |
|
75 | + |
|
76 | 76 | |
77 | 77 | |
78 | 78 | |
... | ... | @@ -99,34 +99,34 @@ Set [advancedsettings/network/buffermode][9] (v17 Krypton: [advancedsettings/cac |
99 | 99 | <importresumepoint>true</importresumepoint> |
100 | 100 | </videolibrary> |
101 | 101 | </advancedsettings> |
102 | - |
|
102 | + |
|
103 | 103 | |
104 | 104 | |
105 | 105 | |
106 | 106 | `${MYSQL_IP}` |
107 | -: Hostname or IP address of MySQL server. |
|
107 | +: Hostname or IP address of MySQL server. |
|
108 | 108 | |
109 | 109 | `${USER}` |
110 | -: MySQL username |
|
110 | +: MySQL username |
|
111 | 111 | |
112 | 112 | `${PASSWORD}` |
113 | -: MySQL password |
|
113 | +: MySQL password |
|
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | 117 | ### Server permissions |
118 | 118 | |
119 | -Give user permission to use and create new Kodi databases. |
|
119 | +Give user permission to use and create new Kodi databases. |
|
120 | 120 | |
121 | 121 | grant all privileges on `MyMusic%`.* to ${USER}; |
122 | 122 | grant all privileges on `MyVideos%`.* to ${USER}; |
123 | - |
|
123 | + |
|
124 | 124 | |
125 | 125 | |
126 | 126 | |
127 | 127 | ## Services |
128 | 128 | |
129 | -Enables Airplay, [UPnP][14], web interface (no username or password) |
|
129 | +Enables Airplay, [UPnP][14], web interface (no username or password) |
|
130 | 130 | |
131 | 131 | |
132 | 132 | <settings> |
... | ... | @@ -155,51 +155,63 @@ Enables Airplay, [UPnP][14], web interface (no username or password) |
155 | 155 | <zeroconf default="true">true</zeroconf> |
156 | 156 | </services> |
157 | 157 | </settings> |
158 | - |
|
158 | + |
|
159 | 159 | |
160 | 160 | |
161 | 161 | |
162 | 162 | `${LOCATION}` |
163 | -: the name of the room the player is in. |
|
163 | +: the name of the room the player is in. |
|
164 | 164 | |
165 | 165 | `${WEB_INTERFACE}` |
166 | -: `webinterface.chorus` if it is installed, otherwise `webinterface.default` |
|
166 | +: `webinterface.chorus` if it is installed, otherwise `webinterface.default` |
|
167 | 167 | |
168 | 168 | |
169 | 169 | |
170 | 170 | ## Multi Room Audio |
171 | 171 | |
172 | 172 | Add-on |
173 | -: <http://kodi.wiki/view/Add-on:XSqueeze> |
|
173 | +: <http://kodi.wiki/view/Add-on:XSqueeze> |
|
174 | 174 | |
175 | 175 | |
176 | 176 | |
177 | 177 | # Troubleshooting |
178 | 178 | |
179 | +## Migrating database paths |
|
180 | + |
|
181 | +``` |
|
182 | +use MyVideos119; |
|
183 | +update path set strPath = REPLACE(strPath, 'smb://MEDIA/', '/auto/'); |
|
184 | +``` |
|
185 | + |
|
179 | 186 | ## Fixing broken databases |
180 | 187 | |
181 | -* Enable loglevel=0 in advancedsettings.xml Check for log messages about upgrade failures |
|
188 | +* Enable loglevel=0 in advancedsettings.xml Check for log messages about upgrade failures |
|
189 | + |
|
182 | 190 | NOTICE: Attempting to update the database MyVideos99 from version 93 to 99 |
183 | 191 | ERROR: SQL: [MyVideos99] Undefined MySQL error: Code (1060) |
184 | 192 | Query: ALTER TABLE movie ADD userrating integer |
185 | - |
|
186 | - |
|
187 | 193 | |
188 | -* Stop media nodes |
|
189 | - rake HOSTS="lounge ballroom bedroom-mark" media_stop |
|
190 | - |
|
191 | 194 | |
192 | -* Login to Hastur mysql |
|
193 | -* Drop old database |
|
194 | - drop database MyVideos99 |
|
195 | - |
|
196 | 195 | |
197 | -* Start master media node |
|
198 | - rake HOSTS="lounge" media_restart |
|
199 | - |
|
196 | +* Stop media nodes |
|
197 | + |
|
198 | + rake HOSTS="lounge ballroom bedroom-mark" media_stop |
|
199 | + |
|
200 | + |
|
201 | +* Login to Hastur mysql |
|
202 | +* Drop old database |
|
203 | + |
|
204 | + drop database MyVideos99 |
|
205 | + |
|
206 | + |
|
207 | +* Start master media node |
|
208 | + |
|
209 | + rake HOSTS="lounge" media_restart |
|
210 | + |
|
211 | + |
|
212 | +* Check logs for successful upgrade |
|
213 | +* Restart other media nodes |
|
200 | 214 | |
201 | -* Check logs for successful upgrade |
|
202 | -* Restart other media nodes |
|
203 | 215 | rake HOSTS="lounge ballroom bedroom-mark" media_restart |
204 | 216 | |
205 | 217 | [1]: XiosDS |
... | ... | @@ -215,4 +227,4 @@ Add-on |
215 | 227 | [11]: Kodi?action=sourceblock&num=2 |
216 | 228 | [12]: Kodi?action=sourceblock&num=3 |
217 | 229 | [14]: UPnP |
218 | - [15]: Kodi?action=sourceblock&num=4 |
|
... | ... | \ No newline at end of file |
0 | + [15]: Kodi?action=sourceblock&num=4 |