# HG changeset patch # User Matti Hamalainen # Date 1579752014 -7200 # Node ID 01f226d6a992617f572e7e21411fb8496854b6a0 # Parent c2209251fa3324c2c20334722c5e3a3c5aa3f79a weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing. diff -r c2209251fa33 -r 01f226d6a992 config.weather.example --- a/config.weather.example Thu Jan 23 05:58:24 2020 +0200 +++ b/config.weather.example Thu Jan 23 06:00:14 2020 +0200 @@ -37,19 +37,45 @@ ### set weather_msg_list_station [list "\002@station@\002 ( http://www.google.fi/maps/@@c_lat@,@c_lng@,18z )"] -set weather_msg_wind_directions [list "pohjoinen (N)" "koillinen (NE)" "itä (E)" "kaakko (SE)" "etelä (S) " "lounas (SW) " "länsi (W)" "luode (NW)" ] -#set weather_msg_wind_directions [list "pohjoinen" "koillinen" "itä" "kaakko" "etelä" "lounas" "länsi" "luode" ] - -set weather_msg_cloudiness_status [list "selkeää" "melkein selkeää" "verrattain selkeää" "verrattain selkeää" "puolipilvistä" "verrattain pilvistä" "verrattain pilvistä" "melkein pilvistä" "pilvistä" ] +set weather_msg_wind_directions [list] +lappend weather_msg_wind_directions "pohjoinen (N)" +lappend weather_msg_wind_directions "koillinen (NE)" +lappend weather_msg_wind_directions "itä (E)" +lappend weather_msg_wind_directions "kaakko (SE)" +lappend weather_msg_wind_directions "etelä (S)" +lappend weather_msg_wind_directions "lounas (SW)" +lappend weather_msg_wind_directions "länsi (W)" +lappend weather_msg_wind_directions "luode (NW)" -set weather_msg_result [list "\002@station@\002, mitattu klo @ctime@: \002@temp@°C\002"] +set weather_msg_cloudiness [list] +lappend weather_msg_cloudiness "selkeää" +lappend weather_msg_cloudiness "melkein selkeää" +lappend weather_msg_cloudiness "verrattain selkeää" +lappend weather_msg_cloudiness "verrattain selkeää" +lappend weather_msg_cloudiness "puolipilvistä" +lappend weather_msg_cloudiness "verrattain pilvistä" +lappend weather_msg_cloudiness "verrattain pilvistä" +lappend weather_msg_cloudiness "melkein pilvistä" +lappend weather_msg_cloudiness "pilvistä" + + +set weather_msg_precipitation [list] +lappend weather_msg_precipitation "poutaa" +lappend weather_msg_precipitation "" +lappend weather_msg_precipitation "" +lappend weather_msg_precipitation "" +lappend weather_msg_precipitation "heikkoa lumisadetta/räntää" + + +set weather_msg_result [list] +lappend weather_msg_result "\002@station@\002, mitattu klo @ctime@: \002@temp@°C\002" lappend weather_msg_result ", tien pinta @road_surface_temp@°C" lappend weather_msg_result ", kosteus \002@humidity@%\002" lappend weather_msg_result ", tuuli \002@wind_speed@\002 m/s" #lappend weather_msg_result " (suunta \002@wind_direction@\002 - @wind_direction_deg@°)" lappend weather_msg_result " (suunta \002@wind_direction@\002)" -lappend weather_msg_result ", pilvipeite \002@cloudiness@\002" +lappend weather_msg_result ", pilvipeite \002@cloudiness@\002 (@cloudiness_val@)" lappend weather_msg_result ", näkyvyys \002@visibility@ km\002" lappend weather_msg_result "."