Page 1 of 1

Node 6.2.9260 problems

Unread postPosted: 27 Feb 2017, 07:41
by IrishMLK
I am running the standalone linux version 9260 on r-pi3.

After chmod 0777 the transcode folder and forcing java 8 I have gotten to this point... I have verified via banshee that my hifiberry is functional by testing an mp3.
I feel like i am THIS close to a working node... thanks for any help!

Below is an excerpt from the

[2017-02-27 06:05:46] [DEBUG] [qtp33407056-15] NodeController - Set new Madsonic server credential.
[2017-02-27 06:05:46] [DEBUG] [qtp33407056-15] NodeController - Host: http://192.168.xx.xx:4040/default
[2017-02-27 06:05:46] [DEBUG] [qtp33407056-15] NodeController - Username: node
[2017-02-27 06:05:46] [DEBUG] [qtp33407056-15] NodeController - Password: enc:pw hash
[2017-02-27 06:05:50] [INFO ] [qtp33407056-12] PlaylistController - Playing stream - http://192.168.xx.xx:4040/rest2/stream. ... e&p=enc:pw hash&id=29313 offset: 0
[2017-02-27 06:05:50] [INFO ] [/var/madsonic-node/transcode/ffmpeg InputStreamLogger] InputStreamReaderThread - (/var/madsonic-node/transcode/ffmpeg) /var/madsonic-node/transcode/ffmpeg: 1: /var/madsonic-node/transcode/ffmpeg: Syntax error: ")" unexpected
[2017-02-27 06:05:50] [DEBUG] [qtp33407056-12] LocalAudioPlayer - Opened line$DirectSDL@cf6a09
[2017-02-27 06:05:50] [DEBUG] [qtp33407056-12] PlaylistController - changeState: PLAYING
[2017-02-27 06:05:50] [DEBUG] [Thread-13] PlaylistController - changeState: EOM
[2017-02-27 06:05:50] [DEBUG] [Thread-13] LocalAudioPlayer - CLOSED line$DirectSDL@cf6a09
[2017-02-27 06:11:25] [INFO ] [qtp33407056-14] PlaylistController - Playing stream - http://192.168.xx.xx:4040/rest2/stream. ... e&p=enc:pw hash&id=29315 offset: 0
[2017-02-27 06:11:25] [INFO ] [/var/madsonic-node/transcode/ffmpeg InputStreamLogger] InputStreamReaderThread - (/var/madsonic-node/transcode/ffmpeg) /var/madsonic-node/transcode/ffmpeg: 1: /var/madsonic-node/transcode/ffmpeg: Syntax error: ")" unexpected
[2017-02-27 06:11:25] [DEBUG] [qtp33407056-14] LocalAudioPlayer - Opened line$DirectSDL@1e3f986
[2017-02-27 06:11:25] [DEBUG] [qtp33407056-14] PlaylistController - changeState: PLAYING
[2017-02-27 06:11:25] [DEBUG] [Thread-14] PlaylistController - changeState: EOM
[2017-02-27 06:11:25] [DEBUG] [Thread-14] LocalAudioPlayer - CLOSED line$DirectSDL@1e3f986
[2017-02-27 06:26:37] [INFO ] [qtp33407056-16] PlaylistController - Playing stream - http://192.168.xx.xx:4040/rest2/stream. ... e&p=enc:pw hash&id=29315 offset: 0
[2017-02-27 06:26:37] [INFO ] [/var/madsonic-node/transcode/ffmpeg InputStreamLogger] InputStreamReaderThread - (/var/madsonic-node/transcode/ffmpeg) /var/madsonic-node/transcode/ffmpeg: 1: /var/madsonic-node/transcode/ffmpeg: Syntax error: ")" unexpected
[2017-02-27 06:26:37] [DEBUG] [qtp33407056-16] LocalAudioPlayer - Opened line$DirectSDL@9d8d7d
[2017-02-27 06:26:37] [DEBUG] [qtp33407056-16] PlaylistController - changeState: PLAYING
[2017-02-27 06:26:37] [DEBUG] [Thread-15] PlaylistController - changeState: EOM
[2017-02-27 06:26:37] [DEBUG] [Thread-15] LocalAudioPlayer - CLOSED line$DirectSDL@9d8d7d

Re: Node 6.2.9260 problems

Unread postPosted: 28 Feb 2017, 06:59
by IrishMLK
Got it working this evening using the link below to add libx264 and clean ffmpeg.

I followed the instructions for first two steps and then renamed the ffmpeg file in the /var/madsonic-node/transcode/ folder. I then copied the new ffmpeg from /usr/src/ffmpeg/ to the transcode folder above using the command below:

Code: Select all
sudo cp ffmpeg /var/madsonic-node/transcode/

I didn't even need to restart the Pi before things started working. I tested mp3 and flac streaming successfully. Now if only the madsonic android app had a node control option... :thumbsup:

Also, is there a way to update the node local webgui to be more user friendly like the node control frame in the main madsonic webgui? I can't stand the XML tab that opens in Chrome everytime you click a command. This may facilitate using a small touch screen with the Pi to control playback.

XML tab content from clicking "Start" on the node local webgui:
Code: Select all
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<madsonic-response xmlns="" status="ok" version="2.5.0" type="node">
<nodeStatus currentIndex="15" playing="true" gain="0.75" position="0" registered="false"/>

