Posts: 8
Threads: 1
Joined: Dec 2023
Reputation:
0
Hello
I'm setting up Moode on a new PI. I already have the 32-bit version running on an older PI.
Issue:
Moode loads OK in the browser and seems OK. After I set the first config change (I2S card), the UI becomes unresponsive.
Setup:
- moOde 8.3.6 (64-bit)
- Stored on Sandisk 16GB Ultra
- Image prepared with Raspbery imager
- PI 3 B+
- IQ Audio DAC+
- Chrome browser on Mac
I've checked the web for solutions and I've re-imaged the card. I'm a bit stuck.
Damaged card?
Thanks
Posts: 13,426
Threads: 304
Joined: Mar 2018
Reputation:
545
Reboot and post the startup log either via the command moodeutl -l or it can be downloaded from the Logs section of System Config.
Posts: 8
Threads: 1
Joined: Dec 2023
Reputation:
0
Thanks. Something doesn't look right...
20230905 194316 worker: --
20230905 194316 worker: -- Start moOde 8 series
20230905 194316 worker: --
20230905 194316 worker: Successfully daemonized
20230905 194316 worker: Waiting for Linux startup...
20231204 200341 worker: ERROR: Linux startup failed to complete after waiting 180 seconds
20231204 201026 command/index.php: Connection to MPD failed
20231204 201226 command/index.php: Connection to MPD failed
20231209 110555 command/index.php: Connection to MPD failed
20231209 110732 command/index.php: Connection to MPD failed
20231209 112024 command/index.php: Connection to MPD failed
And it wouldn't let me download this until I set some options on the config/settings screen such as hostname and options.
Posts: 13,426
Threads: 304
Joined: Mar 2018
Reputation:
545
Follow the Setup Guide. There's a link to it on the Download page at moodeaudio.org
Posts: 8
Threads: 1
Joined: Dec 2023
Reputation:
0
(12-09-2023, 02:47 PM)Tim Curtis Wrote: Follow the Setup Guide. There's a link to it on the Download page at moodeaudio.org
Thanks Tim
I was following the guide ( https://github.com/moode-player/moode/bl.../setup.txt) and it froze after the first step
Posts: 8
Threads: 1
Joined: Dec 2023
Reputation:
0
I'll re-image and try again. Thanks.
Posts: 13,426
Threads: 304
Joined: Mar 2018
Reputation:
545
No issues on my end with 3B+.
Maybe someone can repro your issue.
Posts: 8
Threads: 1
Joined: Dec 2023
Reputation:
0
OK - working now.
I suspect the most likely issue was that I did NOT enable SSH and setup an SSH user/password.
Thanks Tim
Posts: 8
Threads: 1
Joined: Dec 2023
Reputation:
0
Tim
If it's useful, I've rewritten part of the setup guide to make the initial steps a bit clearer (for me at least).
See setup_v2.txt below - I cannot seem to attach it in the forum.
################################################################################
#
# Setup Guide for moOde audio player
#
# Updated: 2023-12-09
#
# © Tim Curtis 2023 http://moodeaudio.org
#
################################################################################
SETUP STEPS
1. INSTALL MOODE IMAGE ON AN SD CARD
====================================
1.1 DOWNLOAD MOODE IMAGE FOR YOUR PI
Download and save the ISO image to your computer from:
https://moodeaudio.org/#download
1.2 DOWNLOAD THE IMAGER
Download the official Raspberry Pi imager from:
https://www.raspberrypi.org/documentatio...ng-images/
Don't use other imagers.
1.3 INSTALL MOODE OS ONTO THE SD CARD WITH THE IMAGER
- Select the model of your Pi.
- Select the ISO image via the "Use custom" category.
- SSH and userid/password are REQUIRED for correct operation of moOde. If you
don't set these moode will not work correctly.
- Optionally set the host name. If a host name is not set in the Imager then the
default hostname "moode" is used.
- Optionally set your WiFi network SSID and password.
2. ACCESS YOUR MOODE PI
=======================
2.1 INSERT THE SD CARD
2.2 OPTIONALLY - CONNECT USB or I2S AUDIO DEVICE
2.3 OPTIONALLY - CONNECT ANY USB STORAGE DEVICES
2.4 IF USING WIRED NETWORK - INSERT ETHERNET CABLE
2.5 POWER ON
Wait a couple of minutes for moode to boot up.
2.6 ACCESS MOODE VIA A WEB BROWSER
- Access the moOde WebUI using a browser and one of the URL's below.
Square brackets means add your own correct value.
* http//[the host name you chose]
* http://moode
* http://moode.local
* http://[IP address of the pi]
If you did not setup the wifi access details on the SD card, use access point
details below and for more details look below these setup steps:
- IP address 172.24.1.1
- SSID Moode
- Password Refer to the SECURITY section
- Channel 6
3. CONFIGURE MOODE
==================
3.1 Select "m" moOde menu (top right) to set the configuration options.
3.2 AUDIO DEVICE SETUP
IF USING A USB DEVICE:
- Menu, Configure, Audio
- Set Named I2S device and DT overlay to "None" if needed and then Restart
- Menu, Configure, Audio
- Set Output device to to the name of the USB audio device
- If the audio device supports hardware volume set Volume type to
Hardware otherwise set it to Software, Fixed or Null
- Menu, Power, Restart
IF USING AN I2S DEVICE:
- Menu, Configure, Audio
- Set Named I2S device or DT overlay to the correct device or overlay name
- Menu, Power, Restart
- Menu, Configure, Audio
- If the audio device supports hardware volume set Volume type to
Hardware otherwise set it to Software, Fixed or Null
3.3 TIME ZONE
- Menu, Configure, System
- Set the appropriate timezone
4. ADD SOURCE(S) CONTAINING MUSIC FILES
=======================================
FOR USB STORAGE DEVICES:
- Insert USB storage device
- Menu, Update library
- Wait for completion (no spinner)
FOR BOOT SDCARD STORAGE:
- Menu, Update library
- Wait for completion (no spinner)
FOR NAS DEVICE:
- Menu, Configure, Library
- CREATE Music source
- After SAVE, return to Playback or Library
- Menu, Update library
- Wait for completion (no spinner)
FOR MUSIC DATABASE UTILITIES:
- Menu, Configure, Library
- Various utilities will be listed in the Music Library section
5. CHECK AUDIO PLAYBACK
=======================
Ethernet mode
- http://moode, moode.local or IP_ADDRESS
- Play one of the radio stations
AP mode
- http://172.24.1.1 or http://moode.local
- Switch to Library Folder view
- Navigate to the SDCARD/Stereo Test
- Play the "LR Channel And Phase" track
At this point a FULLY OPERATIONAL PLAYER exists.
An explanation of how to operate moOde audio player is contained in Quick help
located on the moOde menu and also at the link below.
https://github.com/moode-player/docs/blo...ckhelp.pdf
################################################################################
#
# MORE DETAILED INFORMATION
#
################################################################################
ACCESS POINT (AP) MODE
AP mode starts automatically when any of the following are true.
- WiFi SSID is set to "None (activates AP mode)" in Network Config, Router
mode is Off and there is no active Ethernet connection.
- WiFi SSID is defined in Network Config but no IP address was assigned after
attempting to connect to the SSID and there is no active Ethernet connection.
- Router mode is On in Network Config and either WiFi SSID is defined but no IP
address was assigned or SSID is set to "None (activates AP mode)". An active
Ethernet connection is required for Router mode to function but it does not
need to be active at the time AP Router mode starts.
FILE SHARING
- SMB File Sharing can be turned on in System Config. SMB (Samba) shares named
NAS, Playlists, and SDCard are automatically created. Each USB disk will also
have a Samba share created that is named after its Disk Label.
- NFS File Sharing can be turned on in System Config. Access and options defaults
are provided but can be manually overridden. Each USB disk will have an NFS
export created whose path is /media/disk_label.
WIFI ADAPTERS THAT ARE REPORTED TO SUPPORT Access Point (AP) MODE
- Raspberry Pi integrated WiFi adapter
- 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 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.
CUSTOM CONFIGURATIONS
Customize the player by using any of the following procedures.
1. CONFIGURE FOR WIFI CONNECTION
- Ethernet mode
a) Leave Ethernet cable connected
b) Insert WiFi adapter (while Pi running)
c) http://moode, moode.local or IP_ADDRESS
d) Menu, Configure, Network
e) Configure a WiFi connection
f) Menu, Power, Shutdown
g) Unplug Ethernet cable
h) Power on
- Access Point (AP) mode
a) Join network SSID = Moode, password = Refer to SECURITY section
b) http://172.24.1.1 or http://moode.local
c) Menu, Configure, Network
d) Configure a WiFi connection
e) Menu, Power, Restart
2. CHANGE HOST AND RENDERER NAMES
a) Menu, Configure, System (and Audio)
b) Click SET after entering an appropriate value in each name field
c) Restart is required if changing Host name
3. AUTO-CONFIGURE AT BOOT
a) Copy the file /boot/moodecfg.ini.default from the Pi to a PC or Mac
b) Rename it to moodecfg.ini
c) Edit the settings as needed
d) Insert an SD Card into a reader attached to the PC or Mac
e) Copy the moodecfg.ini file from the PC or Mac to /boot on the SD Card
f) Eject the SD Card
f) Insert the SD Card into the Pi and power up
g) The Pi will reboot twice to perform the auto-configuration process
AFTER PLAYER SETUP
Follow these instructions for making certain types of changes.
1. Switching from a USB to an I2S audio device
a) Unplug the USB audio device
b) Menu, Power, Shutdown
c) Install the I2S audio device
d) Power on
e) Menu, Configure, Audio
b) Set Named I2S device or DT overlay to the correct device or overlay name
g) Menu, Power, Restart
2. Switching from an I2S to a USB audio device
a) Menu, Configure, Audio
b) Set Named I2S device and DT overlay to "None"
c) Menu, Power, Shutdown
d) Remove the I2S audio device
e) Power on
f) Menu, Configure, Audio
g) Set Output device to to the name of the USB audio device
h) If the audio device supports hardware volume set Volume type to
Hardware otherwise set it to Software, Fixed or Null
i) 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
COMMAND AND REST API
Commands can be submitted to moOde via HTTP or SSH. If an HTTP command returns
data it is in JSON or plain text format following REST guidelines.
1. Base URL is http://moode/command/?cmd=
2. MPD commands that are listed in MPC help
3. /var/www/vol.sh cmd
Volume commands that are listed in /var/www/vol.sh --help
4. libupd-submit.php
Submit a Music Library update
5. coverview.php on|off
Turn the CoverView screen saver on or off
6. get_currentsong
Returns the contents of the file /var/local/www/currentsong.txt encoded as JSON.
Turn on the Metadata file option in Audio Config to generate this file.
7. get_output_format
ALSA output format or 'Not playing' is returned
moOde utility command:
The SSH command "moodeutl" can be used for obtaining status or manipulating
certain parts of moOde. For a list of options type moodeutl --help
HTTP examples:
# Get song info
http://moode/command/?cmd=get_currentsong
{"file":"http:\/\/west-aac-64.streamthejazzgroove.com\/stream",
"artist":"Radio station",
"album":"The Jazz Groove",
"title":"Russell Malone - You Will Know",
"coverurl":"imagesw%2Fradio-logos%2FThe%20Jazz%20Groove.jpg",
"track":"",
"date":"",
"composer":"",
"encoded":"VBR",
"bitrate":"",
"outrate":"Multiroom sender",
"volume":"15",
"mute":"0",
"state":"play"}
# 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.php
SSH examples:
# MPD
mpc stop
mpc play
# Volume
/var/www/vol.sh -up 2
/var/www/vol.sh -mute
# Library update
sudo /var/www/libupd-submit.php
# CoverView on/off
/var/www/util/coverview.php -on
/var/www/util/coverview.php -off
################################################################################
# Post questions regarding this guide to http://moodeaudio.org/forum
################################################################################
|