Considering the artwork for online radio stations, I could just use the method used in the web UI, but the returned images often have a poor quality. Maybe there's a better API somewhere out there :)
Huh? The images in the web UI are scaled down on the server side - if you blow them up as the background picture, then yes, you'll have poor quality. But the resizing is optional. Just don't add resizing parameters (the _50x50 kind of thing). Without those parameters you should get the original data. No better, no worse.
But that's not the problem I was seeing: listening to eg. Radio Paradise I would have album covers on the devices, in the web UI, everywhere. But your app would only show the generic antenna. The "current" URL you're using doesn't work with internet radio streams. You should use the status query to get all the data you need (see the web UI ;-)). No need to query artist/album/title etc. separately.
I've decided to choose the API provided via CLI as it provides real-time information about your clients' status. For example, if you change the volume or track on a client, the app will be instantly notified and represent these changes with as little latency as possible.
Ok, that's a point. But I wouldn't use it for the polling of information as you currently do (aforementioned artist/album/etc. information).
The Node.JS part provides a telnet client that is used to connect to the server control it. Maybe I can keep the CLI part just for the notifications and do the rest using the JSON/RPC API.
That would be my suggestion. Or try to implement cometd :-). Is there a long-polling module for Node.js available? Probably not the client part of it...
-- Michael _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
