# HG changeset patch # User Matti Hamalainen # Date 1594121475 -10800 # Node ID 195db79c82a80d7add5768d0a5eb6bd439c50de4 # Parent 15bbd5b2bd73bae792b1f39019c6e8eb3efa606c weather: Update example configuration. diff -r 15bbd5b2bd73 -r 195db79c82a8 config.weather.example --- a/config.weather.example Tue Jul 07 14:28:33 2020 +0300 +++ b/config.weather.example Tue Jul 07 14:31:15 2020 +0300 @@ -12,7 +12,7 @@ # Default location if none given and none set by user. # Multiple can be specified as "foo;bar;etc" -set weather_default_locations "raahe lapaluoto;tie 8 pattijoki" +set weather_default_locations "raahe lapaluoto;pattijoki" # Weather data file, must match the one in fetch_weather.pl's config set weather_datafile "/home/niinuska/bot/weather.data" @@ -21,19 +21,24 @@ set weather_aliasfile "/home/niinuska/bot/weather.alias" # How often to check the weather data file for updates (in minutes) -set weather_check_period 2 +set weather_check_period 1 # Max number of results to be listed set weather_max_results 3 -# Enable or disable some log messages in bot log +# 1 = Enable logging of various script actions into bot's log +# 0 = Don't. set weather_logmsg 1 + + +# What IRC "command" should we use to send messages: +# (Valid alternatives are "PRIVMSG" and "NOTICE") set weather_preferredmsg "PRIVMSG" ### -### Messages +### Message texts (informal, errors, etc.) ### set weather_msg_list_station [list "\002@station@\002 ( http://www.google.fi/maps/@@c_lat@,@c_lng@,18z )"] @@ -50,8 +55,8 @@ lappend weather_msg_wind_directions "luode (NW)" -# Array/list of FMI cloudiness value descriptions (9 total) -# randing from "clear" to "fully cloudy" +# Array/list of FMI cloudiness value descriptions +# (9 values ranging from "clear" to "cloudy") set weather_msg_cloudiness [list] lappend weather_msg_cloudiness "selkeää" lappend weather_msg_cloudiness "melkein selkeää" @@ -67,10 +72,12 @@ # Array/list of Tiehallinto precipitation value descriptions 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 sadetta" +lappend weather_msg_precipitation "kohtalaista sadetta" +lappend weather_msg_precipitation "voimakasta sadetta" lappend weather_msg_precipitation "heikkoa lumisadetta/räntää" +lappend weather_msg_precipitation "kohtalaista lumisadetta/räntää" +lappend weather_msg_precipitation "voimakasta lumisadetta/räntää" # Array/list containing optional parts of the result message for one @@ -78,14 +85,14 @@ # 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 "\002@station@\002, @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 ", 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 (@cloudiness_val@)" -lappend weather_msg_result ", näkyvyys \002@visibility@ km\002" +#lappend weather_msg_result " (suunta @wind_direction@ - @wind_direction_deg@°)" +lappend weather_msg_result " - @wind_direction@" +lappend weather_msg_result ", \002@cloudiness@\002 (@cloudiness_val@)" +lappend weather_msg_result ", näkyvyys @visibility@ km" lappend weather_msg_result "."