Moode Forum
radio stations export/import? - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: radio stations export/import? (/showthread.php?tid=6218)



radio stations export/import? - Falco - 02-10-2024

hi all,

I guess I'm overlooking things, but how can I export and import radio stations (incl cover art etc)?

I have two moOde players and I have added quite a few on the one player, which I would like to export to the other player. How do I accomplish that?

Can I use the backup function to backup radio stations from player 1 and use the restore function to import the radio stations in player 2?

I hope I do not have to add them manually in player 2.....


RE: radio stations export/import? - pepus - 02-10-2024

(02-10-2024, 10:33 AM)Falco Wrote: hi all,

I guess I'm overlooking things, but how can I export and import radio stations (incl cover art etc)?

I have two moOde players and I have added quite a few on the one player, which I would like to export to the other player. How do I accomplish that?

Can I use the backup function to backup radio stations from player 1 and use the restore function to import the radio stations in player 2?

I hope I do not have to add them manually in player 2.....

Yes you can do that, only when restore a copy, select only "other station" or possibly "Playlist".  It should work.


RE: radio stations export/import? - fdealexa - 02-11-2024

(02-10-2024, 10:33 AM)Falco Wrote: hi all,

I guess I'm overlooking things, but how can I export and import radio stations (incl cover art etc)?

I have two moOde players and I have added quite a few on the one player, which I would like to export to the other player. How do I accomplish that?

Can I use the backup function to backup radio stations from player 1 and use the restore function to import the radio stations in player 2?

I hope I do not have to add them manually in player 2.....

Hi Falco,
I normaly use the station_manager util: the following is the Thread
Best regards 
Francesco


RE: radio stations export/import? - Falco - 02-11-2024

(02-11-2024, 01:45 AM)fdealexa Wrote:
(02-10-2024, 10:33 AM)Falco Wrote: hi all,

I guess I'm overlooking things, but how can I export and import radio stations (incl cover art etc)?

I have two moOde players and I have added quite a few on the one player, which I would like to export to the other player. How do I accomplish that?

Can I use the backup function to backup radio stations from player 1 and use the restore function to import the radio stations in player 2?

I hope I do not have to add them manually in player 2.....

Hi Falco,
I normaly use the station_manager util: the following is the Thread
Best regards 
Francesco

Hi Francesco, that sounds like the function I need, however I do not see the export button in the Radio Manager? 
Do I first need to update according to the instructions in the thread you linked?


RE: radio stations export/import? - fdealexa - 02-11-2024

(02-11-2024, 08:45 AM)Falco Wrote:
(02-11-2024, 01:45 AM)fdealexa Wrote:
(02-10-2024, 10:33 AM)Falco Wrote: hi all,

I guess I'm overlooking things, but how can I export and import radio stations (incl cover art etc)?

I have two moOde players and I have added quite a few on the one player, which I would like to export to the other player. How do I accomplish that?

Can I use the backup function to backup radio stations from player 1 and use the restore function to import the radio stations in player 2?

I hope I do not have to add them manually in player 2.....

Hi Falco,
I normaly use the station_manager util: the following is the Thread
Best regards 
Francesco

Hi Francesco, that sounds like the function I need, however I do not see the export button in the Radio Manager? 
Do I first need to update according to the instructions in the thread you linked?

Hi Falco,
the utility is present in the moOde release: it is a superb Python program contributed by @bitlab and it is located in the /var/www/util directory.
May I suggest you to follow the procedure that I use to export, import and clear the radio stations in the moOde environment?

Assuming that "pi" is the default user:


Code:
cd /home/pi
mkdir StationManager
cd StationManager
sudo cp /var/www/util/station_manager.py ./
sudo python3 station_manager.py --scope other --export Falco_2024-02-11.zip

on the second system you have to: 

Code:
cd /home/pi
mkdir StationManager
cd StationManager
sudo cp /var/www/util/station_manager.py ./

Copy the .zip (please note that the name of the file can be as you prefer) to the second system (in the StationManager directory) (I normaly use winscp) and then import the stations:
Code:
cd /home/pi/StationManager
sudo python3 station_manager.py --scope other --import Falco_2024-02-11.zip

I suggest to reboot the system before listen to the new imported stations.

Please note that if you want to clear (for example on the second system, before to import the stations) the previous situaation,  you can use the option of the station_manager program (be carefull that clear will definitivelly clear all the created stations: you wiil loose all images and all informations):
Code:
cd /home/pi/StationManager
sudo python3 station_manager.py --scope other --clear
 the help is available in:
Code:
cd /home/pi/StationManager
python3 station_manager.py --help

Please, do not hesitate to ask any additional questions.
Best regards,
Francesco
I will appreciated if you privately send the .zip file to me, thanks


RE: radio stations export/import? - Tim Curtis - 02-11-2024

(02-10-2024, 10:33 AM)Falco Wrote: hi all,

I guess I'm overlooking things, but how can I export and import radio stations (incl cover art etc)?

I have two moOde players and I have added quite a few on the one player, which I would like to export to the other player. How do I accomplish that?

Can I use the backup function to backup radio stations from player 1 and use the restore function to import the radio stations in player 2?

I hope I do not have to add them manually in player 2.....

Menu, Configure, System
Then use the BACKUP and RESTORE functions

On player1 you can either leave all options ON or just leave "Other stations" ON.
On player 2 RESTORE only "Other stations".

If you have modified any of the built in moOde stations then also leave "moOde stations" ON


RE: radio stations export/import? - Falco - 02-13-2024

Thanks @Tim Curtis and @fdealexa !

It seems there are two options to export/import radio stations. 
However, Tim's method sounds much simpler, so what is the benefit of the python script by @bitlab?

And why do I not see the export/import button in the Radio Manager tab as mentioned in the thread shared by Francesco. Is that because I do not have a fresh install of moOde (have done quite a few in place updates)?


RE: radio stations export/import? - the_bertrum - 02-13-2024

(02-13-2024, 02:31 PM)Falco Wrote: Thanks @Tim Curtis and @fdealexa !

It seems there are two options to export/import radio stations. 
However, Tim's method sounds much simpler, so what is the benefit of the python script by @bitlab?

And why do I not see the export/import button in the Radio Manager tab as mentioned in the thread shared by Francesco. Is that because I do not have a fresh install of moOde (have done quite a few in place updates)?

As to which is best?  Try them both and see which you prefer.

The reason you don't see the import/export in the radio manager, is because it is a system backup feature and so resides in "M > Configure > System > Backup/Restore"


RE: radio stations export/import? - fdealexa - 02-14-2024

Hi Falco,
The backup procedure is much simpler, I normally use the Python program because I create list of stations "offline" and then I import them all together.
Thanks to Tim who have better details what Pepus had already suggested.
Best regards,
Francesco
PS : you don't see the button because the instruction referred to an older release.


RE: radio stations export/import? - bitlab - 02-14-2024

Technical both ways are the same; the system backup uses the station_manager underwater.

For simple/restore backups the webgui will do, only for complexer cases the cli provide some additional functionality.