NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMCX2 and other NMT stuff v
« Previous 1 … 6 7 8 9 10 … 37 Next »
How to run npvr.cgi and startmeup from a linux box

 
  • 0 Vote(s) - 0 Average
How to run npvr.cgi and startmeup from a linux box
StevHodge
Offline

Member

Posts: 179
Threads: 37
Joined: Apr 2006
#1
2011-01-04, 03:16 PM
Why would you want to do this i hear you ask?
Reason is that I let my NPVR machine go to sleep when not in use for a while
Obviously mvpmcx2 and the rest won't run if the NPVR box isn't up
So it struck me that I could run NPVR.cgi from my linux machine which is always up, and patch in a loop to the cgi which would check whether the NPVR box is up and if not send a wake-up-on-lan message, then wait a few seconds before proceeding
I got it to run npvr.html from the linux box (set up a new share), but the cgi script which the html calls doesn't seem to work.
It still works fine if I run it from the NPVR box.
Is this mission impossible???
Steve Hodge
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,106
Threads: 957
Joined: May 2006
#2
2011-01-04, 10:41 PM
Yes, that works, in fact that is how I have mine setup, the share doesn't even need to be called mvpmc Just make sure the IP in the npvr.cgi and the name in N-PVR.html after /NETWORK_SHARE/ are for to the linux box.

You don't need to create to script, in startmeup just add the command line option
--em-wolwt ## to increase to the wait time for your server to ## seconds. The default without this is 30 seconds.

Martin
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#3
2011-01-05, 12:39 PM
Indeed - that wolwt made the whole experience for me much better for servers that go to sleep.
At one time I was running the initial scripts from an IP security camera that was always on !!
I have a local drive in the NMT now which solved that problem though.
StevHodge
Offline

Member

Posts: 179
Threads: 37
Joined: Apr 2006
#4
2011-01-05, 12:56 PM
Thanks Martin, works fine now if I don't start the NMTs from cold. Can't get them to load mvpmcx2 from cold though; they don't seem to want to mount the mvpmc directory from the linux server. Something to do with my linux box I expect, permissions probably, but I fiddle with linux so rarely that i get rusty and it has got me beat for the moment. Am I right that there is no telnet capability in the NMT until you get all your stuff loaded? I was trying to see what was wrong with telnet, but it would not connect until I loaded mvpmcx2 and the rest in the original way

Steve
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,106
Threads: 957
Joined: May 2006
#5
2011-01-05, 01:17 PM
Did you try using the IP and not SMB name in the NMT URL field?

And yes the script installs the telnet server, it is not part of the NMT firmware.

Martin
StevHodge
Offline

Member

Posts: 179
Threads: 37
Joined: Apr 2006
#6
2011-01-07, 11:09 PM
Thanks Martin

It was passwords and permissions (as usual). The share would not mount without a username and password, all working now anyway

Comment: this WOL trick seems like magic to me. How does the program know the right MAC address even when started from cold, so that mvpmxc2 has to be reloaded. I can see how it might remember the MAC address between warm boots, but it seems to be able to do it starting from cold too!. Has to be magic!!!!

Steve
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,106
Threads: 957
Joined: May 2006
#7
2011-01-07, 11:14 PM
You will have to add the ether-wake program to the sahre and then manually add the MAC address to the command line in the NPVR.cgi script.

Martin
Paul_B
Offline

Member

Posts: 79
Threads: 22
Joined: May 2008
#8
2011-01-08, 09:41 AM
Bit off-topic but my setup is similar in using a WoL packet to wake-up the NPVR server. I've got a home automation setup so my PCH remote is used to send an IR signal based on the green button. The TV powers on from the wall as does the PCH, the HA server is a small mini-itx machine that runs 24x7 (consumes <40W) and also sends a WoL packet from a PowerShell script to the NPVR server. The NPVR server is a bit of a beast as it is a quad-core CPU with 5 drives and consumes 120W at idle. After I've finished watching the film / TV I hit the red button on the PCH. The IR signal is fed to the HA server which reverses the procedure, wall socket for the TV turns off, PCH wall socket turns off, HA server sends a shutdown command to the NPVR server. It all works very well for me.

Paul
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  can't play m4v files on NMT through NPVR steveum 5 14,728 2014-09-19, 11:38 PM
Last Post: mvallevand
  rolled out NPVR and PCH in the house, One issue ricksuper67 2 4,904 2013-12-09, 12:58 PM
Last Post: ricksuper67
  Cannot get HDHomerun Prime Live Tv to nmt through npvr txinga 4 3,305 2013-04-15, 10:48 PM
Last Post: mvallevand
  Martin/All Is it technically possible for NPVR/MVP to ever play Copy Once Recordings jt25741 4 4,440 2012-12-19, 06:46 PM
Last Post: jt25741
  PCH A100 - "Could not Play" AVI via nPVR psycik 14 7,380 2012-04-14, 01:42 AM
Last Post: psycik
  NMT/NPVR Weirdness baj1 8 4,557 2012-02-10, 12:54 PM
Last Post: mvallevand
  Operate NPVR with keyboard on NMT eurojojo 16 12,357 2012-02-03, 11:15 PM
Last Post: eurojojo
  Another DVD ISO problem in NPVR arkennedy75 20 8,129 2012-01-30, 02:12 AM
Last Post: mvallevand
  DVD ISO playback with NPVR? drbenjamin 18 7,038 2012-01-24, 12:48 PM
Last Post: mvallevand
  More than one server - one NPVR and one GBPVR? baj1 4 2,581 2012-01-17, 06:49 PM
Last Post: martint123

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode