yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] cewan:
Try and connect from the same computer, by going to http://YOUR_IP:1258/SpotifyControllerServlet/SpotifyControllerServlet

If that works, try and connect from another computer to the same address.
[Android Apps and Games] phalanger:
can this be used with 3G or only on wifi?
[Android Apps and Games] cewan:
It can be used with both :-)
[Android Apps and Games] garnmeister:
Running win7 Ultimate 64-bit, and I cannot get the server running...

I run install.bat, which runs through fine, even though it's unable to turn volume down and up.

The Desktop shortcuts are installed, but trying to start the server nothing happens.

Can't connect loacally, through LAN or WAN....

Any ideas ?

EDIT: So I can now connect, but it won't play anything :o(

The problem wit getting the server to run was missing PATH to java dir
[Android Apps and Games] cewan:
Try opening a playlist in the Spotify program on Windows, then see if you can control it.
[Android Apps and Games] garnmeister:
I can control Spotify from my phone, as in:

- Next / Prev. Track

- Play / Pause

- Volume up / down

Still unable to:

- Load tracks / playlist

Anyways, I would say that this is progress. Have I misread the first post or am I supposed to be able to load tracks and lists?
[Android Apps and Games] cewan:
You can load tracks/playlists, just install the official Spotify app and then share tracks and playlists from that app to Spotify Controller. :-)
[Android Apps and Games] garnmeister:
That is the part which isn't working for me.

I can import from the Spotify App, I have tracks and playlists visible in Spotify Controller. However, if I try to play them I get a really long loading time, I see Spotify being shutdown and restarted on the server, but nothing plays.

???
[Android Apps and Games] cewan:
Ok, that sounds like a bug. I'm sorry to hear that. Too bad I am not able to test this on your type of system :-(
[Android Apps and Games] garnmeister:
Anything I can do to help you figure whats wrong..

I love the idea of this app and would love to see it working.
[Android Apps and Games] cewan:
Not really sure what to say. Maybe you could try to invoke "spotify /url <spotify-url>" from command line, as that is what I am using.
[Android Apps and Games] littlenano:
I have the next problem:

Please start Spotify now.

Presione una tecla para continuar . . .

Is it started?

Presione una tecla para continuar . . .

Playing...

El sistema no puede encontrar la ruta especificada.

Did music start?

Presione una tecla para continuar . . .

"The system can not find the path specified"

I use W7 64-bits

Thanks
[Android Apps and Games] foh1981:
Just found your app on Market. Gave it 5 stars for the Linux support :)

I'm an Spotify Unlimited user since they (sort of) started with Linux support, but I'm not ready to move up to Premium just yet...

I was wondering if it's possible to add playlists with Spotifys HTTP or URI links. I don't know in what way your app "speaks" to the official Spotify app, but if it's using the URI or HTTP, couldn't you add a manual entry for this as well?

I opened the sqlite file on the sdcard but it didn't contain any URIs or the like, but I don't know if that's due to me not having populated the app yet or if it's stored anywhere else.

Don't know if you can answer, maybe it's a grey area because of Spotify wanting more Premium users? :)
[Android Apps and Games] cewan:
Yeah, I think the problem is that you are running 64-bits. Where is spotify located?
[Android Apps and Games] cewan:
It should work fine with http or uri links, as that is what I am using when adding stuff from the official Spotify app.

Try to share your link on your phone and hopefully Spotify Controller will turn up as an alternative.
[Android Apps and Games] mattneri:
Thanks, I'll try it
[Android Apps and Games] foh1981:
Ah, didn't think of that! However, since of today the official Spotify app also allows free and ultimate users to sign in, so that's not even necessary anymore :D

Spotify has launched a download service where you can buy a number of songs for download/sync, even if your a free user. You can read more about it here: http://www.spotify.com/se/blog/archives/2011/05/04/spotify-says-hello-to-the-ipod/

I've already tried it with Spotify Controller and it worked great! My only gripe now is that somewhat troublesome handling of songs and playlists. It would be great if you could choose individual songs on the playlists that you add, but I don't know if that's possible to do. Maybe some kind of playlist function for Spotify Controller otherwise? Or maybe that's already possible...

