This page last changed on Oct 19, 2013 by markuspr.

Hello,

i am using a Sonos System with the Node.js Solution.
Everything is ok but....

when sonos plays a song or album or title with an & or ä,ü,ö my Webcontroller shows me the error "xml to jsonparsing error.

Example:
in the "state" from sonos i get this:
"artist":"Alison Krauss & Dolly Parton"

how can i solve this problem?

my json expression:
$.currentTrack.artist

if there is no &,ä,ü,ö json has no problem...

Sorry about my bad english, i live in Austria....

Do you run on Linux or something else?

Posted by mredeker at Oct 20, 2013 19:20

openremote runs on windows 7

Posted by markuspr at Oct 20, 2013 20:54

How does the full JSON answer look? Does that have some kind of encoding header?

Posted by mredeker at Oct 21, 2013 08:36

I use this solution to control my sonos system... http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Sonos

It runs on an Windows7 machine.

Please, can anybody help with this problem?

This problem is also by reading my dreambox by sensor. If there is a & in the Movie-Info i got the same failure.
Isn't there a way to get it work?

Posted by markuspr at Oct 21, 2013 11:25

My Openremote runs on an Windows 7 machine with german language - could this be a problem with & ?

Posted by markuspr at Oct 31, 2013 20:03

Can you try with iOS or Android? It could be an issue with webconsole.
I just tested the controller and the JSON result is parsed fine.

Posted by mredeker at Oct 31, 2013 20:34

I have Tried it with IOS there is no error, but also no parsing.
He does Not overwrite the old parsing text.
Example:
He shows me depeche mode, but it should be Simon & Garfunkel.
Also ö or ä. It shows me strange signs instand of ö.

Posted by markuspr at Nov 01, 2013 14:09

Ok, thanks for trying.
So it seems we actually face 2 problems.
1) Webconsole displaying HTML used characters like &
2) The HTTP protocol parsing UTF-8 characters

Posted by mredeker at Nov 02, 2013 21:03

Hi Markus - I had the Sonos api working on OR using Linux but I have since moved to Windows XP - how did you get the API running in Windows 7? It looks like it is only designed for Unix.

Posted by jules_bike at Dec 07, 2013 14:29

Hi Jules - i used this instructions: http://www.openremote.org/pages/viewpage.action?pageId=22875001

nedojs is available for differnet platforms...

Posted by markuspr at Dec 07, 2013 16:06

Yes I got it working - I forgot that you have to install git and then run the software from the folder where you have installed server.js

Thanks

Posted by jules_bike at Dec 07, 2013 20:46
Document generated by Confluence on Jun 05, 2016 09:41