tsquillario/Jamstash

settings to connect to localhost

Closed this issue · 5 comments

What settings should I put into Jamstash if I want to connect to localhost?

image

Or do I have to put the server's IP?

Putting http://localhost for the server should work, I just tried it using containers for jamstash and subsonic. It goes without saying that you should also change it to http://localhost:4040 if you're using port 4040.

Does it work for you ?

No.

As a matter of fact, I've setup an Ampache (Ampache is exposing a Subsonic API) instance running in a Docker container, and copied Jamstash's files to the container's /var/www/ directory. Jamstash displays fine, but if I specify http://localhost as the server I get an Error when contacting the Subsonic server. The requested data was not found. (see #234)

From a quick glance at Ampache's github repo, it seems that its Subsonic API only supports XML. Can you confirm that this is the case ? I didn't know about Ampache before you mentioned it.

Jamstash can only deal with a JSON API (or JSONP), so if Ampache only provides XML then they are incompatible.

indeed, Ampache only provides XML...

As a workaround, you can install a Subsonic instance and tell it to grab its data from Ampache. Ampache can provide a Subsonic-compatible API, and Subsonic can subsequently serve a JSON API. Jamstash would then have to connect to Subsonic's port. We can get it to work that way.

But it's a bit of a workaround. Generally, it'd be great if Jamstash could also work with Ampache!

transferred to #237