Server Page Rotation?

All about the iOS / Android / Web / Other apps that can be used with kJams! Questions, bug reports, feature requests!
Post Reply
Bmurray
Posts: 17
Joined: Mon Dec 24, 2007 10:22 am

Server Page Rotation?

Post by Bmurray »

Is it possible to have a Server page that shows the current rotation?

DeusExMachina
Posts: 1293
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Server Page Rotation?

Post by DeusExMachina »

Technically, yes, since the hook is there for wtkJams.
Sigh, I see more work coming my way!

dave
Site Admin
Posts: 6684
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Server Page Rotation?

Post by dave »

feel free to write that up :D

the url paths are "rotation" and "kj_rotation", the return raw xml, which would have to be parsed into a page

DeusExMachina
Posts: 1293
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Server Page Rotation?

Post by DeusExMachina »

Well, I suspect I should use one or the other. Having both would just be confusing. I am guessing that the difference is that kJ_R is one round through the rotation, whereas Rotation is a straight list all the way to the end of the show, correct?

dave
Site Admin
Posts: 6684
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Server Page Rotation?

Post by dave »


DeusExMachina
Posts: 1293
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Server Page Rotation?

Post by DeusExMachina »

I was talking about the retuned value for the variable. But I guess you are just returning the internal representation.

dave
Site Admin
Posts: 6684
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Server Page Rotation?

Post by dave »

indeed

User avatar
djunod
Posts: 146
Joined: Sun Oct 30, 2011 7:38 am
Contact:

Re: Server Page Rotation?

Post by djunod »

CWS_Path_KJ_ROTATION shows a list of all the singers in the rotation. I use this to get a list of the singers and their position in the rotation.

CWS_Path_ROTATION shows a list of all the songs that are currently in the rotation.

dave
Site Admin
Posts: 6684
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Server Page Rotation?

Post by dave »

8)

mehak
Posts: 1
Joined: Sun Jan 11, 2015 11:12 pm

Re: Server Page Rotation?

Post by mehak »

pretty please start the beta program !!!! :D :D :D
mehak

DeusExMachina
Posts: 1293
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Server Page Rotation?

Post by DeusExMachina »

Wait. Old post, but I would like to point out that the two responses from the two Daves are contradictory. Dave C., your link implies that URL_rotation would return the list of singers for the entire rotation, to the end of the night, just as it is in kJams, and URL_kJ_Rotation would return the list of singers for one pass through the rotation.
But Dave2 is stating that they the Rotation URL would return a list of SONGS in the current rotation, and the kJ_Rotation URL would return a list of SINGERS in the current rotation.
So either something is amiss, or people are talking at cross purposes.

dave
Site Admin
Posts: 6684
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Server Page Rotation?

Post by dave »

I think what OtherDave meant was that ROTATION returns a list of SONGS_WITH_SINGERS, in order starting with who's on stage now, 'till the end of the night, you may get the same singer more than once, each time with a different song). and that KJ_ROTATION also returns a list of SONGS_WITH_SINGERS, in order starting from the top of the rotation, each singer listed only once, and that singer may or may not have a song.

DeusExMachina
Posts: 1293
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Server Page Rotation?

Post by DeusExMachina »

Okay, well, the thing that was holding it up was that I will have to learn how to use SPRY data tools (since that appears to be how the original web code was implemented) to write the new web code, which is why I had it back-burnered!

dave
Site Admin
Posts: 6684
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Server Page Rotation?

Post by dave »

mmm, yeah. or you could re-write it from scratch using your own tools ;-)
note that python has built in "plist" parsing code

Post Reply