In any case I'm going for the donate version this instant. Linux support yay! :D
[Android Apps and Games] cewan:
Yeah, it is on my todo list for future version, but unfortunatelly Spotify doesn't offer any easy way to do this, so it is a lot of work for me to get it working :-(
[Android Apps and Games] foh1981:
No worries. Personally I feel that I might as well structure it with smaller playlists, but my girlfriend has a huge playlist in which she always wants to change to specific songs :) I'm gonna try convert her to the idea of smaller playlists.

Anyways, I have another suggestion regarding the Linux installation procedure, which I believe isn't that much work.

I'm a bit reluctant to install things without deb files (don't worry, I'm not about to suggest that you package it in a deb ;) ) so I "installed" it in a folder in my home directory. Upon first start I had to set all the executable bits on the dbus scripts to make it work, but that's about it (I might have modified the SpotifyController.sh file as well, not sure). So my suggestion is that you add that option in the install script, a "local installation" which only does that one thing. (Or just add the instruction to the Readme file perhaps?)

There's two positive side effects to this IMHO: one is that it allows for a wider distributions support (I imagine), and the second that it sort of works like a single user installation.

I'm gonna make a small zenity script now to get a tray icon ^^
[Android Apps and Games] cewan:
These all sound like great suggestions. I am not that good at that part, any chance that you can contribute? By for instance modifying my install-script? Or even making a deb file?
[Android Apps and Games] foh1981:
Regarding deb packaging I'm clueless at the moment. I'm under the impression that it's kind of difficult. Canonical/Ubuntu has as of late made it a bit easier I think so I might have a look at it anyway. Don't count on it though :)

As for modifying the script I'll have a look and get back to you (I should be able to fix that). I might include another script for the zenity part if I get that to work well :)
[Android Apps and Games] cewan:
Sounds cool! Though I have no idea what Zenity is ;-)
[Android Apps and Games] foh1981:
Oh right... Zenity is a part of the Gnome desktop environment (installed by default, at least in Ubuntu). It allows you to present graphical dialogs of different kinds from the command line or from bash scripts.

It has, for instance, the feature to create a notification icon in the notification area. So my plan is to make a simple script which starts Spotify Controller and shows the icon in that area. When you click on it you're presented with an information dialog which asks if you would like to stop the service. It should be pretty straight forward :) I've done it before with Mediatomb but I didn't have that script saved anywhere so I'll start over. In the end it's mostly adding a few lines in the existing scripts.

Edit: Actually, what I said before about changing the execution bit of the scripts didn't seem to be necessary. Last time I might have downloaded and extracted them on my Windows partition and then copied them to my Linux partition, which probably made the execution bit disappear... It seems you can just download and run it from the extracted directory :)

I have some suggestions for the different shell scripts though, and I'll get back to you on that. My zenity script is pretty much working, but the notification icon doesn't show due to the changes made in Ubuntu 11.04. There's a whitelist for programs wanting to have a notification icon and I need to find out how to enable zenity there and what's the best practice to make it happen. Right know I can start and stop the service with the same script though, it shows a dialog if the server is already running and asks if I want to stop it.
[Android Apps and Games] cewan:
I have PM:ed you :-)
[Android Apps and Games] Svenvdmeer:
I think i know what the problem is with win 7 64.

When this app is trying to open a playlist it is looking for spotify in the program files folder. On win 7 64 spotify is located in /program files (x86)/spotify

is there a file where we can change that path?
[Android Apps and Games] youo:
Thanks alot.
[Android Apps and Games] cewan:
Yeah, try to alter this file:

SpotifyController/commands/spotify.bat

Please let me know how it goes and if I should update my installation files.
[Android Apps and Games] Svenvdmeer:
I will try that tomorrow because today ill celebrate my freedom (liberation day in the netherlands)
[Android Apps and Games] Svenvdmeer:
I changed it to "c:/Program Files (x86)/Spotify/spotify"

now spotify restart but goes to the What's new windows instead of playing the requested playlist
[Android Apps and Games] foh1981:
I think i've finished the Zenity script, so for those who wants a notification icon in Ubuntu can go here and check it out: http://paste.pocoo.org/show/384114/

Download here: http://dl.dropbox.com/u/873907/SpotifyControllerZenity.sh

