mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-24 12:20:59 +00:00
Fixes #2953 This is an attempt to fix the issue with precipitation amount and percentage mixup. I have created a separate `precipitationPercentage`-variable where the probability of rain can be stored. The config options now has the old `showPrecipitationAmount` in addition to a new setting: `showPrecipitationProbability` (shows the likelihood of rain). <details> <summary>Examples</summary> ### Yr I tested the Yr weather provider for a Norwegian city Bergen that has a lot of rain. I have removed properties that are irrelevant for this demo from the config-samples below. Config: ```js { module: "weather", config: { weatherProvider: "yr", type: "current", showPrecipitationAmount: true, showPrecipitationProbability: true } }, { module: "weather", config: { weatherProvider: "yr", type: "hourly", showPrecipitationAmount: true, showPrecipitationProbability: true } }, { module: "weather", config: { weatherProvider: "yr", type: "daily", showPrecipitationAmount: true, showPrecipitationProbability: true } } ``` Result:<br/> <img width="444" alt="screenshot" src="https://user-images.githubusercontent.com/34011212/216775423-4e37345c-f915-47e5-8551-7c544ebd24b1.png"> </details> --------- Co-authored-by: Magnus Marthinsen <magmar@online.no> Co-authored-by: Veeck <github@veeck.de>
45 lines
1.4 KiB
JSON
45 lines
1.4 KiB
JSON
{
|
|
"LOADING": "正在載入 …",
|
|
|
|
"TODAY": "今天",
|
|
"TOMORROW": "明天",
|
|
"DAYAFTERTOMORROW": "後天",
|
|
"RUNNING": "結束日期",
|
|
"EMPTY": "沒有更多的活動。",
|
|
"WEEK": "第 {weekNumber} 週",
|
|
|
|
"N": "北風",
|
|
"NNE": "北偏東風",
|
|
"NE": "東北風",
|
|
"ENE": "東偏北風",
|
|
"E": "東風",
|
|
"ESE": "東偏南風",
|
|
"SE": "東南風",
|
|
"SSE": "南偏東風",
|
|
"S": "南風",
|
|
"SSW": "南偏西風",
|
|
"SW": "西南風",
|
|
"WSW": "西偏南風",
|
|
"W": "西風",
|
|
"WNW": "西偏北風",
|
|
"NW": "西北風",
|
|
"NNW": "北偏西風",
|
|
|
|
"FEELS": "體感溫度 {DEGREE}",
|
|
"PRECIP_POP": "降雨機率",
|
|
|
|
"MODULE_CONFIG_CHANGED": "模組 {MODULE_NAME} 的設定檔選項已更改。\n請參見說明文件。",
|
|
"MODULE_CONFIG_ERROR": "{MODULE_NAME} 模組發生錯誤。{ERROR}",
|
|
"MODULE_ERROR_MALFORMED_URL": "網址格式錯誤。",
|
|
"MODULE_ERROR_NO_CONNECTION": "無網路連線。",
|
|
"MODULE_ERROR_UNAUTHORIZED": "授權失敗。",
|
|
"MODULE_ERROR_UNSPECIFIED": "查看日誌以了解詳情。",
|
|
|
|
"NEWSFEED_NO_ITEMS": "目前沒有新聞。",
|
|
|
|
"UPDATE_NOTIFICATION": "MagicMirror² 有可用更新。",
|
|
"UPDATE_NOTIFICATION_MODULE": "{MODULE_NAME} 模組有可用更新。",
|
|
"UPDATE_INFO_SINGLE": "目前版本在 {BRANCH_NAME} 分支上已落後了 {COMMIT_COUNT} 次 commit。",
|
|
"UPDATE_INFO_MULTIPLE": "目前版本在 {BRANCH_NAME} 分支上已落後了 {COMMIT_COUNT} 次 commit。"
|
|
}
|