INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Add ability to use Key parameter with MCC_TV_RECORD  (Read 3490 times)

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1598
Add ability to use Key parameter with MCC_TV_RECORD
« on: May 18, 2017, 05:33:08 am »

In my quest to be able to schedule TV recording from a web interface, I'm currently at the following stage -

Create a smartlist with all programs in TV Guide. Done.
Set up cron to download contents of said smartlist to xml file. Done.
Parse Date / Time from filename. Done.
Parse XML data to PHP page / HTML table. Done.

Ideally, what I'm picturing is a link (button or otherwise) that captures the file key (variable) for the program and sends it to MC, which then updates the database to reflect recording scheduled.

My (admittedly simplistic) mind sees this happening via the MCC_TV_RECORD core command, using the program key as the parameter (which is currently ignored). So a button with a link to

http://192.168.2.101:52199/MCWS/v1/Control/MCC?Command=28017&Parameter=[key]

would schedule a recording, as opposed to

http://192.168.2.101:52199/MCWS/v1/Control/MCC?Command=28017

recording immediately.

This would probably also necessitate the need for a MCC_TV_CANXREC command to cancel said recording.

Any chance of this happening?  ;D
Pages: [1]   Go Up