MLDirecTVIP

From Cinemar Wiki
Jump to: navigation, search

About

The MLDirecTVIP Plugin is used to control an unlimited number of DirecTV set top boxes via their public web interfaces.

Requirements

You must be running the latest version of MLServer and Mainlobby clients. You must allow access to external devices on your DirecTV set top boxes.

  1. Enter the set up menu
  2. Select whole-home
  3. Then External Device
  4. Change all settings including CURRENT PROGRAM from the default of "Block" to "Allow"

You must do this even if you do not subscribe to DirecTV's whole home service.

Installation

MLDirecTVIP.dll

Plugin to control DirecTV set top boxes.

With MLServer shutdown, run the MLDirecTVIP_Plugin_Setup.exe. This will install the MLDirecTVIP plugin to the MLServer Plugins directory. It is recommended to accept all installation defaults including the installation of the sample Cyclestates.

Configuration

Open the plugin and add your networked DirecTV boxes. You will need to enter the IP Address and Port number for each connected box. Once running the plugin will query each box every 30 seconds to get the Now Playing information and it will refresh its cache of recoded DVR shows every 15 minutes.


DirecTV-Setup.png


Sample User Interface

The first image shows the new remote control example. Everything is user customizable. The default browsing scenes will display 4 recorded shows per page. You can change this in the startup macro for the scene. The sample scenes are available from MLInstaller and will install into the Cinemar\Content\1024x768\DirecTV folder.


DirecTV-Remote.png


Next is an example of the Now Playing scene.


DirecTV-NowPlaying.png


The last sample scene is the DVR recorded shows browser


DirecTV-DVRShows.png

MLServeCmds

BrowseDVR

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~BrowseDVR~cmd

Parameters
Alias = The ID or Alias of the selected DVR
Cmd = The direction to browse [First,Last,Prev,Next]

(Literal)
MLDirecTV|DTV1~Browse~Next

Description

Browse to the specified page of recorded shows


PlayShow

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~PlayShow~UniqueShowID

Parameters
Alias = The ID or Alias of the selected DVR
UniqueShowID = The unique show ID from the playlist server variables

(Literal)
MLDirecTVIP|DTV1~PlayShow~124388294281

Description

Starts playback of the specified recorded show


SetChannel

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~SetChannel~ChannelNumber

Parameters
Alias = The ID or Alias of the selected DVR
ChannelNumber = The channel number to tune to

(Literal)
MLDirecTVIP|DTV1~SetChannel~206

Description

Tune to the specified channel


Power

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Power~State

Parameters
Alias = The ID or Alias of the selected DVR
State = Optional (On, Off) if left blank power will toggle

(Literal)
MLDirecTVIP|DTV1~Power

Description

Turn the box On or Off


Format

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Format

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Format

Description

Remote control: Format


Pause

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Pause

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Pause

Description

Remote control: Pause


Rewind

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Rewind

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Rewind

Description

Remote control: Rewind


Replay

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Replay

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Replay

Description

Remote control: Replay


Stop

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Stop

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Stop

Description

Remote control: Stop


Advance

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Advance

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Advance

Description

Remote control: Advance


FastForward

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~FastForward

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~FastForward

Description

Remote control: FastForward


Record

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Record

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Record

Description

Remote control: Record


Play

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Play

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Play

Description

Remote control: Play


Guide

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Guide

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Guide

Description

Remote control: Guide


Active

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Active

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Active

Description

Remote control: Active


List

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~List

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~List

Description

Remote control: List


Exit

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Exit

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Exit

Description

Remote control: Exit


Back

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Back

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Back

Description

Remote control: Back


Menu

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Menu

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Menu

Description

Remote control: Menu


Info

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Info

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Info

Description

Remote control: Info


Up

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Up

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Up

Description

Remote control: Up


Down

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Down

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Down

Description

Remote control: Down


Left

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Left

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Left

Description

Remote control: Left


Right

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Right

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Right

Description

Remote control: Right


Select

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Select

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Select

Description

Remote control: Select


Red

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Red

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Red

Description

Remote control: Red


Green

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Green

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Green

Description

Remote control: Green


Yellow

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Yellow

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Yellow

Description

Remote control: Yellow


Blue

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Blue

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Blue

Description

Remote control: Blue


ChannelUp

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~ChannelUp

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~ChannelUp

Description

Remote control: ChannelUp


ChannelDown

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~ChannelDown

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~ChannelDown

Description

Remote control: ChannelDown


Previous

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Previous

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Previous

Description

Remote control: Previous


0

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~0

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~0

Description

Remote control: 0


1

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~1

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~1

Description

Remote control: 1


2

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~2

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~2

Description

Remote control: 2


3

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~3

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~3

Description

Remote control: 3


4

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~4

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~4

Description

Remote control: 4


5

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~5

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~5

Description

Remote control: 5


6

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~6

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~6

Description

Remote control: 6


7

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~7

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~7

Description

Remote control: 7


8

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~8

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~8

Description

Remote control: 8


9

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~9

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~9

Description

Remote control: 9


Dash

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Dash

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Dash

Description

Remote control: Dash


Enter

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Enter

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Enter

Description

Remote control: Enter


Reboot

{MLServeCmd}Script Usage

MLDirecTVIP|Alias~Reboot

Parameters
Alias = The ID or Alias of the selected DVR

(Literal)
MLDirecTVIP|DTV1~Reboot

Description

Reboots the selected DTV. Must NOT have an active serial connection.


MLServer Variables

MLDirecTVIP Server Variables

  • This plugin will generate server variables all beginning with the prefix DIRECTV_



  • DirecTV_<<id>>_Channel