Place it in the same directory as Spotify Controller. Double click on it to run. The script checks if zenity is installed, if it is placed in the correct location, if you're running Natty and need to whitelist applications for the system tray etc. It uses the same icon as provided by Spotify Controller so there's a beautiful little icon in the notification area which you click to shut down the server :)

You have to right-click and choose Properties and check "Allow to execute" under the Permissions tab. In Natty, you can add it to the launcher with the Main Menu application and choose New Item (not sure how to otherwise create desktop shortcuts but to make a text file).

Edit: I updated the script with cd $(dirname $0) in the beginning to make it work with shortcuts. Download it again to get the updated version (don't copy and paste from the pastebin since it's not updated).
[Android Apps and Games] nutty6:
Awesome App!
[Android Apps and Games] foh1981:
Try changing spotifyOpenUri.bat as well. It should read

"%ProgramFiles(x86)%/Spotify/spotify" /uri %1

It can take a while before the playlist loads, since Spotify needs to be restarted each time the playlist is changed. It worked for me on Vista x64.

cewan:

I don't have a 32-bit system to test on, but maybe you could echo %ProgramFiles(x86)% and see what result you get? I hope that on a 32-bit Windows you just get that same string back, and not the path. In that case you can asume the user is on a 32-bit system, otherwise it's 64-bit.
[Android Apps and Games] MOstling333:
Got quite a problem, i can't start the server. First when i installed it it couldn't "find the path specified", took some modding of the SpotifyOpenUri batch file to relocate it to the right path. But still, well, it just stops here: img638.imageshack.us/img638/7775/unledgue.png

any help would be appreciated :)
[Android Apps and Games] foh1981:
I think it looks ok (you don't get any gui with the server, it just runs in the background).

Have you tried connecting to the server from the app on the phone?
[Android Apps and Games] assa92:
SpotifyController server

Hi,

The tinyurl link to the server seems to be broken? On other websites I can't seem to be able to download the SpotifyController server either, can someone help me out. I would really love to try this out!

regards,

assa92
[Android Apps and Games] foh1981:
Works for me, just took a while. But it links to this adress:

https://docs.google.com/leaf?id=0B4...kzNzMtZjE1MWRkNjVmZjkx&hl=en&authkey=CP-f0LwF
[Android Apps and Games] assa92:
Well the tinyurl link works its the google link that doesnt work... :/
[Android Apps and Games] foh1981:
That link, too, seems to work for me :) Do you get an authentication failure so you can't access the Google Docs page or is it the download of the zip file that doesn't work?

In the latter case, left click on it, don't right click and chose "Save as".
[Android Apps and Games] cewan:
Try the goo.gl-link otherwise
[Android Apps and Games] assa92:
Well must be me then, neither links work. On google I get

"Address not found:

Check that the address is spelled correctly, or try searching for the site."

I tried different browsers etc. Maybe someone can upload it to another site?

Regards,

assa92
[Android Apps and Games] foh1981:
Here you go: http://dl.dropbox.com/u/873907/SpotifyController.zip
[Android Apps and Games] assa92:
Cool thanks got it now. Lets see if I can get it too work for me ;)
[Android Apps and Games] assa92:
So here is how far I got sofar. ( no idea why the android controller isn't connecting yet).

Since I'm running x64 the install.bat isn't really working.

What I did is the following

In the spotifycontroller/commands folder edit both spotify.bat and spotifyOpenUri.bat

Mine are:

Spotify.bat = "C:/Program Files (x86)/Spotify/spotify"

SpotifyOpenUri.bat = "C:/Program Files (x86)/Spotify/spotify" /uri %1

This is on a default install on x64.

Then I tried starting the server and this is what you get:

C:\Program Files (x86)\Spotify\SpotifyController\server>java -jar start.jar jetty.port=1258

'java' is not recognized as an internal or external command,

operable program or batch file.

To fix this (which is quite easy) edit the SpotifyController.bat file to your java installation dir.

Mine is like this:

"C:\Program Files (x86)\Java\jre6\bin\java.exe" -jar "C:\Program File(x86)\Spotify\SpotifyController\server\start.jar" jetty.port=1258

Then the server start in a dos prompt window for me and when I go to the localhost website:

http://localhost:1258/SpotifyControllerServlet/SpotifyControllerServlet

The output actually works aswell. Now to get my phone connecting to the server... there where my current problem lies, ill get into that now but just wanted to share this with everyone ;)

