Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 1 of 3 1 2 3 >
Topic Options
#245077 - 31/12/2004 04:28 Empeg Web Lite - Stylesheet for Hijack's http server
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
I decided to write a cross-browser stylesheet for viewing the playlist information that Mark Lord outputs in an XML file from Hijack. You can find a webpage for the interface here. It does a bit more than just browse playlists, though. It will (once a second, in the background) update the webpage with the currently playing track information, basically serving as another display for the Empeg. There are simple pause, prev and next controls on the front page, too.

Suggestions are welcome. I think that I might actually produce a few versions of this: one to serve as a daily web interface, a party interface (that lets people append songs only), etc. Also, it is possible to split stylesheet information out of the .xsl file, but it might get messier the more interfaces you have.

Enjoy!


Attachments
244384-ewl1.jpg (270 downloads)

_________________________
Mark Cushman

Top
#245078 - 31/12/2004 04:54 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Looks cool... But... Have you not seen charcoalgray99's web interface? It looks like the same type of thing. Were you aiming for something a little more lean and mean, or does yours do something secret that I'm not immediately seeing?
_________________________
- Tony C
my empeg stuff

Top
#245079 - 31/12/2004 12:02 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Just last night i was just thinking it'd be cool to have different skins or versions or skins of the charcoalgrey99 thing and this is perfect! For some reason, the Hijack version seems to run better than the C99 one, so I'd like to check this out. I think a "lite" version was in order. I'm going to DJ a little party tonight w. my empeg, maybe I can beta test it.
_________________________
Brad B.

Top
#245080 - 31/12/2004 12:22 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Cripey! Ain't she a beauty!

Great job, Mark!

Can you also make a clickable remote control that works for "the rest of us"?

the CG99 interface has never worked correctly for me, since I don't use IE.

Cheers

Top
#245081 - 31/12/2004 12:31 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Works great! Easy to install!

One thing I like already is that I can use the "Pause" button to wake up the empeg. Normally, if the empeg is in Standby, the html interface won't wake the player up, so I need to launch empegface or emplode to do this.

If we get a version w. remote, I could then turn Shuffle on and off..
_________________________
Brad B.

Top
#245082 - 31/12/2004 12:39 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: tonyc]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Oh yeah, I've seen it. I even discovered why it did not work with Mozilla a while ago (you can probably dig up the post). I wanted something lean and mean that works with Mozilla, so instead of hacking charcoalgrey's, I just rewrote one from scratch. Another goal was to have everything included in one single xsl file, and no images (hence the lite).

Mine also uses a different method of displaying the currently playing track information. Mine displays the current track using text instead of the png available because text is easier to read. I'm using an XMLHttpRequest object which allows the browser to make http requests in the background. I use this for button presses and commands, too. It's asynchronous, so it won't lock up your browser while executing. GC99's used a lot of MS-specific hacks, and the javascript wasn't so cross-browser.

And I wanted to learn xsl.
_________________________
Mark Cushman

Top
#245083 - 31/12/2004 12:44 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: SE_Sport_Driver]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
Just last night i was just thinking it'd be cool to have different skins or versions or skins of the charcoalgrey99 thing and this is perfect!

It should be easy to skin, you can actually download an .xml file from Hijack, edit the top to reference the .xsl file on your hard drive, and load it into your web browser to make changes. You won't get the track information at the top. The stylesheet is included in a style block, but you could also easily rip it out and load it from a .css file, too. I wanted to keep it all in one file for ease of install. The way I see it could work later is to have multiple xsl files loaded on your empeg (those would be the skins) and you switch between them by using the khttp_style entry in config.ini.
_________________________
Mark Cushman

Top
#245084 - 31/12/2004 12:49 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
Can you also make a clickable remote control that works for "the rest of us"?

I can, sure. I did not do this already because I did not want to include any images with the first version, just one xsl file. I intend to create several different versions of this interface, I'll work up something with a remote in it, too.
_________________________
Mark Cushman

Top
#245085 - 31/12/2004 16:15 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
I assume it'd be easy to toss together a little index page with links to the various versions correct? We could have "lite.xml", "djver.xml", "remotever.xml", etc all in the root folder and select which one we want with the browser instead of a config option?
_________________________
Brad B.

Top
#245086 - 31/12/2004 17:25 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: SE_Sport_Driver]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
I assume it'd be easy to toss together a little index page with links to the various versions correct? We could have "lite.xml", "djver.xml", "remotever.xml", etc all in the root folder and select which one we want with the browser instead of a config option?

Yup, I forgot about the style=xxx.xsl url switch. This could be done easily.
_________________________
Mark Cushman

