PDA

View Full Version : Writing a control program - what interface?



Pétur
2005-06-26, 13:39
Hi all,

I'm fed-up with the web interface and its flexible way to manage the current playlist, and I develop software for a living.

It took a while to bring these two things together. But now I made up my mind, I want to write a native Windows application to control my server.

Is there anything done in this direction, and if not, what interface is there? I can find doc about writing plugins, but I would like to get to the interface that the current webserver is using.

thanks,
Peter

Jacob Potter
2005-06-26, 15:16
On 6/26/05, Pétur <Ptur.1r93sn (AT) no-mx (DOT) forums.slimdevices.com> wrote:
> Is there anything done in this direction, and if not, what interface is
> there? I can find doc about writing plugins, but I would like to get to
> the interface that the current webserver is using.

Look at the CLI interface. It's text/command-based, oriented towards
standalone software (i.e. home automation).

The docs are there in Technical Information; the interface isn't open
by default, but you can set a port number in Server Settings /
Network. 9090 seems to be the recommended one to use.

- Jacob

Fred
2005-06-27, 12:09
> From: Jacob Potter <jacobdp (AT) gmail (DOT) com>
>> On 6/26/05, Pétur <Ptur.1r93sn (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
>> Is there anything done in this direction, and if not, what
>> interface is
>> there? I can find doc about writing plugins, but I would like to
>> get to
>> the interface that the current webserver is using.
>>
>
> Look at the CLI interface. It's text/command-based, oriented towards
> standalone software (i.e. home automation).

And is more or less what the web interface is using. Certainly so for
all actions.

Fred

Pétur
2005-06-27, 14:50
Thanks guys, wil have a look at it :D

Peter

vidurapparao
2005-06-27, 15:01
Jacob Potter wrote:

>On 6/26/05, Pétur <Ptur.1r93sn (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
>
>>Is there anything done in this direction, and if not, what interface is
>>there? I can find doc about writing plugins, but I would like to get to
>>the interface that the current webserver is using.
>>
>>
>
>Look at the CLI interface. It's text/command-based, oriented towards
>standalone software (i.e. home automation).
>
>
Another option is the XML Skin. You can also find information about the
skin in the Technical Information section of the SlimServer web interface.

--Vidur

rtitmuss
2005-06-28, 12:45
Peter,

If you would be happy to work in Java I could do with some help
finishing the Softsqueeze search/playlist functionality. My end goal was
to allow this to be able control other types of player as well as
Softsqueeze. Just at the moment I do not have much spare time to finish it.

To write this style of app I would recommend using the cli interface.
Softsqueeze 1.x used the xml interface, but in Softsqueeze 2.x I changed
it to the cli api. This is a much a faster, and richer api.

Richard


Pétur wrote:

>Thanks guys, wil have a look at it :D
>
>Peter
>
>
>
>

Pétur
2005-07-09, 15:30
If you would be happy to work in Java I could do with some help finishing the Softsqueeze search/playlist functionality. My end goal was to allow this to be able control other types of player as well as Softsqueeze. Just at the moment I do not have much spare time to finish it.
Thanks for the offer but...

- as you can see by the swiftness of my reply, I seem to have a bit of a timing issue myself

- I was one of the unfortunate to start using Java when it came out, and then leave it when performance turned out to be a nightmare (at least in the early days). Haven't touched it since (doing mostly Win32 API programming, bits of CE and MFC,...)

Peter