Current issue: Phone connected to my wireless, PC (Spotifyserver) connected via LAN Cable. Same Subnet, connect phone to local IP = No dice Y_Y

-----

Edit:

Okay really... I just restarted the server and now my phone connects thats just awesome :D
[Android Apps and Games] powisquare1:
Settings Button

Hello ~ well done for creating a very useful app. Just wondered how I can get to the App's settings ? I notice on youtube a softkey was used (?). I have a Rafroid SD install on an HD2 and this does not work ... hope you can help cheers
[Android Apps and Games] cewan:
Press the menu button :-)
[Android Apps and Games] erwinbuiv:
Hello,

I have a problem when connecting to a pc (via wireless adapter). When i use a wired connection (on the pc where spotify is running), all goes well.

Anyone else who has problems connecting to a wireless pc?

Regards

Erwin
[Android Apps and Games] foh1981:
If you're connecting through the same access point (router) you probably get different IP adresses for the wired and wireless connection. Change the IP in the server settings in Spotify Controller on your phone.
[Android Apps and Games] Tintent:
Hi Folks, I've got a problem installing the server on Ubuntu. I'm guessing it's something daft I'm doing wrong since others seem to have this working fine.

I downloaded and unzipped the file and then click the Install file. This puts two icons on my desktop. When I click the Spotify Controller icon, I get a terminal window with a red warning saying:

There was an error creating the child process for this terminal

Failed to execute child process

"SpotifyController"(No such file or directory)

Any pointers on how to fix this would be well received!!

Thx
[Android Apps and Games] foh1981:
Check /usr/bin and see if you have the SpotifyController script there. Sounds like you don't, and I'm guessing the installation script failed for you somehow. While you're at it check if KillSpotifyController is there as well :)

If you just want to try out the server you can download my script here and place it in the same directory as the zip you extracted: http://dl.dropbox.com/u/873907/SpotifyControllerZenity.sh

All you need to do is right-clicking it and allow it to execute.
[Android Apps and Games] Tintent:
Thanks for the help. I'd not installed it correctly but you post made me look at it a bit more carefully. All up and running fine now!! J.
[Android Apps and Games] cewan:
I'm glad to hear you got it working :-)
[Android Apps and Games] 0mie:
Is there no Mac support or am I just missing it?
[Android Apps and Games] cewan:
IM sorry, but i have no access to a Mac so I can't produce an installer for that OS :-(
[Android Apps and Games] 0mie:
Alright, thanks anyway :(
[Android Apps and Games] Rense:
Thanx to some googling I managed to change the windows batch files to make it x64 compatible, while it should still work on x86.

spotify.bat

if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto x64

:x86
"%ProgramFiles%/Spotify/spotify"
goto done

:x64
"%ProgramFiles(x86)%/Spotify/spotify"
goto done

:done

spotifyOpenUri.bat

if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto x64

:x86
"%ProgramFiles%/Spotify/spotify" /uri %1

goto done

:x64
"%ProgramFiles(x86)%/Spotify/spotify" /uri %1

goto done

:done
[Android Apps and Games] cewan:
Thanks a million!

I have updated the server package with your changes. I would be very grateful if you could try it on your 64bit computer. Is that possible?

New file here:

http://www.mediafire.com/?s6vorntwdedzn0u

OR

http://tinyurl.com/6hv98po
[Android Apps and Games] cewan:
New release

New version out: 3.1

v3.1

* Advanced configuration for timeouts and retries

* Fixed bug for volume toast notifications

* Fixed bug when entering empty port number
[Android Apps and Games] pascalg:
check server status

Hello,

I downloaded the server and installed is using the install.bat. Everything goes well. The music starts, the music stops, volume up, volume down.

But when I try to access the server using the android app it keeps saying. No server available. Also when trying to access the server using ://localhost:1258/SpotifyControllerServlet/SpotifyControllerServlet I do not get any responce.

I am using Windows 7 Ultimate (I switched off my McAfee firewall while trying). How can I check if the server/service is running and/or how can I start the server.
[Android Apps and Games] kellyhart:
works well

i tried it and it works
[Android Apps and Games] foh1981:
Have you started the server with the other bat-file and/or shortcuts created by the install script? Sorry if that's a stupid question, but the install script doesn't start the server :) If you used the shortcut on the desktop, maybe you could try the bat file instead, and see if it gives you any pointers as to what isn't working.
[Android Apps and Games] cyansmoker:
cewan,

