# 创建节目
# URL: /wp-json/wp/v2/programs
# HTTP请求方式: POST
# 授权角色:'administrator', 'manager', 'editor', 'operator', 'contributor'
# 支持格式: json
# 描述:创建节目
# 节目参数详解:
也可参考:vsn节目文件说明文档(JSON) (opens new window)
# 请求参数结构
新建节目请求参数如下所示:
{
// 节目名
"title": "ProgramName",
// 节目状态,固定值
"status": "publish",
// 节目信息,用于云平台前端展示。可设置为{}
"program_info": {},
// 节目信息,用于生成节目VSN文件。
"Programs": {}
}
# Programs属性详解
结构如下所示:

{
"Programs": {
"Program": {
// 节目属性
"Information": {
"Width": 512,
"Height": 512,
"Scale": 1
},
// 节目页
"Pages": [
{
// 节目页属性
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
// 区域
"Regions": [
{
// 节目区域属性
"type": 3,
"Layer": 1,
"Name": "Single-Line_Text_Window",
"Rect": {
"X": 0,
"Y": 0,
"Width": 512,
"Height": 512,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
// 素材
"Items": [
{
//
}
]
}
]
}
]
}
}
}
# 节目属性
| 属性 | 描述 | 示例值 |
|---|---|---|
| Information | 节目属性信息 | {} |
| Information.Width | 节目宽度 | 512 |
| Information.Height | 节目高度 | 512 |
# 节目页属性
| 属性 | 描述 | 示例值 |
|---|---|---|
| AppointDuration | 节目页播放时长(毫秒) | 3600000 |
| LoopType | 循环类型(0:播放指定时长 1:自动计算时长) | 1 |
| BgColor | 节目页背景颜色 | "0xFF000000" |
# 节目区域属性
| 属性 | 描述 | 示例值 |
|---|---|---|
| Layer | 区域1显示层次(1为顶层,各区域依次向下罗列显示) | 1 |
| Rect | 区域位置和宽高 | {} |
| Rect.X | 起点坐标X | 0 |
| Rect.Y | 起点坐标Y | 0 |
| Rect.Width | 区域宽 | 500 |
| Rect.Height | 区域高 | 500 |
| Rect.BorderWidth | 是否有边框,0表示无边框,1-4为不同的边框类型 | 0 |
| Rect.BorderColor | 边框颜色 | "#ffff00" |
# 节目素材类型
(Items中的内容)
请求示例中的参数,如无详细解释,可保持示例中的值即可。
常用字体名称以及对应关系
| 字体名称 | 对应值 |
|---|---|
| 黑体 | SimHei |
| 楷体 | KaiTi |
| 宋体 | SimSun |
| 隶书 | LiSu |
| 仿宋 | FangSong |
| Times New Roman | Times New Roman |
| Arial | Arial |
| Calibri | Calibri |
# 文本节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 节目类型,单行文本:4;多行文本:5;单列文本:16 | 5 |
| TextColor | 字体颜色 | "0xFFffffff" |
| CenteralAlign | 水平对齐,0表示左对齐,1表示居中,2表示右对齐 | 1 |
| VerticalAlign | 是否垂直居中(0:否;1:是) | 1 |
| Text | 文字内容 | "文本内容" |
| IsScroll | 是否连续左移(0:否;1:是) | 0 |
| Speed | 每秒滚动的像素数, 范围:0-200.000000的浮点数 | 0 |
| IsScrollByTime | 0-use RepeatCount, 1-use PlayLenth | 0 |
| IsHeadConnectTail | 是否首尾相连,(0:否;1:是) | 0 |
| RepeatCount | 滚动次数 | 0 |
| PlayLength、Duration | 都表示播放时长(毫秒), 无区别 | 9000 |
| LogFont | 字体 | {} |
| LogFont.lfHeight | 逻辑单位的字符或者字符元高度 | 50 |
| LogFont.lfWeight | 0-1000,0为默认宽度, 700为加粗字体 | 400 |
| LogFont.lfItalic | 是否使用斜体(0:否;1:是) | 0 |
| LogFont.lfUnderline | 是否添加下划线(0:否;1:是) | 0 |
| LogFont.lfStrikeOut | 是否添加删除线(0:否;1:是) | 0 |
| LogFont.lfFaceName | 字体名称 | "default" |
# 单行文本节目请求参数示例:
{
"title": "ProgramSingle-Line",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 3,
"Rect": {
"X": 0,
"Y": 0,
"Width": 512,
"Height": 512,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Items": [
{
"Type": 4,
"BackColor": "#000000",
"Duration": 8000,
"TextColor": "#ffffff",
"MultiPicInfo": {
"OnePicDuration": 8000,
"PicCount": 1
},
"LogFont": {
"lfHeight": 30,
"lfWidth": 0,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderLine": 0,
"lfPitchAndFamily": 0,
"lfFaceName": "SimHei",
"IfLeft": 0,
"IfRight": 0,
"IfCenter": 1
},
"CenteralAlign": 1,
"VerticalAlign": 1,
"Text": "single line text",
"IsScroll": 0,
"Speed": 60,
"IsHeadConnectTail": 0,
"RepeatCount": 1,
"IsScrollByTime": 1,
"PlayLenth": 300000,
"PlayLength": 8000
}
],
"Layer": 1,
"Name": "Single-Line_Text_Window"
}
]
}
]
}
}
}
# 多行文本节目请求参数示例:
{
"title": "programMultiLineText",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 1024,
"Height": 1024,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 2,
"Rect": {
"X": 0,
"Y": 0,
"Width": 500,
"Height": 500,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Items": [
{
"Type": 5,
"BackColor": "#000000",
"Duration": 8000,
"TextColor": "#ff0000",
"MultiPicInfo": {
"OnePicDuration": 8000,
"PicCount": 1
},
"LogFont": {
"lfHeight": 30,
"lfWidth": 0,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderLine": 0,
"lfPitchAndFamily": 0,
"lfFaceName": "default",
"IfLeft": 0,
"IfRight": 0,
"IfCenter": 1
},
"CenteralAlign": 1,
"VerticalAlign": 1,
"Text": "multiLineText",
"IsScroll": 1,
"Speed": 60,
"IsHeadConnectTail": 0,
"RepeatCount": 1,
"IsScrollByTime": 1,
"PlayLenth": 300000,
"PlayLength": 8000
}
],
"Layer": 1,
"Name": "Multi-Line_Text_Window"
}
]
}
]
}
}
}
# 图片节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 节目类型,图片节目:2 | 2 |
| ReserveAS | 是否保持高度比(0:否;1:是) | 1 |
| Duration | 播放时长(毫秒),包括了特效时间 | 8500 |
| FileSource | 文件源 | {} |
| FileSource.IsRelative | 是否为相对路径(0:否;1:是) 必须为1 | 1 |
| FileSource.Resource_ID | 素材ID | 123 |
| FileSource.OriginName | 素材原始名 | "图片9.png" |
| effect | 特效 | {} |
| effect.IsStatic | 无意义 | 0 |
| effect.StayType | 停留类型 0:无效果 1:闪烁 | 0 |
| inEffect | 进场特效 | {} |
| inEffect.Type | 特效类型 (整数) | 0 |
| inEffect.Name | 特效名 | "No Effect" |
| inEffect.Time | 进场时间(毫秒) | 500 |
| inEffect.repeatX | 水平方向重复次数(整数) | 0 |
| inEffect.repeatY | 垂直方向重复次数(整数) | 0 |
| inEffect.IsTran | 是否首尾衔接(0:否;1:是) | 0 |
# 进场特效类型
| 类型值 | 特效描述 |
|---|---|
| 0 | 无特效 |
| 1 | 随机 |
| 2 | 左覆盖 |
| 3 | 右覆盖 |
| 4 | 上覆盖 |
| 5 | 下覆盖 |
| 6 | 左上角覆盖(斜线) |
| 7 | 右上角覆盖(斜线) |
| 8 | 左下角覆盖(斜线) |
| 9 | 右下角覆盖(斜线) |
| 10 | 左上角覆盖(直线) |
| 11 | 右上角覆盖(直线) |
| 12 | 左下角覆盖(直线) |
| 13 | 右下角覆盖(直线) |
| 14 | 水平百叶 |
| 15 | 垂直百叶 |
| 16 | 左右对开 |
| 17 | 上下对开 |
| 18 | 左右闭合 |
| 19 | 上下闭合 |
| 20 | 上移 |
| 21 | 下移 |
| 22 | 左移 |
| 23 | 右移 |
| 24 | 左上角移 |
| 25 | 右上角移 |
| 26 | 左下角移 |
| 27 | 右下角移 |
| 28 | 马赛克(小) |
| 29 | 马赛克(中) |
| 30 | 马赛克(大) |
| 31 | 渐变 |
| 32 | 右旋360 |
| 33 | 左旋360 |
| 34 | 右旋180 |
| 35 | 左旋180 |
| 36 | 右旋90 |
| 37 | 左旋90 |
| 38 | 由小变大(中间) |
| 39 | 由小变大(左上) |
| 40 | 由小变大(右上) |
| 41 | 由小变大(左下) |
| 42 | 由小变大(右下) |
| 43 | 中间向四周(矩形) |
| 44 | 四周向中间(矩形) |
| 45 | 中间向四周(菱形) |
| 46 | 四周向中间(菱形) |
| 47 | 中间向四周(十字) |
| 48 | 四周向中间(十字) |
| 49 | 三维动画一 |
| 50 | 三维动画二 |
# 图片节目请求参数示例
{
"title": "ProgramDocumentImage",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 3,
"Layer": 1,
"Rect": {
"X": 0,
"Y": 0,
"Width": 512,
"Height": 512,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "File_Window",
"IsScheduleRegion": 0,
"Items": [
{
"Type": 2,
"Alhpa": "1.000000",
"Duration": 8000,
"PlayTimes": 1,
"inEffect": {
"webTime": 1.5,
"Name": "No Effect",
"Type": 0,
"Time": 1500
},
"Trigger": {
"Type": "lightStrip",
"Value": "0"
},
"FileSource": {
"IsRelative": 1,
"FilePath": "",
"Resource_ID": 12540943,
"OriginName": ""
},
"ReserveAS": 0
}
]
}
]
}
]
}
}
}
# 视频节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 节目类型,视频节目:3 | 3 |
| Volume | 声音音量(0-1.000000) | 0 |
| Duration | 播放时长(毫秒) | 12000 |
| ReserveAS | 播放时是否保持宽高比 | 0 |
| showX | 起点坐标X | |
| showY | 起点坐标Y | |
| showWidth | 宽度 | |
| showHeight | 高度 | |
| IsSetShowRegion | 是否截取视频区域显示(0:否 1:是) | |
| IsSetPlayLen | 是否设置视频播放时长(0:否 1:是) | |
| FileSource | 文件源 | {} |
| FileSource.IsRelative | 是否为相对路径(0:否;1:是) 必须为1 | 1 |
| FileSource.Resource_ID | 素材ID | 123 |
| FileSource.OriginName | 素材原始名 | "01-烟花.mp4" |
# 视频节目请求参数示例:
{
"title": "ProgramDocumentVideo",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 3,
"Layer": 1,
"Rect": {
"X": 0,
"Y": 0,
"Width": 512,
"Height": 512,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "File_Window",
"IsScheduleRegion": 0,
"Items": [
{
"Type": 3,
"Duration": 0,
"PlayTimes": "1",
"Volume": "1.000000",
"Loop": 1,
"PlayLength": 0,
"Trigger": {
"Type": "lightStrip",
"Value": "0"
},
"FileSource": {
"IsRelative": 1,
"FilePath": "",
"Resource_ID": 12550145,
"OriginName": "WeChat_20230509151811.mp4"
},
"ReserveAS": 1
}
]
}
]
}
]
}
}
}
# 动图节目
gif节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 节目类型,gif节目:6 | 6 |
| Duration | 播放时长(毫秒),包括了特效时间 | 8500 |
| PlayTimes | 播放次数 | 1 |
| ReserveAS | 是否保持高度比(0:否;1:是) | 0 |
| FileSource | 文件源 | {} |
| FileSource.IsRelative | 是否为相对路径(0:否;1:是) 必须为1 | 1 |
| FileSource.Resource_ID | 素材ID | 123 |
| FileSource.OriginName | 素材原始名 | "01-ceshi.gif" |
# gif节目请求参数示例:
{
"title": "ProgramDocumentGif",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 3,
"Layer": 1,
"Rect": {
"X": 0,
"Y": 0,
"Width": 512,
"Height": 512,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "File_Window",
"IsScheduleRegion": 0,
"Items": [
{
"Type": 6,
"Alhpa": "1.000000",
"Duration": 1760,
"PlayTimes": 1,
"inEffect": {
"webTime": 1.5,
"Name": "No Effect",
"Type": 0,
"Time": 1500
},
"Trigger": {
"Type": "lightStrip",
"Value": "0"
},
"FileSource": {
"IsRelative": 1,
"FilePath": "",
"Resource_ID": 26041,
"OriginName": "ce测试.gif"
},
"ReserveAS": 0
}
]
}
]
}
]
}
}
}
# 网页节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 节目类型,网页节目:27 | 27 |
| Url | url | "https://developer.colorlightcloud.com/cloudServer/en" |
| Duration | 播放时长(毫秒) | 12000 |
# 网页节目请求参数示例:
{
"title": "programWeb",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 1024,
"Height": 1024,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 13,
"Layer": 1,
"Rect": {
"X": 100,
"Y": 100,
"Width": 500,
"Height": 500,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Web_Window",
"Items": [
{
"Type": 27,
"BackColor": "0xFF000000",
"Alhpa": 1,
"Duration": 80000,
"Url": "https://www.baidu.com/",
"PlayTimes": 1,
"IsLocal": 0
}
]
}
]
}
]
}
}
}
# 数字时钟节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 节目类型,时钟节目:9 | 9 |
| BackColor | 背景颜色 | "0xFF000000" |
| IsAnolog | 时钟类型 0为数字时钟,1为模拟时钟 | 0 |
| TimeZone | 时区,国内为8 | 8.000000 |
| Text | 时钟前面的文字 | BeiJing |
| Duration | 播放时长(毫秒) | 12000 |
| DigitalClock | 数字时钟属性 | {} |
| DigitalClock.Type | 时钟类型,一共有13种,可以LEDVISION查看详细效果 | 1 |
| DigitalClock.Flags | 时钟显示格式,值为所需要效果的总和 | 2623 |
| DigitalClock.Name | 字体 | "default" |
| DigitalClock.ftSize | 字体大小 | 26 |
| DigitalClock.IsStrikeOut | 是否添加删除线(0:否;1:是) | 0 |
| DigitalClock.Weight | 字体粗细 | 400 |
| DigitalClock.bBold | 是否粗体(0:否;1:是) | 0 |
| DigitalClock.ftColor | 字体颜色,DWORD值 | 4294967295 |
| DigitalClock.bItalic | 是否斜体 | 0 |
| DigitalClock.bUnderline | 是否有下划线 | 0 |
Flags:时钟显示格式,值为所需要效果的总和。十进制。
我们采用二进制来表示时钟显示风格,对应位置值为0代表不显示该元素或者显示为对应风格,为1则显示或者显示为对应风格。
如Flags说明所示,每个元素对应的二进制位从右至左分别为年、月、日、时、分、秒、...、是否显示为24小时制、是否显示4位年、是否显示为多行。
最终将该二进制数转化为十进制数填入Flags字段。
| 十六进制 (Hex) | 十进制 (Dec) | 二进制 (Bin) | 注释 |
|---|---|---|---|
| 0x0001 | 1 | 0000 0000 0000 0001 | 显示年 |
| 0x0002 | 2 | 0000 0000 0000 0010 | 显示月 |
| 0x0004 | 4 | 0000 0000 0000 0100 | 显示日 |
| 0x0008 | 8 | 0000 0000 0000 1000 | 显示时 |
| 0x0010 | 16 | 0000 0000 0001 0000 | 显示分 |
| 0x0020 | 32 | 0000 0000 0010 0000 | 显示秒 |
| 0x0040 | 64 | 0000 0000 0100 0000 | 显示农历的年 |
| 0x0080 | 128 | 0000 0000 1000 0000 | 显示农历的月 |
| 0x0100 | 256 | 0000 0001 0000 0000 | 显示农历的日 |
| 0x0200 | 512 | 0000 0010 0000 0000 | 显示星期几 |
| 0x0400 | 1024 | 0000 0100 0000 0000 | 显示半日 |
| 0x0800 | 2048 | 0000 1000 0000 0000 | 按24小时显示时间,否则按12小时显示时间 |
| 0x1000 | 4096 | 0001 0000 0000 0000 | 年按个4数字显示,否则按2个数字显示 |
| 0x2000 | 8192 | 0010 0000 0000 0000 | 是否多行显示,否则按单行显示 |
"https://www.yahoo.com/news/rss?type=rss&bgcolor=0x00000000&color=0xFFFFFFFF&speed=60&size=18&interval=600000&filter=description_title_pubdate_image"
时钟类型简易预览效果
| Type | 预览效果 |
|---|---|
| 1 | 2018-08-18 |
| 2 | 08/18/2018 |
| 3 | 8/18/2018 |
| 4 | 2018 08 18 |
| 5 | 2018/8/18 |
| 6 | August 18, 2018 |
| 7 | 18/08/2018 |
| 8 | 18.08.2018 |
| 9 | 18/8 2018 |
| 10 | 18 Aug. 2018 |
| 11 | 18. Aug. 2018 |
| 12 | 18-Aug-2018 |
| 13 | 2018年8月18日 |
# 数字时钟节目请求参数示例:
{
"title": "programClock-DigitalClock",
"status": "publish",
"program_info": {
},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 5,
"Layer": 1,
"Rect": {
"X": 10,
"Y": 50,
"Width": 300,
"Height": 300,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Clock_Window",
"Items": [
{
"centeralAlign": 1,
"playTime": 8,
"Type": 9,
"Opacity": 1,
"OpacityBg": 1,
"BackColor": "#000000",
"Duration": 8000,
"IsAnolog": 0,
"Text": "",
"DigtalClock": {
"ftSize": 22,
"ftColor": 4294967295,
"DigtalClock": 1,
"Opacity": 1,
"Flags": 10815,
"Name": "default",
"Weight": 400,
"bBold": 0,
"bItalic": 0,
"bUnderline": 0
},
"IfShowAll": "1",
"IfTemper": 0
}
]
}
]
}
]
}
}
}
# 模拟时钟节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 节目类型,时钟节目:9 | 9 |
| BackColor | 背景颜色 | 0xFF000000 |
| IsAnolog | 时钟类型 0为数字时钟,1为模拟时钟 | 1 |
| TimeZone | 时区,国内为8 | 8.000000 |
| Text | 时钟前面的文字 | BeiJing |
| Duration | 播放时长(毫秒) | 12000 |
| AnologClock | 模拟时钟属性 | {} |
| AnologClock.Shape | 形状 :0:圆形 ;1:方形 | 0 |
| AnologClock.Flags | 风格标志 | 327680 |
| AnologClock.ClockFont.FixedText | 时钟前缀字体属性 | {} |
| AnologClock.ClockFont.FixedText.lfHeight | 逻辑单位的字符或者字符元高度 | 16 |
| AnologClock.ClockFont.FixedText.lfWeight | 0-1000,0为默认宽度, 700为加粗字体 | 400 |
| AnologClock.ClockFont.FixedText.lfItalic | 是否使用斜体(0:否;1:是) | 0 |
| AnologClock.ClockFont.FixedText.lfUnderline | 是否添加下划线(0:否;1:是) | 0 |
| AnologClock.ClockFont.FixedText.lfStrikeOut | 是否添加删除线(0:否;1:是) | 0 |
| AnologClock.ClockFont.FixedText.lfFaceName | 字体名称 | "default" |
| AnologClock.ClockFont.FixedTextBold | 时钟前缀字体属性 | 0 |
| AnologClock.ClockFont.FixedTextColor | 时钟前缀字体颜色,DWORD值 | 4294967295 |
| AnologClock.ClockFont.Date | 日期字体属性 | {} |
| AnologClock.ClockFont.Date.lfHeight | 逻辑单位的字符或者字符元高度 | 16 |
| AnologClock.ClockFont.Date.lfWeight | 0-1000,0为默认宽度, 700为加粗字体 | 400 |
| AnologClock.ClockFont.Date.lfItalic | 是否使用斜体(0:否;1:是) | 0 |
| AnologClock.ClockFont.Date.lfUnderline | 是否添加下划线(0:否;1:是) | 0 |
| AnologClock.ClockFont.Date.lfFaceName | 字体名称 | "default" |
| AnologClock.ClockFont.DateBold | 日期字体属性 | ["0", "0"] |
| AnologClock.ClockFont.DateColor | 日期字体颜色 | 4294967295 |
| AnologClock.ClockFont.Week | 星期字体属性 | {} |
| AnologClock.ClockFont.Week.lfHeight | 逻辑单位的字符或者字符元高度 | 16 |
| AnologClock.ClockFont.Week.lfWeight | 0-1000,0为默认宽度, 700为加粗字体 | 400 |
| AnologClock.ClockFont.Week.lfItalic | 是否使用斜体(0:否;1:是) | 0 |
| AnologClock.ClockFont.Week.lfUnderline | 是否添加下划线(0:否;1:是) | 0 |
| AnologClock.ClockFont.Week.lfStrikeOut | 是否添加删除线(0:否;1:是) | 0 |
| AnologClock.ClockFont.Week.lfFaceName | 字体名称 | "default" |
| AnologClock.ClockFont.WeekBold | 星期字体属性 | 0 |
| AnologClock.ClockFont.WeekColor | 星期字体颜色 | 4294967295 |
| AnologClock.ClockFont.Time | 时标数字字体属性,当时标属性中shape为2时生效 | {} |
| AnologClock.ClockFont.Time.lfHeight | 逻辑单位的字符或者字符元高度 | 16 |
| AnologClock.ClockFont.Time.lfWeight | 0-1000,0为默认宽度, 700为加粗字体 | 400 |
| AnologClock.ClockFont.Time.lfItalic | 是否使用斜体(0:否;1:是) | 0 |
| AnologClock.ClockFont.Time.lfUnderline | 是否添加下划线(0:否;1:是) | 0 |
| AnologClock.ClockFont.Time.lfStrikeOut | 是否添加删除线(0:否;1:是) | |
| AnologClock.ClockFont.Time.lfFaceName | 字体名称 | "default" |
| AnologClock.HourPinClr | 时针颜色 | "#ff0000" |
| AnologClock.MinutePinClr | 分针颜色 | "#00ff00" |
| AnologClock.SecondPinClr | 秒针颜色 | "#0000ff" |
| HhourScale | 时标属性 | {} |
| HhourScale.Clr | 时标颜色 | "#ff0000" |
| HhourScale.Shape | 形状:0:圆形; 1:方形; 2:数字 | 0 |
| HhourScale.Width | 宽 | 4 |
| HhourScale.Height | 高 | 4 |
| MinuteScale | 分标属性,同时标属性 | {} |
| MinuteScale.Clr | 分标颜色 | "#00ff00" |
| MinuteScale.Shape | 形状:0:圆形; 1:方形; 分标只支持0和1 | 0 |
| MinuteScale.Width | 宽 | 2 |
| MinuteScale.Height | 高 | 2 |
# 模拟时钟节目请求参数示例:
{
"title": "programClock-AnologClock",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 5,
"Layer": 1,
"Rect": {
"X": 10,
"Y": 50,
"Width": 300,
"Height": 300,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Clock_Window",
"Items": [
{
"centeralAlign": 1,
"playTime": 8,
"Type": 9,
"Opacity": 1,
"OpacityBg": 1,
"BackColor": "0xFF000000",
"Duration": 8000,
"IsAnolog": 1,
"Text": "",
"IfShowAll": "1",
"IfTemper": 0,
"AnologClock": {
"Shape": 0,
"Flags": 327680,
"ClockFont": {
"FixedText": {
"lfFaceName": "default",
"lfHeight": 22,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"Opacity": 1
},
"FixedTextColor": 4294967295,
"Date": {
"lfFaceName": "default",
"lfHeight": 22,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"Opacity": 1
},
"DateColor": 4294967295,
"Week": {
"lfFaceName": "default",
"lfHeight": 22,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"Opacity": 1
},
"WeekColor": 4294967295
},
"HourPinClr": "#ff0000",
"MinutePinClr": "#00ff00",
"SecondPinClr": "#0000ff",
"TextOffset": "0",
"DateOffset": "0",
"LunarOffset": "0",
"WeekOffset": "0"
},
"HhourScale": {
"Clr": "#ff0000",
"Shape": 0,
"Width": 4,
"Height": 4
},
"MinuteScale": {
"Clr": "#00ff00",
"Shape": 0,
"Width": 2,
"Height": 2
}
}
]
}
]
}
]
}
}
}
# 计时节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 节目类型,计时节目:15 | 15 |
| BeToEndTime | 计时类型,(0:正计时;1:倒计时) | 1 |
| Duration | 播放时长(毫秒) | 12000 |
| Style | 显示风格 | 0 |
| IsMultiLine | 是否多行显示 | 0 |
| Prefix | 前缀文本 | "" |
| EndDateTime | 计时终点 | "2024-07-03 10:43:59" |
| TextColor | 文本颜色,ARGB值格式 | "0xFFffffff" |
| IsShowDayCount | 是否显示天数 | 1 |
| DayCountColor | 天数颜色,ARGB值格式 | "0xFFff0000" |
| IsShowHourCount | 是否显示小时数 | 1 |
| HourCountColor | 小时数颜色,ARGB值格式 | "0xFFff0000" |
| IsShowMinuteCount | 是否显示分钟数 | 1 |
| MinuteCountColor | 分钟数颜色,ARGB值格式 | "0xFF00ff00" |
| IsShowSecondCount | 是否显示秒数 | 1 |
| SecondCountColor | 秒数颜色,ARGB值格式 | "0xFF0000ff" |
| LogFont | 字体 | {} |
| LogFont.lfHeight | 逻辑单位的字符或者字符元高度 | 16 |
| LogFont.lfWeight | 字体粗细 | 400 |
| LogFont.lfItalic | 是否使用斜体 | 0 |
| LogFont.lfUnderline | 是否添加下划线 | 0 |
| LogFont.lfStrikeOut | 是否添加删除线 | 0 |
| LogFont.lfFaceName | 字体名称 | "default" |
# 计时节目请求示例:
{
"title": "ProgramCountDown",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 208,
"Height": 200,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 6,
"Layer": 1,
"Rect": {
"X": 10,
"Y": 60,
"Width": 208,
"Height": 200,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "countDownWindow",
"Items": [
{
"Type": 15,
"BeToEndTime": 1,
"Style": 0,
"IsMultiLine": 1,
"Prefix": "",
"EndDateTime": "2025-01-19 20:43:54",
"ShowFormat": "",
"LogFont": {
"lfHeight": 16,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"lfFaceName": "default"
},
"UnitFont": {
"lfHeight": 16,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"lfFaceName": "default"
},
"TextColor": "#ffffff",
"IsShowDayCount": 1,
"DayCountColor": "#ff0000",
"IsShowHourCount": 1,
"HourCountColor": "#ff0000",
"IsShowMinuteCount": 1,
"MinuteCountColor": "#00ff00",
"IsShowSecondCount": 1,
"secondCountColor": "#0000ff",
"CenteralAlign": 1,
"time": "20:43:54",
"date": "2025-01-19",
"Duration": 8000,
"BackColor": "#000000",
"OpacityBg": 1,
"Opacity": 1,
"PlayTimes": 1,
"showBengali": false
}
]
}
]
}
]
}
}
}
# 天气节目
# 属性详解
| 属性 | 描述 | 示例值 |
|---|---|---|
| Type | 类型:天气节目:14 | 14 |
| BackColor | 素材背景颜色,ARGB值格式 | "0xFF000000" |
| Duration | 播放时长(毫秒) | 300000 |
| TextColor | 文本颜色,ARGB值格式 | "0xFFffffff" |
| IsMultiLine | 是否多行显示 | 1 |
| MoveType | 显示效果 | 0 |
| MoveSpeed | 移动速度 | 30 |
| RemainTime | 停留时间(*100ms) | 20 |
| RegionName | 查询天气的区域名称 | "深圳" |
| IsShowWeather | 是否显示天气信息 | 1 |
| WeatherPrefix | 天气信息前缀(固定文本) | "" |
| IsShowTemperature | 是否显示温度 | 1 |
| TemperaturePrefix | 温度信息前缀 (固定文本) | "" |
| IsShowWind | 是否显示风力 | 1 |
| WindPrefix | 风力前缀(固定文本) | "" |
| IsShowAir | 是否显示空气质量 | 1 |
| AirPrefix | 空气质量前缀(固定文本) | "" |
| IsShowUltraviolet | 是否显示紫外线指数 | 0 |
| Ultraviolet | 紫外线指数前缀(固定文本) | "" |
| IsShowMovementIndex | 是否显示运动指数 | 0 |
| MovementIndex | 运动指数前缀(固定文本) | "" |
| IsShowColdIndex | 是否显示穿衣指数 | 1 |
| ColdIndex | 穿衣指数前缀(固定文本) | "" |
| IsShowHumidity | 是否显示湿度 | 1 |
| Humidity | 湿度前缀(固定文本) | "" |
| IsShowHeatstroke | 是否显示中暑指数 | 0 |
| Heatstroke | 中暑指数前缀(固定文本) | "" |
| serverType | 天气预报数据源类型 | 0 |
| regionCode | 查询天气的区域码 | "101280601" |
| longitud | 经度 | 0.000000 |
| latitude | 纬度 | 0.000000 |
| timezone | 时区 | 8.000000 |
| Language | 天气显示语言 | "zh-CN" |
| IsShowPic | 是否显示天气图标 | 0 |
| ShowStyle | 显示风格 | 0 |
| LogFont | 字体 | {} |
| LogFont.lfHeight | 逻辑单位的字符或者字符元高度 | 50 |
| LogFont.lfWeight | 字体粗细 | 0 |
| LogFont.lfItalic | 是否使用斜体 | 0 |
| LogFont.lfUnderline | 是否添加下划线 | 0 |
| LogFont.lfStrikeOut | 是否添加删除线 | 0 |
| LogFont.lfFaceName | 字体名称 | "default" |
# 天气节目请求参数示例:
{
"title": "ProgrameWeather",
"status": "publish",
"program_info": {},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 1
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 9,
"Layer": 1,
"Rect": {
"X": 100,
"Y": 100,
"Width": 300,
"Height": 300,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Weather_Window",
"Items": [
{
"Type": 14,
"BackColor": "#000000",
"Duration": 8000,
"PlayTimes": 1,
"LogFont": {
"lfHeight": 30,
"lfWeight": 400,
"lfItalic": 0,
"lfFaceName": "SimHei",
"lfUnderline": 0
},
"Opacity": 1,
"OpacityBg": 1,
"TextColor": "#ffffff",
"IsHeadConnectTail": 0,
"IsMultiLine": 1,
"ShowStyle": 0,
"MoveType": 0,
"RemainTime": 60,
"IfSpeedByFrame": 0,
"SpeedByFrame": 1,
"buttonTemp": "F",
"bShowAsFahrenheit": 0,
"Speed": 60,
"weatherSource": 0,
"regionCode": "101280601",
"serverType": 0,
"RegionName": "深圳",
"IsShowWeather": 1,
"WeatherPrefix": "",
"IsShowTemperature": 1,
"TemperaturePrefix": "",
"IsShowWind": 0,
"WindPrefix": "",
"IsShowHumidity": 1,
"Humidity": "",
"IsShowAir": 1,
"AirPrefix": "",
"IsShowColdIndex": 1,
"ColdIndex": "",
"playTime": 8
}
]
}
]
}
]
}
}
}
# 环境节目
# 属性详解:
| 属性 | 描述 | 示例值 |
|---|---|---|
| type | 类型,11:环境窗口 | 11 |
| Layer | 层级 | 1 |
| Rect | 区域位置 | {} |
| Rect.X | 区域 X 坐标 | 0 |
| Rect.Y | 区域 Y 坐标 | 0 |
| Rect.Width | 区域宽度 | 256 |
| Rect.Height | 区域高度 | 256 |
| Rect.BorderWidth | 边框宽度 | 0 |
| Rect.BorderColor | 边框颜色 | "#ffff00" |
| Name | 名称,固定值 | "Environment_Window" |
| Items | 列表 | [] |
| Name | 名称,固定值 | "Environment" |
| Type | 环境窗口类型。 (22:温度、21:湿度、23:噪声、28:烟雾、24:空气指数) | 22 |
| prevfix | 固定文本前缀。 (当 Type: 28 烟雾时,为大于临界值时显示的固定文本。烟雾值 + prevfix; 如:200ppm 超标) | "当前温度: " |
| suffix | 固定文本后缀。 (当 Type: 28 烟雾时,为小于临界值时显示的固定文本。烟雾值 + suffix; 如:0ppm 未超标) | "°C" |
| bShowAsFahrenheit | 是否显示为华氏度(°F)。 0:否(°C),1:是(°F) (Type: 22,温度特有。) | 0 |
| TemperatureOffset | 温度偏移量 (Type: 22,温度特有。) | 0 |
| Standard | 烟雾临界值(ppm) (Type: 28:烟雾特有) | 0 |
| Font | 字体 | {} |
| Font.lfHeight | 逻辑单位的字符或者字符元高度 | 24 |
| Font.lfWeight | 0-1000,0 为默认宽度, 700 为加粗字体 | 400 |
| Font.lfItalic | 是否使用斜体(0:否;1:是) | 0 |
| Font.lfUnderline | 是否添加下划线(0:否;1:是) | 0 |
| Font.lfStrikeOut | 是否添加删除线(0:否;1:是) | 0 |
| Font.lfFaceName | 字体名称 | "SimHei" |
| textColor | 字体颜色 | "0xFFffffff" |
| Alignment | 对齐方式,-1:靠左,0:居中,1:靠右。 | 0 |
| BackColor | 背景颜色 | "0xFF000000" |
| Duration | 播放时间,单位 ms | 13000 |
| playTime | 播放时间,单位 s | 13 |
| PlayLength | 播放时长,单位 ms | 13000 |
# 环境-温度节目 请求参数示例:
{
"title": "Playlist温度22",
"status": "publish",
"program_info": {
},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 0.37
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 11,
"Layer": 1,
"Rect": {
"X": 0,
"Y": 0,
"Width": 256,
"Height": 256,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Environment_Window",
"Items": [
{
"Name": "Environment",
"Opacity": 1,
"OpacityBg": 1,
"Id": "node12",
"Type": 22,
"Duration": 13000,
"BackColor": "0xFF000000",
"BeGlaring": 0,
"IsNeedUpdate": 0,
"UpdateInterval": 10000,
"MirrorOrHandstand": 0,
"PlayTimes": 1,
"effect": {
"IsStatic": 0,
"StayType": 0
},
"inEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 0
},
"outEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 1
},
"Font": {
"lfHeight": 24,
"lfWidth": 0,
"lfEscapement": 0,
"lfOrientation": 0,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"lfStrikeOut": 0,
"lfCharSet": 1,
"lfOutPrecision": 0,
"lfQuality": 3,
"lfPitchAndFamily": 32,
"lfFaceName": "SimHei"
},
"textColor": "0xFFffffff",
"bTransparent": 1,
"prevfix": "当前温度: ",
"suffix": "°C",
"sourceType": 1,
"sourceIndex": 0,
"portIndex": 0,
"scIndex": 0,
"bShowAsFahrenheit": 0,
"Alignment": 0,
"ShowStyle": 0,
"tem1": 21,
"tem2": 26,
"tem3": 31,
"temColor1": "#ffffff",
"temColor2": "#ffffff",
"temColor3": "#ffffff",
"temColor4": "#ffffff",
"bShowPic": 1,
"bShowText": 1,
"TextX": 0,
"TextY": 0,
"TemperatureOffset": 0,
"playTime": 13,
"PlayLength": 13000
}
]
}
]
}
]
}
}
}
# 环境-湿度节目 请求参数示例:
{
"title": "Playlist湿度21",
"status": "publish",
"program_info": {
},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 0.37
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 11,
"Layer": 1,
"Rect": {
"X": 0,
"Y": 84,
"Width": 429,
"Height": 256,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Environment_Window",
"Items": [
{
"Name": "Environment",
"Opacity": 1,
"OpacityBg": 1,
"Id": "node12",
"Type": 21,
"Duration": 8000,
"BackColor": "0xFF000000",
"BeGlaring": 0,
"IsNeedUpdate": 0,
"UpdateInterval": 10000,
"MirrorOrHandstand": 0,
"PlayTimes": 1,
"effect": {
"IsStatic": 0,
"StayType": 0
},
"inEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 0
},
"outEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 1
},
"Font": {
"lfHeight": 24,
"lfWidth": 0,
"lfEscapement": 0,
"lfOrientation": 0,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"lfStrikeOut": 0,
"lfCharSet": 1,
"lfOutPrecision": 0,
"lfQuality": 3,
"lfPitchAndFamily": 32,
"lfFaceName": "SimHei"
},
"textColor": "0xFFffffff",
"bTransparent": 1,
"prevfix": "相对湿度:",
"suffix": "后缀",
"sourceType": 1,
"sourceIndex": 0,
"portIndex": 0,
"scIndex": 0,
"bShowAsFahrenheit": 0,
"Alignment": 0,
"ShowStyle": 0,
"tem1": 21,
"tem2": 26,
"tem3": 31,
"temColor1": "#ffffff",
"temColor2": "#ffffff",
"temColor3": "#ffffff",
"temColor4": "#ffffff",
"bShowPic": 1,
"bShowText": 1,
"TextX": 0,
"TextY": 0,
"TemperatureOffset": 0,
"playTime": 8,
"PlayLength": 8000
}
]
}
]
}
]
}
}
}
# 环境-噪声节目 请求参数示例:
{
"title": "Playlist噪声23",
"status": "publish",
"program_info": {
},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 0.37
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 11,
"Layer": 1,
"Rect": {
"X": 0,
"Y": 8,
"Width": 256,
"Height": 256,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Environment_Window",
"Items": [
{
"Name": "Environment",
"Opacity": 1,
"OpacityBg": 1,
"Id": "node12",
"Type": 23,
"Duration": 9000,
"BackColor": "0xFF000000",
"BeGlaring": 0,
"IsNeedUpdate": 0,
"UpdateInterval": 10000,
"MirrorOrHandstand": 0,
"PlayTimes": 1,
"effect": {
"IsStatic": 0,
"StayType": 0
},
"inEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 0
},
"outEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 1
},
"Font": {
"lfHeight": "28",
"lfWidth": 0,
"lfEscapement": 0,
"lfOrientation": 0,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"lfStrikeOut": 0,
"lfCharSet": 1,
"lfOutPrecision": 0,
"lfQuality": 3,
"lfPitchAndFamily": 32,
"lfFaceName": "SimHei"
},
"textColor": "0xFFffffff",
"bTransparent": 1,
"prevfix": "噪声:",
"suffix": "后缀",
"sourceType": 1,
"sourceIndex": 0,
"portIndex": 0,
"scIndex": 0,
"bShowAsFahrenheit": 0,
"Alignment": 0,
"ShowStyle": 0,
"tem1": 21,
"tem2": 26,
"tem3": 31,
"temColor1": "#ffffff",
"temColor2": "#ffffff",
"temColor3": "#ffffff",
"temColor4": "#ffffff",
"bShowPic": 1,
"bShowText": 1,
"TextX": 0,
"TextY": 0,
"TemperatureOffset": 0,
"playTime": 9,
"PlayLength": 9000
}
]
}
]
}
]
}
}
}
# 环境-烟雾节目 请求参数示例:
{
"title": "Playlist烟雾28",
"status": "publish",
"program_info": {
},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 0.37
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 11,
"Layer": 1,
"Rect": {
"X": 0,
"Y": 0,
"Width": 256,
"Height": 256,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Environment_Window",
"Items": [
{
"Name": "Environment",
"Opacity": 1,
"OpacityBg": 1,
"Id": "node12",
"Type": 28,
"Duration": 8000,
"BackColor": "0xFF000000",
"BeGlaring": 0,
"IsNeedUpdate": 0,
"UpdateInterval": 10000,
"MirrorOrHandstand": 0,
"PlayTimes": 1,
"effect": {
"IsStatic": 0,
"StayType": 0
},
"inEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 0
},
"outEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 1
},
"Font": {
"lfHeight": 24,
"lfWidth": 0,
"lfEscapement": 0,
"lfOrientation": 0,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"lfStrikeOut": 0,
"lfCharSet": 1,
"lfOutPrecision": 0,
"lfQuality": 3,
"lfPitchAndFamily": 32,
"lfFaceName": "SimHei"
},
"textColor": "0xFFffffff",
"bTransparent": 1,
"prevfix": "超标:",
"suffix": "未超标:",
"sourceType": 1,
"sourceIndex": 0,
"portIndex": 0,
"scIndex": 0,
"bShowAsFahrenheit": 0,
"Alignment": 0,
"ShowStyle": 0,
"tem1": 21,
"tem2": 26,
"tem3": 31,
"temColor1": "#ffffff",
"temColor2": "#ffffff",
"temColor3": "#ffffff",
"temColor4": "#ffffff",
"bShowPic": 1,
"bShowText": 1,
"TextX": 0,
"TextY": 0,
"TemperatureOffset": 0,
"playTime": 8,
"Standard": 5,
"PlayLength": 8000
}
]
}
]
}
]
}
}
}
# 环境-空气指数节目 请求参数示例:
{
"title": "Playlist空气指数24",
"status": "publish",
"program_info": {
},
"Programs": {
"Program": {
"Information": {
"Width": 512,
"Height": 512,
"Scale": 0.37
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 11,
"Layer": 1,
"Rect": {
"X": 22,
"Y": 70,
"Width": 256,
"Height": 256,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Environment_Window",
"Items": [
{
"Name": "Environment",
"Opacity": 1,
"OpacityBg": 1,
"Id": "node12",
"Type": 24,
"Duration": 8000,
"BackColor": "0xFF000000",
"BeGlaring": 0,
"IsNeedUpdate": 0,
"UpdateInterval": 10000,
"MirrorOrHandstand": 0,
"PlayTimes": 1,
"effect": {
"IsStatic": 0,
"StayType": 0
},
"inEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 0
},
"outEffect": {
"Type": 0,
"Time": 500,
"repeatX": 1,
"repeatY": 1,
"IsTran": 1
},
"Font": {
"lfHeight": 24,
"lfWidth": 0,
"lfEscapement": 0,
"lfOrientation": 0,
"lfWeight": 400,
"lfItalic": 0,
"lfUnderline": 0,
"lfStrikeOut": 0,
"lfCharSet": 1,
"lfOutPrecision": 0,
"lfQuality": 3,
"lfPitchAndFamily": 32,
"lfFaceName": "SimHei"
},
"textColor": "0xFFffffff",
"bTransparent": 1,
"prevfix": "空气指数前缀:",
"suffix": "空气指数后缀",
"sourceType": 1,
"sourceIndex": 0,
"portIndex": 0,
"scIndex": 0,
"bShowAsFahrenheit": 0,
"Alignment": 0,
"ShowStyle": 0,
"tem1": 21,
"tem2": 26,
"tem3": 31,
"temColor1": "#ffffff",
"temColor2": "#ffffff",
"temColor3": "#ffffff",
"temColor4": "#ffffff",
"bShowPic": 1,
"bShowText": 1,
"TextX": 0,
"TextY": 0,
"TemperatureOffset": 0,
"playTime": 8,
"PlayLength": 8000
}
]
}
]
}
]
}
}
}
# 新闻节目
# 属性详情:
| 属性 | 描述 | 示例值 |
|---|---|---|
| Name | 窗口名称,固定值 | Rss_Window |
| Items | 列表 | [] |
| Type | 窗口类型。27:新闻 | 27 |
| BackColor | 背景颜色 | #00000000 |
| Alhpa | 透明度 | 1.000000 |
| Duration | 播放时长(毫秒) | 9000 |
| Url | RSS 链接地址 | "https://www.yahoo.com/news/rss?type=rss&bgcolor=0x00000000&color=0xFFFFFFFF&speed=60&size=18&interval=600000&filter=description_title_pubdate_image" |
| PlayTimes | 播放次数 | 1 |
Url 中参数详解:
"https://www.yahoo.com/news/rss?type=rss&bgcolor=0x00000000&color=0xFFFFFFFF&speed=60&size=18&interval=600000&filter=description_title_pubdate_image"
| 参数 | 描述 | 示例值 |
|---|---|---|
| url | 新闻聚合路径 | "https://www.yahoo.com/news/rss" |
| type | 类型,固定值,rss | rss |
| interval | 刷新间隔时间,单位毫秒 | 600000 |
| size | 字体大小,单位像素 | 18 |
| color | 字体颜色,使用16进制颜色码表示 | 0xFFFFFFFF |
| filter | 显示内容选项,字段间用下划线分隔(内容_标题_更新时间_图片) | description_title_pubdate_image |
| speed | 滚动速度,单位(px/s) | 60 |
| bgcolor | 背景颜色,使用16进制颜色码表示 | 0x00000000 |
# 新闻节目请求参数示例:
{
"title": "Playlist新闻",
"status": "publish",
"program_info": {
},
"Programs": {
"Program": {
"Information": {
"Width": 992,
"Height": 352,
"Scale": 0.46
},
"Pages": [
{
"AppointDuration": 3600000,
"Opacity": 1,
"LoopType": 1,
"BgColor": "0xFF000000",
"Regions": [
{
"type": 13,
"Layer": 1,
"Rect": {
"X": 0,
"Y": 0,
"Width": 496,
"Height": 176,
"BorderWidth": 0,
"BorderColor": "#ffff00"
},
"Name": "Rss_Window",
"Items": [
{
"Type": 27,
"BackColor": "#00000000",
"Alhpa": "1.000000",
"Duration": 9000,
"Url": "https://www.yahoo.com/news/rss?type=rss&bgcolor=0x00000000&color=0xFFFFFFFF&speed=60&size=18&interval=600000&filter=description_title_pubdate_image",
"PlayTimes": 1
}
]
}
]
}
]
}
}
}
# 成功响应:
| 字段名 | 类型及范围 | 说明 |
|---|---|---|
| id | int | 节目id |
| author | int | 节目作者 |
| date | string | 节目创建日期,取的是服务器时区 |
| date_gmt | string | 节目创建日期,GMT时间 |
| content | string | 暂无描述 |
| title_raw | string | 节目名称 |
| excerpt | string | 暂无描述 |
| status | string | 一般是“publish” |
| modified | string | 节目修改时间,取的是服务器时区 |
| modified_gmt | string | 节目修改时间,GMT时间 |
| type | string | 一般是“program” |
| vsn_name | string | 节目vsn名字 |
| program_source_thumbnail | string | 节目缩略图 |
| program_info | object | 创建的节目信息,就是创建节目的节目参数(忽略里面的字段解释) |
# 调用示例及返回结果:
