NextPVR Forums

Full Version: connect PCH to 2nd PVRX2 server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Martin,

I have two recording PCs. I have successfully got PCH to connect to them individually after reboot the PCH. I have tried to modify script.cgi to unmount /etc/mvpmc then follow with the mount but that was not successful. Is there any way I can't modify the script.cgi so that I can alternate the PCH to connect between the 2 PCs?

Thanks.

Dan L.
The server is found using a UDP broadcast, so you'll end up going to whatever machine's server responds quicker.

I think mvpmc allowed you to specify a command line option telling it which server ip address to use. I'm not sure if martin has implemented a similar thing in mvpmcx2?
First, I would place the mvpmc share on an always-on share so you don't have to worry about the unmounting.

Then I would add a third entry in telnet.html pointing to gbpvr1.cgi, and create gbpvr1.cgi pointing to startmemup1. In each startmeup add the ip of the GPBVR server you want to talk to on the command line with --emulate xx.xx.xx.xx

Martin
Well this was way WAY easier than I thought it was going to be Smile

I am a bit of a dummy when it comes to modifying NMT stuff so thought I would post a quick dummies guide from what I found out Wink
Attached is my modified files for anyone else who is looking for this feature with a quick explanation of what I have done.

NOTE when editing these files DO NOT use notepad, use an editor which will saves the file in a linux compatible format.
I use EditPad Lite you can get it from here http://www.editpadpro.com/editpadlite.html

What I did:

Modified "GB-PVR.html" to add another selectable option that loads "gbpvr1.cgi" instead of "gbpvr.cgi" (you can edit the displayed name to whatever suits you).

<a href="http://localhost.drives:8883/NETWORK_SHARE/PVR-SERVER:mvpmc/gbpvr.cgi">GB-PVR (Main Server)</a>
<BR>
<BR>
<a href="http://localhost.drives:8883/NETWORK_SHARE/PVR-SERVER:mvpmc/gbpvr1.cgi">GB-PVR (Second Server)</a>


Made a copy of "gbpvr.cgi" with the name "gbpvr1.cgi" & edited it so it loads "startmeup1" instead of "startmeup"

sh -c /etc/mvpmc/startmeup1 2>/dev/null >/dev/null &

Edited "startmeup" to add "--emulate 192.168.0.150" to the mvpmcx2 command (this is the network address of my main GB-PVR server you will need to edit it to yours)

#/etc/mvpmc/mvpmcx2 --emulate 192.168.0.150 &

Made a copy of "startmeup" with the name "startmeup1" & changed "--emulate 192.168.0.150" to "--emulate 192.168.0.160" (this is the network address of my second GB-PVR server you will need to edit it to yours)

in config on my second server under the "MVP & NMT" tab told it to autostart a server & that was it working.