I took the liberty to tinker with your server-side script and adapt it for OS X.

You can find it at http://xdaforums.com/showthread.php?p=17080422

Feel free to incorporate it in your own code if you wish, or I could first make the script a bit more "app-like" or maybe you want nothing to do with it ;)

Cheers,

-C.
[Android Apps and Games] cewan:
Very cool! I am curious in what changes you needed to do to make it work for Mac?

Let me know if you would like to have the source code for the server side :-)
[Android Apps and Games] cyansmoker:
Well, mostly it was changing dbus calls to AppleScript. I also had to output some bogus data that contained the actual metadata you expect from openlink because dbus and ASciprt offer different API calls.
[Android Apps and Games] r.brock497:
Halp?

Running ubuntu lucid - I get the following from the install script when it comes time to test the pause functionality. Any pointers? dbus is installed, system is up to date, and I'm running the latest linux spotify build from their repos. I'd love to get this up and running; it'd add a lot to my mythtv system. I'm a sysadmin, so I'm not totally clueless, but I've never messed with dbus in any great detail. Any help would be appreciated...

Press "Enter" when you have started a song on Spotify:

Trying to pause the song...

Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.spotify was not provided by any .service files

EDIT: I figured it out, sort of. It was failing because I was running spotify as the regular user, and the install script as root. I ran the install script as the regular user, got a bunch of permission fails for cp's and mv's, but the control bits worked. So, it seems I needed to run the install script as root, but run the server as the same user that is running the spotify client.
[Android Apps and Games] cewan:
Yea, you are right about the permissions. I guess it is a bit too complicated. Wish I was better at making deb packages.

Glad you figured it out though! :-)
[Android Apps and Games] dcshah:
Spotify Controller...

I am having difficulty installing Spotify Controller. The following steps I have taken:

1) Installed Spotify on my PC (Windows 7 Ultimate) and Evo 3D (Android 2.3)

2) Installed Spotify Remote on my Android.

3) Installed Java on my PC

4) Copied JAVA.exe to SpotifyController folder.

5) Started installing server.

The batch job could not change the volume, however, it could stop the volume. The Evo keeps telling me that Spotify Controller can't find the server.

Is there something that am I missing?

Thanks.

Regards,

Dipak
[Android Apps and Games] cewan:
After install, make sure you start the server.
[Android Apps and Games] flugheim:
Hi, it seems as the link for the server is dead, i only get this message: Sorry, the page (or document) you have requested is not available.
[Android Apps and Games] cewan:
I just tried them both, Mac and Win/Linux. Worked fine for me. Which exact link isn't working for you?
[Android Apps and Games] ML1985:
Is that the way the app should work, or should it read whatever spotify on the server side is playing?

I can connect to the server and control the playback, but I can't see the playlists or the currently playing song. I can share playlists from the spotify app to the controller app, but I can't see any information on the song currently playing on the computer, or see the playlists and songs on the computer (=ubuntu Maverick)
[Android Apps and Games] flugheim:
Trying to access windows server from the link on page 1, tinyurl com/ 6hv98po (had to edit the link, not enough post to post links yet)

Is there any other link? I'm sorry if i missed it
[Android Apps and Games] cewan:
Oh, sorry! My mistake, that link was wrong. I changed the text. You find the correct links on the android market page :-)
[Android Apps and Games] cewan:
Thanks for pointing this out. Seems that the latest Spotify version breaks my Controller server. I have updated Spotify Controller Server now. Please update your version and try again.

Playlists and songs are added by sharing them from the official Spotify Android app. Read more about in the description on Android Market.
[Android Apps and Games] ML1985:
Cool, it works now, thanks!
[Android Apps and Games] ddback:
Windows Package

Just dropping a placeholder here - I'm going to download the Windows zip and take a shot at creating an MSI package.

I'll look at using InstEd for the packaging tool. www dot insted dot com

Ping me if you don't hear from me in a week.
[Android Apps and Games] cewan:
Very cool! Let's make a deal. I'll fix Instant Upload with your requests, and you'll fix that MSI for me :-D