Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Official moOde 7.0.1 support thread
First of all: Congrats, Tim, for the new version! And best to all for 2021!

I do have a problem though with 7.01 on my RPI4, though. It concerns the RADIO section. I made a backup "Stations.zip" for my library of internet radio stations with the previous Moode version. After installing 7.01 in the usual way, I tried to import (restore) my radio database through the UI (Import...). It didn't work and got a "schema mismatch" error. I should mention that I haven't yet added any other music sources to Moode, as they are too big.

So I searched the forum and found this:

Quote:hjheins Wrote:
There are 2 steps to adding a radio station with logo to Moode.
To just add a radio station (if you do not care about a logo), you can stop after step 1.

1) Adding the station url
There are 2 ways to add a new station.

The first is going to the Moode player url, choose "browse", click on "RADIO"
click on the microphone icon and select "create new station".
You will now get an overlay window where you can add the name and the url for you station.
Press "save" and your new station is there.


The second way of adding a station is a bit more involved. Here you have to make a .pls file that includes all the information regarding your station.
Once done, you can upload this per SSH to the Mode player. The location where you have to upload is: /var/lib/mpd/music/RADIO
Please note that you need root access to do so.
Once done, go to the Moode player url, go to "browse", click on the device icon in front of "RADIO" and select "Update this folder"

Now test your new radio station in Moode.
If you have music, it works, if not, check your url, and when you used the second route, check your .pls file.

2) Adding a logo

This bit is a bit more involved.
first, download the logo you want to use. If needed, convert it and save it as .png file. Name this file the same as your radio station.
Upload your .png file to your Moode player with SSH. The location where you upload is: /var/www/images/radio-logos
Please note that you need root access to do so.

You now need to know the real url that your radio station uses.
To find this, go to the Moode url, and start playback of your radio station. On the playback page, select "audio info" from teh Moode menu (right top).
Copy the address behind "Source:" and save this for later use.

Now, add the data needed to the sqlite database that manages this.
Open the sql database (as root):

Code:
sqlite3 /var/local/www/db/moode-sqlite3.db

first add header info to the view, and list the existing entries to know what is in there and what should be the next id you can use

Code:
sqlite> .headers on

sqlite> select * from cfg_radio;

Now you know the last id, Station url, and you have the image of the station in place. You can now add a line to the sqlite database with this information.
This line will look like this:
Code:
insert into cfg_radio VALUES(id,'station url','station name','if exists:permalink otherwise:empty','local');

now, reboot your Moode.
You should now have your radio station available with logo.


Sadly, this doesn't work in 7.01. So I copied my previous stations (from a complete backup of my previous Moode installation) by hand to:

Code:
/var/lib/mpd/music/RADIO

I did the same with the logos to their destination:

Code:
/var/local/www/imagesw/radio-logos

That all worked OK. But none of my 'own' stations are displayed on the Radio page in the UI. I tried to add one of my stations by hand, but I got a 'duplicate' error. So Moode seems to be aware of the stations but won't display them in the UI. I tried updating, both in the UI and through SSH (mpc) with zero results. Because there are quite a few of stations, a bulk approach is preferable; besides, the manual entry fails anyway.
Manually adding playlists by copying them to the appropriate directories works fine, though.

My question, therefore, is what did I do wrong and how to fix this. Also, why doesn't hjheins's  procedure work anymore? Would deleting the files

Code:
cfg_radio.csv
cfg_radio.schema

help, so Moode would correct the situation, by generating the then missing files correctly?

BTW Off topic: the Topping E30 USB DAC works excellent with RPI4/Moode, including native DSD. 

Any help will be greatly appreciated!

Cheers, marco
Reply


Messages In This Thread
RE: Official moOde 7.0.1 support thread - by RPI4 Rambler - 01-08-2021, 01:31 PM
RE: Official moOde 7.0.1 support thread - by efung - 02-04-2021, 12:06 AM
RE: Upcoming moOde 7.1.0 release - by JonPike - 02-06-2021, 10:05 PM

Forum Jump: