![Crestron CP4-R Product Manual Download Page 244](http://html.mh-extra.com/html/crestron/cp4-r/cp4-r_product-manual_2683661244.webp)
238
•
Crestron Pyng OS 2 for CP4-R
Product Manual – DOC. 8432A
Appendix F: Create and Upload a Custom
Television Provider
When a third-party cable box device is added to the Crestron Pyng system, the system
prompts the user to select a television provider from the available options. After a
television provider is selected, the appropriate channel names and icons are made
available to the media controls for the cable box.
However, the Crestron Pyng system does not provide native support for all television
providers in all regions. As a workaround, a custom television provider file must be
created and uploaded to the Crestron Pyng system. The television provider file obtains
the channel names and icons from files that are hosted on an external web server.
Use the following procedures to create and upload a custom television provider into the
Crestron Pyng system.
Create a Channel JSON File
The television provider file obtains channel data from an externally hosted JSON file. To
create a custom channel JSON file:
1.
Open a text editor or code editing program.
2.
Create the channel list file schema as shown below. The value for the
lastUpdated
parameter should be set to the current date (for example,
"071618").
{
"lastUpdated": "Date",
"data": [
]
}
3.
For each channel, create a child object within the
data
array that contains the
following parameters. Refer to the example on the following page.
•
name: The channel name (string)
•
channel: The channel number (string)
•
index: An index identifier that increments for each successive channel in the
JSON file (integer)
•
id: The unique ID of the channel (string)
•
imageId: The unique ID of the channel icon PNG image file, which is uploaded
along with the provider file (string)