# HG changeset patch # User Matti Hamalainen # Date 1579752846 -7200 # Node ID 7c4cef80f826401c47ce87ddc21a8f612f5bf281 # Parent f31cb0b7d0c00571c72a0f8ec15b57a34ad905d1 weather: Add some comments to the example configuration. diff -r f31cb0b7d0c0 -r 7c4cef80f826 config.weather.example --- a/config.weather.example Thu Jan 23 06:04:58 2020 +0200 +++ b/config.weather.example Thu Jan 23 06:14:06 2020 +0200 @@ -37,6 +37,8 @@ ### set weather_msg_list_station [list "\002@station@\002 ( http://www.google.fi/maps/@@c_lat@,@c_lng@,18z )"] + +# Array/list of wind directions (8 in total) set weather_msg_wind_directions [list] lappend weather_msg_wind_directions "pohjoinen (N)" lappend weather_msg_wind_directions "koillinen (NE)" @@ -48,6 +50,8 @@ lappend weather_msg_wind_directions "luode (NW)" +# Array/list of FMI cloudiness value descriptions (9 total) +# randing from "clear" to "fully cloudy" set weather_msg_cloudiness [list] lappend weather_msg_cloudiness "selkeää" lappend weather_msg_cloudiness "melkein selkeää" @@ -60,6 +64,7 @@ lappend weather_msg_cloudiness "pilvistä" +# Array/list of Tiehallinto precipitation value descriptions set weather_msg_precipitation [list] lappend weather_msg_precipitation "poutaa" lappend weather_msg_precipitation "" @@ -68,6 +73,10 @@ lappend weather_msg_precipitation "heikkoa lumisadetta/räntää" +# Array/list containing optional parts of the result message for one +# one measurement station. Every array element except the first one +# are optional and will only be appended to result string IF the +# named @token@ value is "set" e.g. not empty or in some cases invalid. 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"