If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Don't have LMS running? What are you doing here then, anyway? The documentation is on github, of course. Read it online. It's not nicely laid out, but hey, it's available!
Michael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information)
Don't have LMS running? What are you doing here then, anyway? The documentation is on github, of course. Read it online. It's not nicely laid out, but hey, it's available!
Is there similar documentation for the JSON interface somewhere?
The JSON part ist embraced by ' followed by {. The latter for handling it as a dictionary.
The command itself is a list consisting of the player ID (MAC) and another list with the parameters p0 to p5.
The JSON part ist embraced by ' followed by {. The latter for handling it as a dictionary.
The command itself is a list consisting of the player ID (MAC) and another list with the parameters p0 to p5.
Thanks all for sharing! This really helped me get started. I was having some trouble figuring out how to send some other commands though until I saw somewhere that if you want to send a "general" command for example you still need to give a mac address for some reason? So I got this to work for example. Not sure also if/why the "id":0 is needed but I put that in there too
Am I correct in concluding that there is not much of an error handler for the jsonrpc interface? If, for example, I request the status of a player but provide an incorrect playerid, instead of a nice JSON response error string along the lines of 'unknown playerid' or 'player offline', all I get is a http disconnect. If accessing LMS via ngrok then it's a 502 Proxy Error I see with "The proxy server received an invalid response from an upstream server". Any way to get 'nicer' error responses from jsonrpc.js ?
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment