日単位の天気予報サンプルは、Teams チャネルに日単位の天気の更新情報を投稿するための、MSN 天気予報で使用するために設計されたアダプティブ カードです。
入力/出力とメモ
動的トークンの名称 | プレースホルダー テキスト | メモ |
---|---|---|
{acCityState} | テンプレートを参照 | 表示テキスト 変数は、市区町村、都道府県、または郵便番号の値を保持するために使用できる |
{acDailySummary} | テンプレートを参照 | テキストの表示 |
{acCurrentDateTime} | テンプレートを参照 | テキストの表示 |
{acUrlConditionsImage} | テンプレートを参照 | 表示テキスト テンプレートのコメントを参照。有効な URL に置き換える必要があります。 |
{acCurrentTemperature} | テンプレートを参照 | テキストの表示 |
{actempHi} | テンプレートを参照 | テキストの表示 |
{actempLow} | テンプレートを参照 | テキストの表示 |
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "{acCity}, {acState}",
"size": "Large",
"isSubtle": true
},
{
"type": "TextBlock",
"text": "{acCurrentDateTime}",
"spacing": "None"
},
{
"type": "TextBlock",
"text": "{acDailySummary}",
"spacing": "None"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "{acUrlConditionsImage}",
"size": "Large"
}
]
},
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "TextBlock",
"text": "{acCurrentTemperature}",
"size": "ExtraLarge",
"spacing": "None"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "°F",
"weight": "Bolder",
"spacing": "Small"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Hi {actempHi}",
"horizontalAlignment": "Left"
},
{
"type": "TextBlock",
"text": "Lo {actempLow}",
"horizontalAlignment": "Left",
"spacing": "None"
}
]
}
]
}
]
}