Just a simple shell script that I scheduled to run at 2pm every Sunday which scheduled manual recordings for the week on Monday-Friday at 2pm.
I modified that for others I used that ran every hour for 2 days, every week on certain days and times, etc.
#!/bin/sh
# Create 60 minute manual recording on channel 3777 with the Title 'Shepherds Chapel' starting in 24 hours and repeating at the same time every day for 5 days
# No longer using - found EPG source
_CH=3777
_START=$(($(date +%s) + 86400))
_DUR=3600
_TITLE="Shepherds Chapel"
_DESC="Shepherds Chapel 2PM weekday recording"
for _DAYNUMBER in 1 2 3 4 5
do
scheduled_job() {
cat << EOF
{
"Name": "${_TITLE}",
"Time": ${_START},
"Duration": ${_DUR},
"Channels": ["${_CH}"],
"Airing": {
"Source": "manual",
"Channel": "${_CH}",
"Time": ${_START},
"Duration": ${_DUR},
"Title": "${_TITLE}",
"Summary": "${_DESC} ${_DAYNUMBER}",
"Image": "http://192.168.1.4:8189/dvr/uploads/3/content",
"SeriesID": "manual/3777"
}
}
EOF
}
curl -XPOST http://192.168.1.4:8189/dvr/jobs/new --data-binary "$(scheduled_job)"
# increment _START value by a day
_START=$(($_START + 86400))
done
To give credit, I borrowed this script from racameron and modified it.