Node webgui code:
Code: Select all
<HTML><title>Madsonic-Node</title><HEAD><link rel='shortcut icon' href='img/fav.ico' type='text/css'></HEAD><STYLE>@import url(',700');body {background-image:url('img/back.png');background-repeat:no-repeat;background-position:top left;background-size:cover;margin:0 0 0 0;padding:20px;font-size:13px;} body, form, h1, h2, label, table, a, select, input {font-family: 'Montserrat', arial, sans-serif !important;}a {font-weight:700;}</STYLE><BODY><div style='width:280px'><img src='img/node.png'style='width:100px'></img><h2><B>MADSONIC NODE REST API 2.5.0</B></h2>see <a href=''>online</a> for more details.<br><br><hr><b>USR:</b> node<br><b>SRV:</b><br><hr><br><a href='rest/node.view/setCredential/admin/admin/false/localhost:4040/default' target='new'>/setCredential ...</a><br><br><a href='rest/node.view/register' target='new'>/register</a><br><a href='rest/node.view/unregister' target='new'>/unregister</a><br><br><a href='rest/node.view/status' target='new'>/status</a><br><a href='rest/node.view/set/1,2,3' target='new'>/set/1,2,3 ...</a><br><a href='rest/node.view/get' target='new'>/get</a><br><br><a href='rest/node.view/start' target='new'>/start</a><br><a href='rest/node.view/skip' target='new'>/skip</a><br><a href='rest/node.view/skip/0/0' target='new'>/skip/?/?</a><br><a href='rest/node.view/pause' target='new'>/pause</a><br><a href='rest/node.view/resume' target='new'>/resume</a><br><a href='rest/node.view/stop' target='new'>/stop</a><br><a href='rest/node.view/clear' target='new'>/clear</a><br></div></body></html>

Madsonic frame buttons:
Code: Select all
 <table class="indent" id="nodesTable" >
            <th colspan="8" style="padding-left:1em"></th>
            <th>Node URL</th>
            <th>Node Name</th>
            <th style="padding-left:15px">Online</th>
            <th style="padding-left:5px">Enabled</th>
            <th style="padding-left:5px">Delete</th>
                <td><input type="submit" name="open[2]" value="open" onclick="'','_blank')"/></td>
                <td><input type="button" name="start[2]" value="start" onclick="controlNode('','start')"/></td>
                <td><input type="button" name="pause[2]" value="pause" onclick="controlNode('', 'pause')"/></td>
                <td><input type="button" name="resume[2]" value="resume" onclick="controlNode('', 'resume')"/></td>
                <td><input type="button" name="skip[2]" value="skip" onclick="controlNode('', 'skip')"/></td>
                <td><input type="button" name="stop[2]" value="stop" onclick="controlNode('', 'stop')"/></td>
                <td><input type="button" name="transfer[2]" value="transfer" onclick="send2Nodes('')"/></td>
                <td><input type="button" name="config[2]" value="config" onclick="configNode('')"/></td>
                <td><input type="text" name="url[2]" size="25" value=""/></td>
                <td style="padding-right:10px"><input type="text" name="name[2]" size="20" value="NODE-"/></td>
                <td align="center" class=online><input disabled type="checkbox" checked name="online[2]" class="checkbox"/></td>
                <td align="center" class=online><input type="checkbox" checked name="enabled[2]" class="checkbox"/></td>
                <td align="center" style="padding-left:1em"><input type="checkbox" name="delete[2]" class="checkbox"/></td>
            <th colspan="8" style="padding-left:1em"></th>
            <th align="left" style="padding-top:1em">Add Node device</th>
            <td colspan="8"> </td>
            <td ><input type="text" name="url" size="25" placeholder="Node URL"/></td>
            <td><input type="text" name="name" size="20" placeholder="Node Name"/></td>
            <td align="center" class="online"><input name="online" checked type="checkbox" class="checkbox"/></td>
            <td align="center" class="online"><input name="enabled" checked type="checkbox" class="checkbox"/></td>
            <td style="padding-top:1.5em" colspan="8"></td>

Hope this helps someone.

Re: Node 6.2.9260 problems

Unread postPosted: 28 Feb 2017, 15:34
by IrishMLK
Got to work today with my node and hooked it up to the stereo in my office and was able to set the server credentials via REST. Only problem now is that the API does not allow to force registration from a remote network. It looks like it is limited to a broadcast subnet.

log detail:
Code: Select all
[2017-02-28 14:17:18] [DEBUG] [qtp33407056-16] NodeController - Set new Madsonic server credential.
[2017-02-28 14:17:18] [DEBUG] [qtp33407056-16] NodeController - Host:
[2017-02-28 14:17:18] [DEBUG] [qtp33407056-16] NodeController - Username: admin
[2017-02-28 14:17:18] [DEBUG] [qtp33407056-16] NodeController - Password: enc:pw hash
[2017-02-28 14:19:04] [DEBUG] [Thread-16] BroadcastRegister - Request packet data: REGISTER_MADSONIC_NODE_REQUEST_31302e37362e352e32393a38313831
[2017-02-28 14:19:04] [DEBUG] [Thread-16] BroadcastRegister - Request packet sent to: 10.xx.xx.xx; Interface: eth0
[2017-02-28 14:19:04] [DEBUG] [Thread-16] BroadcastRegister - Done looping over all network interfaces. Now waiting for a reply!

Will remote nodes be possible?

Side note - I am so glad I moved to Madsonic from Subsonic. It is features like the node and common-sense GUI variations that make me wish I had switched much earlier. Thanks for all your efforts!

Re: Node 6.2.9260 problems

Unread postPosted: 06 Mar 2017, 04:12
by IrishMLK
In case this will help

OS: Raspbian Jessie w\ Pixel
DESCRIPTION: Cannot register node from remote network