wmc-stop Script to automatically stop a WMC Live Tuner when a recording is completed if using a typical capture device that is NOT controlled by OpenDCT. SageTV does not have a way to send the STOP command to WMC at the end of the recording This script has been tested with the Unraid SageTV docker. It should also run under Linux. I don't think it will run under Windows even with Windows ports of "tail" and "grep". Dependencies: -SageAlert (to invoke the script when recording is stopped) -Your WMC system's IP address -Your WMC Live Tuner must have a unique name to search for How it works: SageAlert stores more information in the log file than it offers in messages, so this script takes advantage of that. When a recording is stopped, the script is run by SageAlert and it uses "tail" to save the last 5 lines of the SageAlert log file to a temp file. Then it uses "grep" to search first for the TUNER, then for the "stopped" keyword. If both are found then it runs the command to send the STOP command. You just need to set your IP address in this command: wget -q "http://192.168.1.55:40510/stop" > /dev/null 2>&1 1. Copy this script into your desired folder. I go ahead and put it in /opt/sagetv/server/plugins/sagealert 2. Install SageAlert plugin if not already installed, then go to SA webpage 3. Create a Process Executor and put in the relative path to this script such as plugins/sagealert/wmc-stop 4. Set the script to run for Recording Stopped events 5. Edit this script and set your unique tuner name (such as "Siena Video Capture #2") 6. Edit the IP address of your WMC system 7. Make the script executable: chmod 777 wmc-stop