tvheadend api api/dvr/entry/create
Added by blade m2003 about 3 years ago
Hi there,
I'm trying to program a new recording via the api.
What's wrong with the call?
curl --data "conf={"start":1634615700,"stop":1634619300,"eventId":147038}" "http://user:[email protected]:9981/api/dvr/entry/create"
I get the error "400 Bad Request"
Replies (4)
RE: tvheadend api api/dvr/entry/create - Added by Dave Pickles about 3 years ago
You will need to supply more information for that function, definitely the channel UUID or channel name and possibly the title (though I can't see in the code where that would be needed).
Alternatively use api/dvr/entry/create_by_event, specifying the config_uuid (recording configuration) and event_id.
RE: tvheadend api api/dvr/entry/create - Added by blade m2003 about 3 years ago
i added title and uuid but i get the same error.
api/dvr/entry/create_by_event works.
RE: tvheadend api api/dvr/entry/create - Added by Hiro Protagonist about 3 years ago
Have you tried the examples here: https://github.com/dave-p/TVH-API-docs/wiki/Dvr
RE: tvheadend api api/dvr/entry/create - Added by paul griffiths about 3 years ago
Here is a simple script to set a timer with a channel name and start and end times
You will need the tvheadend profile name prior to setting the timer (where the recording is to be saved)
simpletimer.sh (719 Bytes) simpletimer.sh |