schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad
https://www.youtube.com/watch?v=6QbPee2583o
317 stars 77 forks source link

Stations.csv to Stations.json conversion #499

Open ve2cfb opened 2 weeks ago

ve2cfb commented 2 weeks ago

Hello Wolle,

thanks for the many changes with the new 4.3V. Do you ever get to sleep..?

Is there a way in ESP32-MiniWebRadio to convert or import from my Stations.csv to SDCARD Stations.json without doing it manually...? Tried the web interface doing manually one by one (It takes a lot of time). Using a external utility ( Bulk Rename Utility) is feasable but not perfect.

Thanks again for your work. Pierre

schreibfaul1 commented 2 weeks ago

Hi Pierre, the old method was not so good, especially as saving and loading was "strange".

Unfortunately I don't have a conversion tool. The json format is: [["Fav","Cy","Name",URL"],["Fav","Cy","Name",URL"],.....,["Fav","Cy","Name",URL"]] You can use a word processor to replace all tabs with "," and all \n with "],[". Square brackets on the very outside, then you're almost done.

ve2cfb commented 2 weeks ago

Hi Wolle, Its already done by doing something similar to your idea, but i like your idea.

By the way, is the random function for the MP3 files on your list to do...?

Thank again.

steve6375 commented 2 weeks ago

I don't think we want a random function because then it could play the same tune twice or frequently. What is better is to have a shuffle function