Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    11

    Different skins based on incoming client IP address?

    I'm experimenting with controlling my Transporter with my Nokia phone (it has WiFi and a browser). I can connect just fine to port 9000 on the server machine using the built-in browser on the phone. However, to get this to work I have to set the skin to "Handheld" or I get out of memory errors. But then when I use SqueezeCenter on the main machine I have a stupidly ugly skin. Is there a way to configure the skin that SqueezeCenter uses based on the IP address of the request, or maybe a different url that will skin it differently? A url like http://<server>:9000/handheld would be perfect.
    Last edited by apb; 2008-05-21 at 09:04.

  2. #2
    formerly known as Fletch
    Join Date
    May 2005
    Posts
    2,282
    Quote Originally Posted by apb View Post
    A url like hppt://<server>:9000/handheld would be perfect.
    Um, did you try that?

  3. #3
    NOT a Slim Devices Employee kdf's Avatar
    Join Date
    Apr 2005
    Posts
    9,493

    Different skins based on incoming client IP address?

    On 21-May-08, at 8:40 AM, apb wrote:
    > A url like
    > hppt://<server>:9000/handheld would be perfect.


    substitute hppt for http and you have exactly what works now.
    Did you try this?
    -k

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,452

    Different skins based on incoming client IP address?

    > different url that will skin it differently? A url like
    > hppt://<server>:9000/handheld would be perfect.


    Did you at least try this?

    --

    Michael

  5. #5
    Junior Member
    Join Date
    May 2008
    Posts
    11
    Quote Originally Posted by Fletch View Post
    Um, did you try that?
    Nope 8-). I only had a little time to play around with it yesterday. So is that URL known to work?

  6. #6
    Former Squeezebox Guy andyg's Avatar
    Join Date
    Jan 2006
    Location
    Pittsburgh, PA
    Posts
    7,396
    Isn't a better way to use the user-agent to determine which skin to use?

  7. #7
    Senior Member
    Join Date
    Jun 2007
    Posts
    126

    Different skins based on incoming client IP address?

    apb wrote:
    > Fletch;303945 Wrote:
    >> Um, did you try that?

    >
    > Nope 8-). I only had a little time to play around with it yesterday. So
    > is that known to work?


    No, it's not known to work. That's why everyone keeps suggesting that
    you just try it. Because we like wasting your time.

    - Marc

  8. #8
    formerly known as Fletch
    Join Date
    May 2005
    Posts
    2,282
    Quote Originally Posted by andyg View Post
    Isn't a better way to use the user-agent to determine which skin to use?
    FWIW, I've tried webmail clients that do this and found it to be a PITA unless there's also a way to override it in the URL or configure it in a user setting. It seems that there are always reasons to occasionally access the full skin on a handheld browser.

  9. #9
    Senior Member funkstar's Avatar
    Join Date
    Nov 2005
    Location
    Scotland
    Posts
    4,071
    Quote Originally Posted by Fletch View Post
    FWIW, I've tried webmail clients that do this and found it to be a PITA unless there's also a way to override it in the URL or configure it in a user setting. It seems that there are always reasons to occasionally access the full skin on a handheld browser.
    Then if that is the case, filtering by IP is going to have exaclty the same problem. And it is going to need to be constantly updated to handle new devices or changes in IP. Skins based on the user agent is the best way to do this.

    appending the skin name to the server URL is a feature thats feen there for years, since the skin engine was implimented even. It is case sensative though.

  10. #10
    NOT a Slim Devices Employee kdf's Avatar
    Join Date
    Apr 2005
    Posts
    9,493

    Different skins based on incoming client IP address?

    On 21-May-08, at 10:10 AM, funkstar wrote:

    > . It is case
    > sensative though.


    used to be, but shouldn't be any more
    -kdf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •