Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1

    A bit of fun with javascript and the Spotify webplayer

    I have a web page on a pi that lets me paste Spotify links (e.g. playlists, tracks, albums etc.) and it plays them on my squeezeplayers via Spotty. This is useful if I'm browsing the Spotify website.

    I wanted to see if I could go one step further and automate the playlist commands straight from the spotify website rather than copying and pasting links into my own web page. I've been playing with jquery (never used it or javascript before) but have managed to come up with this:
    Name:  spotify-75.jpg
Views: 229
Size:  45.1 KB

    The code's horrendously messy and in no fit state to be shared at the moment so this is more a case of me enjoying the sense of satisfaction of achieving what I wanted to do. That said, if people are interested I may see if I can tidy the code up and share it.

  2. #2
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    2,847
    Fun
    Presumably not limited to Spotify but could be modified to anything that exposes a playable URI
    Pi3 pCp/LMS storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  3. #3
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    1,993
    I sometimes run s pi with dac hat as a stand alone Spotify-connect player (also as a Squeezelite player).

    I was recently thinking about a Screen and started looking around the web.

    apparently it should be possible to do this in Chromium on the Raspbian distro, but still sometimes a bit flaky.

    ronnie

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,330
    Out of curiosity, last year I prototyped a squeezelite like player by rewriting in Javascript and websockets. It proved the concept but it also threw up a some web security issues and would not be gapless - so I didn't persue it further as I reckoned the time taken to make it user friendly (easy to access via a special LMS webpage , a UI) was not worth it.

Posting Permissions

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