forked from moode-player/moode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.txt
executable file
·285 lines (246 loc) · 7.94 KB
/
setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
########################################################
#
# Setup Guide for moOde audio player
#
# These instructions are designed for initial configuration
# of moOde audio player. Additional configuration help is
# provided within the player via the (i) information buttons.
#
# Updated: 2020-02-12
#
# (C) Tim Curtis 2017 http://moodeaudio.org
#
#########################################################
////////////////////////////////////////////////////////
//
// GENERAL INFORMATION
//
////////////////////////////////////////////////////////
NOTE: Use http://moode, moode.local or IP address, whichever works on your network.
Typically Android OS will only work with IP address.
- SSH login user: pi, pwd: moodeaudio
- Preface commands requiring root permission with sudo
- Access Point (AP) mode:
(a) IP address: 172.24.1.1
(b) SSID: Moode
(c) Password: moodeaudio
(d) Channel: 6
- AP mode starts automatically when:
(a) WiFi SSID is set to 'None' in Network config and there is no Ethernet connection
(b) WiFi SSID is defined but no IP address was assigned by DHCP. This typically
occurs when connection to the SSID fails.
- Default Samba shares are NAS, Playlists, Radio, and SDCard
- Each USB disk will also have a Samba share named after its Disk Label
WIFI ADAPTERS THAT ARE REPORTED TO SUPPORT AP MODE
- Raspberry Pi 3, 4 and Zero W integrated WiFi adapters
- Comfast CF-912AC dual-band WiFi adapter
- For all other adapters consult the manufacturer
IN-PLACE SOFTWARE UPDATES
- Updates to moOde software are made available periodically and can be downloaded
and installed from by clicking "CHECK for software update" in System Config
- Click VIEW to see a list of what is contained in the update package
- Click INSTALL to download and install the update package
IMAGE WRITING UTILITIES
https://www.raspberrypi.org/documentation/installation/installing-images/
////////////////////////////////////////////////////////
//
// PLAYER SETUP AND CONFIGURATON
//
////////////////////////////////////////////////////////
1. INITIAL SETUP
a) Insert boot SD card or USB drive
b) Connect USB or I2S audio device
c) Connect USB storage devices
- Ethernet mode
a) Insert ethernet cable
b) Power on
c) http://moode
- Access Point (AP) mode
a) Insert WiFi adapter that supports AP mode
b) Power on
c) Join network SSID=Moode, pwd=moodeaudio
d) http://moode.local or http://172.24.1.1
2. AUDIO DEVICE SETUP
- USB DEVICE
a) Menu, Configure, Audio
b) Select "None" for I2S audio device then SET
c) Restart
d) Menu, Configure, Audio
e) EDIT MPD config
f) Leave Volume control set to "Software"
g) Set Device type to "USB audio device"
h) SAVE
i) Restart
- I2S DEVICE
a) Menu, Configure, Audio
b) Select an I2S audio device then SET
c) Restart
d) Menu, Configure, Audio
e) EDIT MPD config
f) Leave Volume control set to "Software"
g) Verify Audio device is set to "I2S audio device"
h) SAVE
3. TIME ZONE
a) Menu, Configure, System
b) Select appropriate timezone then SET
4. ADD SOURCE(S) CONTAINING MUSIC FILES
- USB STORAGE DEVICES
a) Insert USB storage device
b) Menu, Configure, Library
c) UPDATE or RE-GEN MPD database
d) Optionally select Yes to automatically update MPD database on USB insert/remove
e) Wait for completion (no spinner)
- SDCARD STORAGE DEVICES
a) Menu, Configure, Library
b) UPDATE or RE-GEN MPD database
c) Wait for completion (no spinner)
- NAS DEVICE
a) Menu, Configure, Library
b) CREATE Music source (MPD database update initiates automatically after SAVE)
c) Wait for completion (no spinner)
- ALBUM COVER THUMBNAILS
a) UPDATE or RE-GEN the album cover thumbnail cache.
b) VIEW cache status periodically and wait until Done.
5. VERIFY AUDIO PLAYBACK
- Ethernet mode
a) http://moode
b) Play one of the radio stations
- AP mode
a) http://moode.local
b) Browse, SDCARD, Stereo Test
c) Menu for "LR Channel And Phase" track
d) Play
At this point a FULLY OPERATIONAL PLAYER exists.
////////////////////////////////////////////////////////
//
// CUSTOM CONFIGS
//
// Customize the player by using any of the following
// procedures.
//
////////////////////////////////////////////////////////
1. CONFIGURE FOR WIFI CONNECTION
- Ethernet mode
a) Leave eth cable connected
b) Insert wifi adapter (while Pi running)
c) http://moode
d) Menu, Configure, Network
e) Configure a wifi connection
f) Menu, Power, Shutdown
g) Unplug eth cable
h) Power on
- Access Point (AP) mode
a) Join network SSID=Moode, pwd=moodeaudio
b) http://moode.local
c) Menu, Configure, Network
d) Configure a wifi connection
e) Menu, Power, Restart
2. CHANGE HOST AND SERVICE NAMES
a) Menu, Configure, System (and Audio)
b) SET after entering appropriate value in each name field
c) Restart is required if changing Host name
3. AUTO-CONFIGURE AT BOOT
NOTE: This works only on a fresh image that has never been booted!
NOTE: To start AP mode at boot set wlanssid to blank e.g., wlanssid=
a) Change values in the file below
b) Paste contents into /boot/moodecfg.txt
c) sudo reboot
d) Join AP SSID if using AP mode, then http://hostname.local or http://172.24.1.1
##########################################
# Copy this file to /boot/moodecfg.txt
# It will be processed at startup and the
# system will automaticly Restart.
#
# All param=value pairs must be present.
# Set wlanssid= blank to start AP mode.
# Example: wlanssid=
##########################################
[names]
hostname=moode
browsertitle=moOde Player
airplayname=Moode Airplay
spotifyname=Moode Spotify
bluetoothname=Moode Bluetooth
squeezelitename=Moode
upnpname=Moode UPNP
dlnaname=Moode DLNA
mpdzeroconf=Moode MPD
[services]
airplaysvc=0
upnpsvc=0
dlnasvc=0
[network]
wlanssid=MySSID
wlansec=wpa
wlanpwd=MyPassword
wlancountry=US
apdssid=Moode
apdchan=6
apdpwd=moodeaudio
[other]
timezone=America/Detroit
themename=Default
accentcolor=Emerald
////////////////////////////////////////////////////////
//
// AFTER PLAYER SETUP
//
// Follow these instructions for making certain types
// of changes
//
////////////////////////////////////////////////////////
1. Switching from USB to I2S audio device
a) Unplug USB audio device
b) Menu, Power, Shutdown
c) Install I2S audio device
d) Power on
e) Menu, Configure, Audio
f) Select appropriate I2S audio device then SET
g) Menu, Power, Restart
h) Menu, Configure, Audio, EDIT MPD config
i) Verify Device type is set to "I2S audio device"
j) SAVE
2. Switching from I2S to USB audio device
a) Menu, Configure, Audio
b) Select "None" for I2S audio device then SET
c) Menu, Power, Shutdown
d) Optionally unplug I2S audio device
e) Plug in USB audio device
f) Power on
g) Menu, Configure, Audio, EDIT MPD config
h) Set Device type to "USB audio device"
i) SAVE
j) Menu, Power, Restart
3. Switching from WiFi back to Ethernet
a) Plug in Ethernet cable
b) Menu, Configure, Network
c) RESET network configuration to defaults
d) Menu, Power, Shutdown
e) Remove WiFi adapter
f) Power on
////////////////////////////////////////////////////////
//
// Web API
//
// Below are a list of commands that can be submitted to
// moOde via http.
//
////////////////////////////////////////////////////////
1. Base URL is http://moode/command/?cmd=
2. MPD commands that are listed in MPC help
3. Volume commands that are listed in /var/www/vol.sh --help
4. Library update via the command libupd_submit
Examples:
// MPD
http://moode/command/?cmd=stop
http://moode/command/?cmd=play
// Volume
http://moode/command/?cmd=vol.sh up 2
http://moode/command/?cmd=vol.sh mute
// Library update
http://moode/command/?cmd=libupd_submit
////////////////////////////////////////////////////////
//
// END
//
////////////////////////////////////////////////////////