Top
#245087 - 01/01/2005 14:41 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
Gleep
member

Registered: 09/03/2003
Posts: 121
Loc: Iowa
I downloaded the file default.xsl and my browser downloaded it as default.xml. Once I renamed it back to default.xsl the following link http://192.168.0.243/?FID=101&EXT=.xml works fine except I don't see the currently playing track information. Is this because I am running Version 3alpha8?

Top
#245088 - 01/01/2005 17:07 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: Gleep]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
I had the same problem when i first started it up. Then I noticed I was playing back WMA tracks and only a few of them showed info. Once I jumped out of that album playlist and into the other 99.5% of my music, all info showed up properly.

I'm very eager to see the new stylesheets/skins. I don't so much want to see a graphical replica of the Rio remote, but I'l like access to its features like Shuffle, Tweak Order, etc. I'd also love to see a display of the current running order without having to have the empeg itself showing Now/next.

The current stylesheet worked well last night at my party. Guests enjoyed being able to choose music wirelessly.

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#245089 - 01/01/2005 19:08 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: hybrid8]
Gleep
member

Registered: 09/03/2003
Posts: 121
Loc: Iowa
I have tried other playlists, but it has never displayed what is currently playing?

Top
#245090 - 01/01/2005 19:30 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: Gleep]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
What OS/Browser/Version are you running? Also, do you see any apparent javascript errors (either by using javascript: in the address bar in Mozilla/Netscape or by double clicking on any error icons in IE at the lower left hand corner of the status bar?

I've really only tested this stylesheet on Windoze in IE and Firefox. Other browsers may have quirks that I have not realized yet (why I labeled it ver 0.10).

I am unsure as to why WMA tracks do not work the same, either.. I don't have any WMA tracks but maybe I can make one or two to test on.
_________________________
Mark Cushman

Top
#245091 - 01/01/2005 19:59 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
I'm using Firefox under Mac OS X.

By the way, it was perfect timing releasing this when you did. I came online last night specifically to search for the URL to Charcoalgray's stylesheet and this thread was the first hit in the search. It would have been a PITA had I installed CG's and have had problems with Firefox (I used to use it prior to my last update, but had only ever tried it with IE).

As I said, can't wait to see a good interface for parties.

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#245092 - 01/01/2005 20:00 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: hybrid8]
TigerJimmy
old hand

Registered: 15/02/2002
Posts: 1049
This is great work! Thanks for sharing it. Very nice!

I think it would be cool to be able to type search strings into the interface and have it send the correct remote codes. I could, using Tony's ubiquitous example, just type Rush into a text field and the interface could send 7874 (or whatever). There are definitely remote features that I use a lot with the carcoalgrey99 interface.

I guess all I'm saying is that I like the idea of having remote-only features without necessarily having a copy of the remote in my browser. Using the keyboard for text was just an obvious example that came to mind. Checkboxes for shuffle, random, etc. That kind of thing.

Jim

Top
#245093 - 01/01/2005 20:34 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: Gleep]
RobotCaleb
pooh-bah

Registered: 15/01/2002
Posts: 1866
Loc: Austin
Quote:
I have tried other playlists, but it has never displayed what is currently playing?


make sure you have [output] notify=1 set in your config.ini

Top
#245094 - 01/01/2005 22:44 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: RobotCaleb]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
make sure you have [output] notify=1 set in your config.ini

Good catch! This may be the problem! Now to figure out the WMA stuff.
_________________________
Mark Cushman

Top
#245095 - 02/01/2005 02:09 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: hybrid8]
Gleep
member

Registered: 09/03/2003
Posts: 121
Loc: Iowa
I added the [notify] output=1 and it worked momentarily under FireFox. Then as soon as I changed the playlist it hasn't worked since. Doesn't work under Avant Browser either.

Top
#245096 - 02/01/2005 02:16 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: Gleep]
Gleep
member

Registered: 09/03/2003
Posts: 121
Loc: Iowa
I figured it out. It works now that I have [output] notify=1. What doesn't work is if the currently playing information has "double quotes" around it. 'Single Quotes' seem to be alright. OggVorbis files work too, I don't have any WMA files loaded but maybe the person who was having trouble with them has tags with double quotes or some other character that messed it up.

Thanks!

Top
#245097 - 02/01/2005 03:22 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: Gleep]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Ah, it looks that Hijack is not escaping double quotes when displaying the tag fid:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="/default.xsl"?>
<item stylesheet="/default.xsl" host="192.168.2.68" allow_files="1" allow_commands="1" type="tune" tagfid="16851" fid="16850" length="3022385" year="1997" options="" genre="Pop" title="Schoolchildren Singing "Particle Man"" artist="They Might Be Giants" source="Then: The Earlier Years" comment="" tracknr="72" bitrate="fs192" samplerate="44100" codec="mp3" duration="2:05" offset="1666"/>

Quotes must be represented in XML by &quot; or some other method.

I'll send a PM to mlord and see if he can escape these. I can't use the normal method to parse the output since it is not valid XML.
_________________________
Mark Cushman

Top
#245098 - 02/01/2005 07:26 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Quote:
Schoolchildren Singing "Particle Man"

I need to find out which album this appears on so I can get it.
_________________________
Tony Fabris

Top
#245099 - 02/01/2005 12:20 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: tfabris]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Greetings!

It is in the rest of the embedded tag data - Then: The Early Years track 72 (or disc 2, track 36)...
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#245100 - 02/01/2005 12:55 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
I'm on it.. Hijack v414 will be released shortly.

Cheers

Top
#245101 - 02/01/2005 15:45 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Worked great at the New Years party. Some people were using the "previous" and "next" links to try to browse which made the songs jump around, but I can't really think of a way to get around that other than a brief little introduction before I turn over the keyboard and mouse to them.

An "append" only version would be nice too. Good idea.
_________________________
Brad B.

Top
#245102 - 02/01/2005 16:09 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: SE_Sport_Driver]
mdavey
enthusiast

Registered: 06/03/2003
Posts: 269
Loc: Wellingborough, UK
Quote:
Some people were using the "previous" and "next" links to try to browse which made the songs jump around


How about turning off the navigation toolbar (either through the View->Toolbars menu or with Javascript), or putting the browser in Kiosk mode?
_________________________
Michael
Ex-owner of stolen empeg #030102741

Top
#245103 - 02/01/2005 16:52 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mdavey]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
Quote:
Some people were using the "previous" and "next" links to try to browse which made the songs jump around

How about turning off the navigation toolbar (either through the View->Toolbars menu or with Javascript), or putting the browser in Kiosk mode?

He was talking about the links on the page itself.. there are NextTrack and PrevTrack controls on either side of a pause link that act like the Empeg's front buttons.

The party interface I was talking about would act something like this: Append only, and meant to be run in kiosk mode. When you load the party interface, somehow I would clear the currently running playlist, so everything starts from a blank slate. Then, when someone selects a tune, I could append that information to a list of songs in another frame so that we would have a running playlist. This would allow me to keep track of a running playlist without having to go to the dynamic data to get it. The only problem would be if someone refreshed the frame I use to keep the running playlist. If there was another good way to get a list of currently playing tracks, I could make it more robust, but for now this might do. Maybe we could write a small web service daemon that runs on the Empeg that would read the dynamic data partition, extract the list of currently playing tracks and output it in XML. I do not think anyone has yet done this kind of operation with the current playlist yet, though.
_________________________
Mark Cushman

Top
#245104 - 02/01/2005 17:35 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
Gleep
member

Registered: 09/03/2003
Posts: 121
Loc: Iowa
Having a complete view of the playlist would be really neat.
Having a playlist view where you could remove and/reorder items would be AWESOME!

Top
#245105 - 02/01/2005 18:47 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: Gleep]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
Having a playlist view where you could remove and/reorder items would be AWESOME!

Not likely anytime soon. The player does not support removing items in the playlist, and the only re-ordering of items is inserting or the tweak functions.
_________________________
Mark Cushman

Top
#245106 - 02/01/2005 20:37 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
Gleep
member

Registered: 09/03/2003
Posts: 121
Loc: Iowa
Don't the tweak functions remove things from the playlist?

Top
#245107 - 02/01/2005 20:59 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: Gleep]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
Don't the tweak functions remove things from the playlist?

If you long press the tweak by artist, it will remove ALL artists matching the currently playing track. Probably not the desired effect if you want to just remove one track.
_________________________
Mark Cushman

Top
#245108 - 05/01/2005 04:14 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
kendrick
member

Registered: 09/12/2003
Posts: 150
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource 'http://192.168.0.178/?FID=101&EXT=default.xml'. Line ...

artist=Various

I GET THAT ERROR WHEN I TRY TO RUN THE WEBPAGE default.xml

Top
#245109 - 05/01/2005 04:18 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: kendrick]
kendrick
member

Registered: 09/12/2003
Posts: 150
Nevermind I fixed it, My computer was renaming the .xsl file to .xml.

Top
#245110 - 25/01/2005 23:41 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Just wanted to give a friendly bump.
_________________________
Brad B.

Top
#245111 - 26/01/2005 00:57 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: SE_Sport_Driver]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
Just wanted to give a friendly bump.

Just got a new Linux dev box up and running, so I'll be working on this in the nearer future, but I'm currently adding support for 480x320 resolution to Palantir (for Tungsten T3 and T5 owners, plus Tapwave Zodiac and maybe some of the Sony devices). It's coming, though.
_________________________
Mark Cushman

Top
#245112 - 23/06/2005 11:58 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
If one uses player v3, the player data is utf-8 encoded.
But the http output claims it is iso-8859-1 encoded.

Where to fix that? In the stylesheet or in hijack?

Thanks,
Pim

Top
#245113 - 23/06/2005 12:26 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: pim]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
That would be a Hijack issue.

What should it be returning, for v2 and for v3?

Top
#245114 - 23/06/2005 12:48 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
iso8859-1 for v2 and utf-8 for v3.

Pim

Top
#245115 - 23/06/2005 12:50 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: pim]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Quote:
iso8859-1 for v2 and utf-8 for v3.

Pim


Should it be "iso8859-1" (as above), or "iso-8859-1" (as currently done)?

Cheers

Top
#245116 - 23/06/2005 12:52 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
And for that matter, should it be "utf-8" or "UTF-8" ?

Top
#245117 - 23/06/2005 14:26 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Browsers don't seem to care about the extra hyphen or the case.

I did a test with a small cgi script, sending out various
content-type charsets and appropriately encoded body texts.

Firefox 1.04 and IE 6.0 always get it right.

I'm not sure what the preferred notation is. I guess if you leave
the v2 output as it is, and use "utf-8' for v3, we would be pretty safe.

Thanks,
Pim

Top
#245118 - 23/06/2005 18:16 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: pim]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay. Hijack v433 in a few minutes, then.

The only change is the UTF-8 charset type for XML ouput.

I suppose someday I should also set it for regular browser output, too.

Cheers

Top
#245119 - 23/06/2005 21:25 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Quote:

Okay. Hijack v433 in a few minutes, then.

The only change is the UTF-8 charset type for XML ouput.



Great! Works as expected.

Quote:

I suppose someday I should also set it for regular browser output, too.



Yes, it applies to al output that uses tag data.
The encoding for regular playlist views is still wrong.

Thanks,
Pim

Top
#245120 - 24/06/2005 00:37 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: pim]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Quote:

Yes, it applies to al output that uses tag data.


Hijack v434.

Top
#245121 - 26/07/2005 00:23 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Quote:
Hijack v434.


Sorry it took this long to test.

There's a typo that makes html playlists fail to display correctly.
The header says "charset-utf-8' instead of 'charset=utf-8'.

The bug is there too for xml output, but it is unnoticed, as
there's another encoding tag in the xml itself.

Pim

Top
#245122 - 26/07/2005 01:14 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: pim]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Quote:

There's a typo that makes html playlists fail to display correctly.
The header says "charset-utf-8' instead of 'charset=utf-8'.


Hijack v438, shortly.

Top
#245123 - 26/07/2005 16:11 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Thanks Marc! Works as advertised.

Another plea:

I'd like to be able to use both Empeg Web Lite and Charcoalgray's
XSL stylesheet, but there's only room for one default.xsl.

How about having the XSL sheet configurable in the URL, like

http://player/?FID=101&EXT=.xml&XSL=my.xsl

Thanks anyway,

Pim

Top
#245124 - 26/07/2005 16:18 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
Mataglap
enthusiast

Registered: 11/06/2003
Posts: 384
Is the attachement in the first post from 30 Dec 2004 still the current version?

--Nathan

Top
#245125 - 26/07/2005 16:30 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: Mataglap]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
The latest version can always be found here.
_________________________
Mark Cushman

Top
#245126 - 26/07/2005 16:35 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: pim]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
_________________________
Mark Cushman

Top
#245127 - 26/07/2005 16:38 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
This would work on the first page, but I construct the URL's for each subsequent page, and the stylesheet would have to support adding in the additional style parameter to each link it builds. It should be easy to hack EWL to do this, though. (i.e. you can do it and send it to me)
_________________________
Mark Cushman

Top
#245128 - 26/07/2005 17:15 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Quote:
http://your_empeg_ip/?fid=101&ext=.xml&style=my.xsl


I just use: http://my_empeg_ip/?FID=101&EXT=.xml and it works fine...

Mark, can you add on the download page that notify=1 needs to be in the config.ini for your style sheet to work? I know I should have known better, but my display wasn't working properly because I had forgotten that I started with a "stock" config.ini and it took me a while to remember. It just might save someone else some time.

I still love how this works/looks! Are you still planning on some other versions?
_________________________
Brad B.

Top
#245129 - 26/07/2005 18:19 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: SE_Sport_Driver]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Quote:
I just use: http://my_empeg_ip/?FID=101&EXT=.xml and it works fine...

Yes if you have the correct xsl file listed in config.ini for hijack (or keep the default of default.xsl). pim was asking about being able to switch on the fly. In a post above, I described a way we could have an index.html in the root directory with different links to different stylesheets - that would depend on having the stylesheet support passing that style= parameter in all subequent links.

Quote:
Mark, can you add on the download page that notify=1 needs to be in the config.ini for your style sheet to work?

Will do.

Quote:
I still love how this works/looks! Are you still planning on some other versions?

Yes, but not high on my priority list.
_________________________
Mark Cushman

Top
#245130 - 28/07/2005 15:16 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: pim]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Quote:
Thanks Marc! Works as advertised.

Another plea:

I'd like to be able to use both Empeg Web Lite and Charcoalgray's
XSL stylesheet, but there's only room for one default.xsl.

How about having the XSL sheet configurable in the URL, like

http://player/?FID=101&EXT=.xml&XSL=my.xsl

Thanks anyway,

Pim


Isn't that what the existing "&STYLE=xxxxxx" parameter does?

Cheers

Top
#245131 - 28/07/2005 19:50 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
pim
addict

Registered: 14/11/2000
Posts: 474
Loc: The Hague, the Netherlands
Indeed.

I only knew about the config.ini customization.

And let me apologize for spelling your name wrong.

Pim

Top
#245132 - 28/04/2007 00:07 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Gahd the BBS Search is pitiful. Typing Empeg Web Lite into the search box doesn't find this page for me. But google.ca found it right away, so here I am again.

Hijack v471 is now released. This version automatically looks for the /default.xsl file and changes the "Click Here for Playlists" links to .xml (rather than .htm) when that stylesheet exists.

Well, actually, it looks for the khttpd_style file, which defaults to /default.xsl and can be set to anything you want in the [hijack] section of the config.ini file, as in:

[hijack]
khttpd_style=/drive0/my_stylesheet.xsl


That's an old feature, of course, but automatically using it now is the new one.

-ml

Top
#245133 - 28/04/2007 00:09 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Here (attached) is a slightly hacked version of Cushman's Empeg Web Lite. Nothing wrong with his, but I wanted it to show the time-remaining on the display. Also, the year is not set on most of my tunes, so seeing () on the page was a bit annoying, and I removed that field altogether.

Cheers


Attachments
298416-default.xsl (175 downloads)


Top
#245134 - 28/04/2007 00:48 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Quote:
Gahd the BBS Search is pitiful. Typing Empeg Web Lite into the search box doesn't find this page for me. But google.ca found it right away, so here I am again.

Immediately above the search box is the text:

Quote:
(Default is any word, use + in front of words for all words searching)

So if you type in "+empeg +web +lite", the first result is this thread.

Also, not that it's documented on the same page -- you have to actually click on "Advanced search tips" to see it:

Quote:
"Use quotes around a phrase to search for a phrase"

So typing in ""empeg web lite"" also has this thread as the first result.

Then again, just typing in "empeg web lite", without additional quotes or plus-signs, also results in this thread as the first in the list.
_________________________
Bitt Faulk

Top
#245135 - 28/04/2007 02:07 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Hey Mark, ever go back and look at this request from a while ago? This was the next step to getting a list of currently playing tracks on the web interface. I was thinking about revisiting some changes I was hoping to make to the stylesheet, and your post got my attention.

Also, the parens around the year parameter could be removed if the year was null. That would be fairly simple to do in the stylesheet.
_________________________
Mark Cushman

Top
#245136 - 28/04/2007 10:11 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: cushman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Quote:
Hey Mark, ever go back and look at this request from a while ago?

Oh, fooey! How did I ever forget about that one. All right, nag me again in a few weeks if the feature hasn't appeared by then.
Quote:

Also, the parens around the year parameter could be removed if the year was null. That would be fairly simple to do in the stylesheet.

Yeah, if I wasn't such a crappy javascript novice!

Top
#245137 - 13/05/2007 23:55 Re: Empeg Web Lite - Stylesheet for Hijack's http server [Re: mlord]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
/nags mlord
_________________________
Mark Cushman

Top
Page 1 of 3 1 2 3 >