Page 1 of 1

my nightly tv recorder script

Posted: Tue Jan 31, 2023 9:06 pm
by boof

this is my attempt, it doesn't kill the ssr process at end.
i don't have a list of parameters to pass to
start recording, save the file to disc and exit the ssr,
so i made it partially manual.
i have 8GB RAM so i expect at least 6hrs recording in memory, which is enough

#!/bin/sh
# Test if in timeframe
repeat:
if (19:20<(date +%H:$M)<23:05);
#y=start chrome and ssr, manually set record
(Google* , simplescreenrecorder

#at end of time, save file or wait if not end
if (2300<(date +%H:$M));
(cp /mnt/sda4/*.mkv /mntsda4/Watch/*.mkv) (sleep 15 );
(repeat);
fi );

#turn off smallscreenrecoder and wait for next session
(killall 22994[?] , sleep 5 ,repeat);
fi


Re: my nightly tv recorder script

Posted: Tue Jan 31, 2023 10:50 pm
by wizard

You may want to consider this newer version of SimpleScreenRecorder that now has a scheduler.
https://forum.puppylinux.com/viewtopic.php?t=7915

wizard


Re: my nightly tv recorder script

Posted: Wed Feb 01, 2023 10:57 am
by boof

tks, needed that


Re: my nightly tv recorder script

Posted: Wed Feb 01, 2023 5:37 pm
by boof

fixed


Re: my nightly tv recorder script

Posted: Thu Feb 02, 2023 12:40 am
by Clarity

Hi @boof

Question
'Fixed' Using @wizard's recommendation or something else? (Screenshot, maybe.)


Re: my nightly tv recorder script --fixed

Posted: Sat Feb 04, 2023 4:57 am
by boof

finished setting up what i thought should work, hdmi0, volumes, equalizer, testing in equalizer wrked, saved, rebooted and presto- sound on tv.