RadioDJ - Free Radio Automation Software Forum

RadioDJ v1.7+ => General Talking => Topic started by: Aeolus on May 06, 2016, 01:49:07 PM

Title: Webinterface for Radiodj database
Post by: Aeolus on May 06, 2016, 01:49:07 PM
Hey Guys,

I'm currently working on a webinterface that talks directly with the mysql database of Radiodj. I'm doing this because it makes my life a lot easier maintaining the songsdatabase. At this point it can only show a list of songs in the database, edit the artist/title/album/subcategory, delete songs and disable songs. New functionality can (and will) be added in the future. My main question is, are other people interested in this? Maybe people who want to help test it or whatever? If there's a lot of interest for it, it can be released for download. Let me know your thoughts! See the attached screenshots for an impression to what it looks like.


[attachment deleted by admin]
Title: Re: Webinterface for Radiodj database
Post by: DJ Garybaldy on May 06, 2016, 01:56:08 PM
Looks great.... Always good to see people having a stab at various web interfaces for RadioDJ.  :cool:
Title: Re: Webinterface for Radiodj database
Post by: plauri on May 07, 2016, 03:53:15 AM
I would be very interested if you could add the intro's and the lenght's songs. I will appreciate if all this could be easily printed
Title: Re: Webinterface for Radiodj database
Post by: Aeolus on May 07, 2016, 09:09:16 AM
Well, that duration one was easy... but for the intro one i have to figure out how to grab it from the database and put it on the page.

In the mean time: if there are php programmers here who know how to grab &sta=0.0422902494331066&int=20.6312556689342&xta=229.122630385488&end=232.304784580499&fin=0&fou=3.18215419501135 from the database, and just grab the value of int=20.6312556689342, please let me know. In the mean time i will be searching for it myself :)

[attachment deleted by admin]
Title: Re: Webinterface for Radiodj database
Post by: Valdis on May 10, 2016, 02:35:22 PM
Quote from: Aeolus on May 07, 2016, 09:09:16 AM
Well, that duration one was easy... but for the intro one i have to figure out how to grab it from the database and put it on the page.

In the mean time: if there are php programmers here who know how to grab &sta=0.0422902494331066&int=20.6312556689342&xta=229.122630385488&end=232.304784580499&fin=0&fou=3.18215419501135 from the database, and just grab the value of int=20.6312556689342, please let me know. In the mean time i will be searching for it myself :)

That string can be parsed to get array of parameters using parse_str function (http://php.net/parse_str). Actual intro duration should be calculated by subtracting sta (start cue) from int (intro cue).
Representation in mm:ss may be achieved using gmdate function.

<?php
$cue_points_string 
"&sta=0.0422902494331066&int=20.6312556689342&xta=229.122630385488&end=232.304784580499&fin=0&fou=3.18215419501135";
$cue_points_arr = array();
parse_str($cue_points_string$cue_points_arr);

$actual_intro = isset($cue_points_arr['int']) && isset($cue_points_arr['sta']) ? $cue_points_arr['int']-$cue_points_arr['sta'] : 0;

$intro_display_string gmdate('i:s'round($actual_intro));
echo 
$intro_display_string;
?>

Title: Re: Webinterface for Radiodj database
Post by: marcbeinder on May 12, 2016, 01:45:31 AM
I'm interested in this! I'll help test it if I can.
Title: Re: Webinterface for Radiodj database
Post by: Aeolus on May 12, 2016, 07:59:18 AM
@Valdis: thanks! i'll try this soon!

@marcbeinder: cool, i'll get in contact with you soon.
Title: Re: Webinterface for Radiodj database
Post by: ThP on May 12, 2016, 03:35:39 PM
I'm interested.

Can you provide a link for download (alpha, beta ... version).

You can send private message.

Thanks.
Title: Re: Webinterface for Radiodj database
Post by: igherardia on May 13, 2016, 06:37:31 PM
 :ok: if i can help in the code!!!

ignacio.gherardi@gmail.com
Title: Re: Webinterface for Radiodj database
Post by: marcbeinder on May 13, 2016, 08:51:00 PM
When you're ready just email me! mbeinder@ruolradio.com
Title: Re: Webinterface for Radiodj database
Post by: Aeolus on May 14, 2016, 11:39:19 AM
Alright, in the couple of days i have some days off, so i'll be working on it a bit more, and hopefully after the weekend i can put something up on github or something.
Title: Re: Webinterface for Radiodj database
Post by: Echers on May 14, 2016, 01:30:18 PM
I would love to become a tester of this!
This would help maintaining and editing my library directly from my own PC, instead of having to go to the actual RDJ machine to edit this.

If I may, please include me as a tester! :)
Title: Re: Webinterface for Radiodj database
Post by: marcbeinder on May 24, 2016, 06:07:21 AM
What's the latest development on this?
Title: Re: Webinterface for Radiodj database
Post by: GSE on May 24, 2016, 05:29:19 PM
Adding intros would be total bliss for me. Having to constantly listen to tracks, write down a list of intros and then remote into my server and take blind shots via a slow connection is a killer personally for me.

Also adding a filename for the album art would be pretty nice too.. I store all of my album art in a public directory on the same server so that RDJ can push out file names and allow my website to do the joining part.
Title: Re: Webinterface for Radiodj database
Post by: Aeolus on June 06, 2016, 02:25:37 PM
Hey guys,

It's been a while, i'm sorry for that. Some other important stuff got between it. I put it online on github: https://github.com/RaymondTebru/rda

1 important thing: the songlist does not have pagination. If you have a very large database of songs, you can get into trouble using this. All usage is on your own risk.
Title: Re: Webinterface for Radiodj database
Post by: marcbeinder on June 06, 2016, 02:34:09 PM
Thank you! Can't wait to try this out!