天氣圖示

天氣圖示可作為普通符號使用。這些可以按照以下方式直接將值傳遞給視覺化:

"_weather_ICON"

此處,字串必須由SPS的VISU變數傳遞到圖像元素。所有OpenWeatherMap介面的符號都直接受支持。

有以下幾種計算方法:

字串 描述
"_weather_01n" 返回OpenWeatherMap符號。
"_weather_800" 高精度的白天/夜間無關符號。
"_weather_day-800" 高精度的白天符號。
"_weather_night-800" 高精度的夜間符號。

範例

以下範例顯示了在SPS中計算符號。如果使用ID而不是符號,可以提高精度。

轉換表

轉換表顯示了所有符號及其對應的ID。要在視覺化中輸出符號,必須指定完整路徑。例如 weather/thunderstorm

ID 符號
200, 201, 202, 230, 231, 232 thunderstorm
210, 211, 212, 221 lightning
300, 301, 321, 500 sprinkle
302, 311, 312, 314, 501, 502, 503, 504 rain
310, 511, 611, 612, 615, 616, 620 rain-mix
313, 520, 521, 522 showers
531, 901 storm-showers
600, 601, 621, 622 snow
602 sleet
701, 741 fog
711 smoke
721 day-haze
731, 761, 762 dust
771, 801, 802, 803 cloudy-gusts
800 day-sunny 或 night-clear
804 cloudy
781, 900 tornado
902 hurricane
903 snowflake-cold
904 hot
905 windy
906 hail
957 strong-wind