Microsoft Band 2 RSS 提要总是说数据获取错误
Microsoft Band 2 RSS feed always says Data fetch error
我有一个 Microsoft Band 2,我正在尝试将 RSS 提要加载到 webtile 中,但它总是显示 "Data fetch error, There seems to be something wrong with the data for this tile... try again later"
- XML 已被 Microsoft Band Tile Creator 成功读取,让我设计我的磁贴并将其毫无问题地部署到我的设备。
- XML 在 w3 上验证。
- XML 在 Web 浏览器中加载并格式化,告诉我它是可读的,但这就是我的磁贴所说的全部内容。
这里是 XML:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="[this was linked to a private feed before posting on Whosebug]" rel="self" type="application/rss+xml" />
<title>test</title>
<link>http://www.microsoft.com/</link>
<description>Test</description>
<language>en-us</language>
<ttl>1</ttl>
<item>
<guid>http://www.microsoft.com/</guid>
<pubDate>Mon, 29 Feb 2016 08:00:00 EST</pubDate>
<title>TEST TITLE</title>
<description>Testing</description>
<link>http://www.microsoft.com/</link>
</item>
</channel>
</rss>
我的清单:
{
"manifestVersion": 1,
"name": "Test tile",
"description": "Test tile",
"version": 1,
"versionString": "1",
"author": "MRW",
"organization": "MRW",
"contactEmail": "",
"tileIcon": {
"46": "icons/tileIcon.png"
},
"badgeIcon": {
"24": "icons/badgeIcon.png"
},
"icons": {},
"refreshIntervalMinutes": 30,
"tileTheme": {
"base": "ffaf00",
"highlight": "ffaf00",
"lowlight": "f99a03",
"secondary": "9e9678",
"highContrast": "ffa500",
"muted": "bc8b00"
},
"resources": [
{
"url": "[this was linked to a private feed before posting on Whosebug]",
"style": "Feed",
"content": {
"_1_title": "title",
"_1_description": "description"
}
}
],
"pages": [
{
"layout": "MSBand_ScrollingText",
"condition": "true",
"textBindings": [
{
"elementId": "1",
"value": "{{_1_title}}"
},
{
"elementId": "2",
"value": "{{_1_description}}"
}
]
}
],
"notifications": [
{
"condition": "{{_1_title}} != \"now\"",
"title": "{{_1_title}}",
"body": "{{_1_description}}"
}
]
}
我的 Microsoft Band 2 可能无法从互联网上获取吗?有什么要检查的吗?
至于我的 XML -- 我是不是漏掉了什么? Band 2
是否还有其他 XML 要求
Microsoft Band 2 发送 "user-agent: Mozilla/5.0" 请求 header。
不幸的是,大多数托管服务提供商都启用了 mod_security,这会阻止 header。
有效的 header 是 "user-agent: Mozilla/5.0 (Windows NT)"、"user-agent: Mozilla/5.0 (test)" 甚至 "user-agent: Mozilla/5.0 ()"
您必须重新配置 mod_security 或禁用它。
我有一个 Microsoft Band 2,我正在尝试将 RSS 提要加载到 webtile 中,但它总是显示 "Data fetch error, There seems to be something wrong with the data for this tile... try again later"
- XML 已被 Microsoft Band Tile Creator 成功读取,让我设计我的磁贴并将其毫无问题地部署到我的设备。
- XML 在 w3 上验证。
- XML 在 Web 浏览器中加载并格式化,告诉我它是可读的,但这就是我的磁贴所说的全部内容。
这里是 XML:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="[this was linked to a private feed before posting on Whosebug]" rel="self" type="application/rss+xml" />
<title>test</title>
<link>http://www.microsoft.com/</link>
<description>Test</description>
<language>en-us</language>
<ttl>1</ttl>
<item>
<guid>http://www.microsoft.com/</guid>
<pubDate>Mon, 29 Feb 2016 08:00:00 EST</pubDate>
<title>TEST TITLE</title>
<description>Testing</description>
<link>http://www.microsoft.com/</link>
</item>
</channel>
</rss>
我的清单:
{
"manifestVersion": 1,
"name": "Test tile",
"description": "Test tile",
"version": 1,
"versionString": "1",
"author": "MRW",
"organization": "MRW",
"contactEmail": "",
"tileIcon": {
"46": "icons/tileIcon.png"
},
"badgeIcon": {
"24": "icons/badgeIcon.png"
},
"icons": {},
"refreshIntervalMinutes": 30,
"tileTheme": {
"base": "ffaf00",
"highlight": "ffaf00",
"lowlight": "f99a03",
"secondary": "9e9678",
"highContrast": "ffa500",
"muted": "bc8b00"
},
"resources": [
{
"url": "[this was linked to a private feed before posting on Whosebug]",
"style": "Feed",
"content": {
"_1_title": "title",
"_1_description": "description"
}
}
],
"pages": [
{
"layout": "MSBand_ScrollingText",
"condition": "true",
"textBindings": [
{
"elementId": "1",
"value": "{{_1_title}}"
},
{
"elementId": "2",
"value": "{{_1_description}}"
}
]
}
],
"notifications": [
{
"condition": "{{_1_title}} != \"now\"",
"title": "{{_1_title}}",
"body": "{{_1_description}}"
}
]
}
我的 Microsoft Band 2 可能无法从互联网上获取吗?有什么要检查的吗?
至于我的 XML -- 我是不是漏掉了什么? Band 2
是否还有其他 XML 要求Microsoft Band 2 发送 "user-agent: Mozilla/5.0" 请求 header。
不幸的是,大多数托管服务提供商都启用了 mod_security,这会阻止 header。
有效的 header 是 "user-agent: Mozilla/5.0 (Windows NT)"、"user-agent: Mozilla/5.0 (test)" 甚至 "user-agent: Mozilla/5.0 ()"
您必须重新配置 mod_security 或禁用它。