Project

General

Profile

Schedule weekly recording without epg?

Added by Daramora Kaminari over 7 years ago

Hi, I'm using tvheadend v3.2 on ubuntu 12.04 with tbs6984.
Everything is working fine for viewing channels.
But my question is: Is it possible to schedule recordings on weekly basis based on time and date not on epg.
I mean I want to be able to record some programs which I know its timing but the channels on the satellite I'm receiving (Arabsat Badr 4,5,6) does not have epg.
Btw, I'm using a dual lnb (one lnb with two output) and connected both output to my tbs6984 but one frontend receive channels other can't does anyone knows why?
Thank You,
Daramora


Replies (15)

RE: Schedule weekly recording without epg? - Added by Adam Sutton over 7 years ago

It sort of is, you can use the autorec stuff to select a channel and approx recording time. However its not very intuitive or that controllable. I have plans to improve this, but just haven't been able to find the time.

Adam

RE: Schedule weekly recording without epg? - Added by Daramora Kaminari over 7 years ago

The autorec is not working for me so I'm thinking to write a script that can create recording time for me in the recording schedule instead of creating one by one. At first I thought of creating a custom xmltv (to create my own) since I roughly know the program timing but I got confused and lost so I changed the idea to creating a script. So if anyone knows how to do any of these two methods I would really appreciate the help.

RE: Schedule weekly recording without epg? - Added by Daramora Kaminari over 7 years ago

I tried to copy one of the file in /home/hts/.hts/tvheadend/dvr/log rename it to the greatest number available + 1. Then I changed the time and date of recording (unix time). But it does not record anything and it does not show up in the webui. So I really need some help.

RE: Schedule weekly recording without epg? - Added by Geo Goz over 7 years ago

I'm interested too..

How we can can make ?

RE: Schedule weekly recording without epg? - Added by Daramora Kaminari over 7 years ago

Hi, I somehow solved the problem. It is not a great solution but it will do.
I used the htsp library provided with tvheadend at lib/py/tvh

Use the attached tvh.tar.gz

you need python to run the script

/path/to/create_dvr.py channelName/ID Title StartTime StopTime weekDays

channelName/ID : channel Name or its Id
Title : Title of the recording
StartTime : Start Time in 24:00
StopTime : Start Time in 24:00

Weekdays :
U Sunday
M Monday
T Tuesday
W Wednesday
R Thursday
F Friday
S Saturday

example:
./create_dvr.py "Al Majd Scientific Channel" Otrooja 14:00 14:30 UMTWRS
or
./create_dvr.py 387 Otrooja 14:00 14:30 UMTWRS

ToDo:
Modify create_dvr.py:
change user to any tvheadend user
keep passwd empty otherwise it will create an error when adding a dvr
Change/add channel names in getChannelId and their id.

To make weekly schedule modify weekly_schedule to include all the dvr for the week
To make it automatically added to tvheadend you can use cronjob with weekly_schedule

There is a bug in the htsp python library when trying to use a password with add dvr,
so you need to create any empty user * for the script to run normally but for security,
make the prefix for the * user 127.0.0.1/32 and/or your pc Ip address/32.

RE: Schedule weekly recording without epg? - Added by Geo Goz over 7 years ago

Thanks

It works fine !

RE: Schedule weekly recording without epg? - Added by Ta Toosh over 7 years ago

Is there a better solution or how to add this feature to the web interface?

RE: Schedule weekly recording without epg? - Added by Quentin D. over 6 years ago

Thank you for your script Daramora! It really helped me. However it works fine in the 3.4 but not in the 3.9 version.
It looks like they use a different channel identification...
Anyone has an idea to get it work?

RE: Schedule weekly recording without epg? - Added by Daramora Kaminari over 6 years ago

You're welcome. I'm still using 3.4 so I can't help you with 3.9.
But I made some changes to the old script and now it works fine with passwords but it's not completed yet so it is not user friendly.
Feel free to try it and hopefully it will work since it's using the newest htsp (v10 as far as I know).
Here are the instruction on how to use it:

For first time use:
-create a user for recording (Web interface and admin options are not necessary)
-execute ./config.py and follow the instructions.
-execute ./tvh_helper/channels.py -r
(this will generate a list of all available channels with their id, it can help to make sure every thing is working fine)

For regular use:

-edit dvr.lst or create a new file but it has to follow the following format:
"Channel name" "program name" start-time-24h stop-time-24h day(s) priority [dvr-config]

"channel name" : same as tvheadend if in doubt consult the channels.lst generated file.

for the day(s) you can use single or several days:
Weekdays :
U Sunday
M Monday
T Tuesday
W Wednesday
R Thursday
F Friday
S Saturday
O Today

Note: if today is Saturday and you want to record today use O since S will be next Saturday

priority:
important
high
normal
low
unimportant

[dvr-config] : the name of the dvr config name you can see on tvheadend or leave empty to use the default configuration set in tvheadend

To run use (the same for cronjob):
path-to/dvr.py file path-to/dvr.lst

tvh.tar.gz (15 KB) tvh.tar.gz v2

RE: Schedule weekly recording without epg? - Added by Quentin D. over 6 years ago

Hi,
I tested your script under a 3.4 and 3.9 version, both works!
You've done a great job, it should be implemented in TVHeadEnd.

I come from DVBViewer, I switch to TvHeadend for some weeks and if it's stable i can consider a donation to you and the TvHeadend project!

RE: Schedule weekly recording without epg? - Added by Quentin D. over 6 years ago

Just a little thing, the "priority" arg does not seems to work ;)

RE: Schedule weekly recording without epg? - Added by K Shea about 6 years ago

This (the ability to do daily/weekly scheduling, not this script) was added in the latest unstable build - see http://tvheadend.org/issues/2258#change-10196

RE: Schedule weekly recording without epg? - Added by Quentin D. about 6 years ago

Fantastic, i was waiting for this feature!
It just appears with the latest update, i'm gonna test it!

RE: Schedule weekly recording without epg? - Added by Quentin D. almost 6 years ago

Hmm... I tested this new feature this weekend and it doesn't seems to work.
The first try worked, when I created an event 10min before starting. Then I created another repeated every monday (created friday 19/09) and nothing happened.

By the way, why recordings are in different tabs? Shouldn't be better to merge them?
Thanks

RE: Schedule weekly recording without epg? - Added by A Blarb almost 2 years ago

Is something like this now possible with version 4.2, without hacking scripts?

I see that it is said to be implemented in 3.9 but there is no description of how to do it and whether it actually works.

    (1-15/15)