[[Image(mythtv.png,align=center,50%)]] == Introduction == The MythTV media plugin is a [http://wiki.micasaverde.com/index.php/Luup_Plugins Luup component] that permits the Remote Control of MythTV Frontends (version 0.25 or later). == How does it work == This Plug-in is able to control a MythTV Frontend using the [http://www.mythtv.org/wiki/Services_API MythTV services API]. Once connected, and configured, the plug-in sends HTTP commands to the receiver. If polling is enabled, it will also update and display the presently displayed media information in the dashboard. Most remote commands are currently supported and its best used in conjunction with SQRemote to provide a more seamless experience. The plug-in contains a list of commands and maps them to "well known" Actions within Vera's Media Automation Services. == Notes == * For installation of the plug-in, it is not recommended to use Internet Explorer, or change the naming convention of the files in any way. * During Plug-in creation, the exact files must be used; this includes keeping the case sensitivity. * The IP address *must* also include the port number. The default MythTV Frontend services API port is 6547. == Installation == 1. Download the following files from source control: [http://code.mios.com/trac/mios_mythtv/export/3/D_MythTVFrontend1.json D_MythTVFrontend1.json] [http://code.mios.com/trac/mios_mythtv/export/3/D_MythTVFrontend1.xml D_MythTVFrontend1.xml] [http://code.mios.com/trac/mios_mythtv/export/3/I_MythTVFrontend1.xml I_MythTVFrontend1.xml] [http://code.mios.com/trac/mios_mythtv/export/3/json.lua json.lua] 2. Goto ''Apps'' --> ''Develop Apps'' --> ''Luup files'' 3. Upload the files you downloaded at step 1. 4. Uncheck the checkbox "''[] Restart Luup after upload''" if it's checked and click '''(Go)''' 5. If successful, you'll see the files listed in the file list (using the exact names listed above). 6. Navigate to ''Create device''. 7. Type "`D_MythTVFrontend1.xml`" in the ''UPnP Device Filename'' field, type in a name of your choice in the ''Description'' field, enter in the ip address (with port number) in the ''Ip Address'' field, and then then click '''(Create device)''' 8. Reload Luup and refresh the UI to get the device to be displayed correctly. '''NOTE''': If you installed the plugin from the MiOS Marketplace skip the above steps. You only have to set the IP address and port in the device's control panel, in the ''Advanced'' tab, in the ''ip'' field, then Save. If everything works correctly, then the current media information will be displayed. Once the device is responding properly, polling can be disabled or the frequency adjusted from the ''Advanced'' tab. The default polling frequency is every 60 seconds. == Testing == This Device is exposed through MiOS Control Points that expose the Media Control interfaces (like [http://squareconnect.com SQ Remote]). You can then Assign these Actions to the Buttons of the Control Point. You can also test the commands using the lu_invoke web interface. Browse to {{{http://:3480/data_request?id=lu_invoke}}}, select the "MythTV Frontend" device, and click on any link to run that command. Note that only commands listed with a * are currently supported. The commands will perform different functions depending on how your mythtv instance is configured. Browse to {{{http://:6547/Frontend/GetActionList}}} to get a list of your supported actions and what they do. == Errors == == Releases == == Discussion == == References == * [http://www.mythtv.org/wiki/Services_API Services API]