Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
analogrecorder.check ================ This python script is designed to run in the NextPVR ParallelProcessing.bat file. It checks to see if the file created is a non-zero length, and if it isn't then triggers an external function. In my case it triggers a servo to turn on the cable box from which the analog recorder is digitizing. Prerequisites: 1. You need to have python 2.7.x installed on your system (3.4.x might work, but I haven't tested it). <https://www.python.org/downloads/> Configuration: ---Script settings: In the data directory, rename settings-example.py to settings.py. Usage: The best thing to do is add the following line to you ParallelProcessing.bat file in the NPVR Scripts directory: "C:\Python27\python.exe" "C:\CustomApps\analogrecorder.check\execute.py" %1 %2 Please change the python call to match the location of your python install. Note that even if you have python in the system path, calling the script with just "python" doesn't seem to work. You can call the script directly from the command prompt, you just have to pass the filename (with the complete path) in manually.