--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On a broken down train, so can't reply fully, but any endpoints that are for the editors use should be on httpAdmin. The fix will be whether the node puts a slash at the start of the URL when it makes the request - it shouldnt, so the request is relative to wherever the editor is mounted.
Nick
RED.httpAdmin.get('/mopidy/:nodeId/methods', (req, res) => { /* ... */ });
That bit is fine... It'll be how to specify the url where you send the request to that endpoint in your HTML file.
--
It's working as intended now, thanks!
G.

I'm getting a few niggles with it:
such as the node stating "not connected" when it is
and duplicate messages when the playing track changes (e.g. for event": "event:trackPlaybackStarted" )
I'm connecting to a PiMusicbox installation, I have the mopedy-In set to "Listen to: Mopidy"
All on a brand new install of NodeRed on a Pi2
15 Nov 12:52:53 - [info] Node-RED version: v0.12.1
15 Nov 12:52:53 - [info] Node.js version: v0.10.29
any ideas?
It doesn't appear to be closing down running processes correct when redeploying.
In "modipy-in node" the server is set to "Test (192.168.0.111)" but when Modipy triggers an event I'm getting responses back which contain:
the "serverName": "a", "host": "192.168.0.111",
as well as "serverName": "Test", "host": "192.168.0.111",
The config "serverName": "a" had already been deleted so there is only one configuration displayed in the modipy-in node config screen.
If I then stop and restart the Node-red instance the I only then get 1 copy of each message which has the correct server name.