comparison config.weather.example @ 533:195db79c82a8

weather: Update example configuration.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 07 Jul 2020 14:31:15 +0300
parents 7c4cef80f826
children f07c972e269a
comparison
equal deleted inserted replaced
532:15bbd5b2bd73 533:195db79c82a8
10 set weather_channels "*" 10 set weather_channels "*"
11 11
12 12
13 # Default location if none given and none set by user. 13 # Default location if none given and none set by user.
14 # Multiple can be specified as "foo;bar;etc" 14 # Multiple can be specified as "foo;bar;etc"
15 set weather_default_locations "raahe lapaluoto;tie 8 pattijoki" 15 set weather_default_locations "raahe lapaluoto;pattijoki"
16 16
17 # Weather data file, must match the one in fetch_weather.pl's config 17 # Weather data file, must match the one in fetch_weather.pl's config
18 set weather_datafile "/home/niinuska/bot/weather.data" 18 set weather_datafile "/home/niinuska/bot/weather.data"
19 19
20 # Alias data file 20 # Alias data file
21 set weather_aliasfile "/home/niinuska/bot/weather.alias" 21 set weather_aliasfile "/home/niinuska/bot/weather.alias"
22 22
23 # How often to check the weather data file for updates (in minutes) 23 # How often to check the weather data file for updates (in minutes)
24 set weather_check_period 2 24 set weather_check_period 1
25 25
26 # Max number of results to be listed 26 # Max number of results to be listed
27 set weather_max_results 3 27 set weather_max_results 3
28 28
29 29
30 # Enable or disable some log messages in bot log 30 # 1 = Enable logging of various script actions into bot's log
31 # 0 = Don't.
31 set weather_logmsg 1 32 set weather_logmsg 1
33
34
35 # What IRC "command" should we use to send messages:
36 # (Valid alternatives are "PRIVMSG" and "NOTICE")
32 set weather_preferredmsg "PRIVMSG" 37 set weather_preferredmsg "PRIVMSG"
33 38
34 39
35 ### 40 ###
36 ### Messages 41 ### Message texts (informal, errors, etc.)
37 ### 42 ###
38 set weather_msg_list_station [list "\002@station@\002 ( http://www.google.fi/maps/@@c_lat@,@c_lng@,18z )"] 43 set weather_msg_list_station [list "\002@station@\002 ( http://www.google.fi/maps/@@c_lat@,@c_lng@,18z )"]
39 44
40 45
41 # Array/list of wind directions (8 in total) 46 # Array/list of wind directions (8 in total)
48 lappend weather_msg_wind_directions "lounas (SW)" 53 lappend weather_msg_wind_directions "lounas (SW)"
49 lappend weather_msg_wind_directions "länsi (W)" 54 lappend weather_msg_wind_directions "länsi (W)"
50 lappend weather_msg_wind_directions "luode (NW)" 55 lappend weather_msg_wind_directions "luode (NW)"
51 56
52 57
53 # Array/list of FMI cloudiness value descriptions (9 total) 58 # Array/list of FMI cloudiness value descriptions
54 # randing from "clear" to "fully cloudy" 59 # (9 values ranging from "clear" to "cloudy")
55 set weather_msg_cloudiness [list] 60 set weather_msg_cloudiness [list]
56 lappend weather_msg_cloudiness "selkeää" 61 lappend weather_msg_cloudiness "selkeää"
57 lappend weather_msg_cloudiness "melkein selkeää" 62 lappend weather_msg_cloudiness "melkein selkeää"
58 lappend weather_msg_cloudiness "verrattain selkeää" 63 lappend weather_msg_cloudiness "verrattain selkeää"
59 lappend weather_msg_cloudiness "verrattain selkeää" 64 lappend weather_msg_cloudiness "verrattain selkeää"
65 70
66 71
67 # Array/list of Tiehallinto precipitation value descriptions 72 # Array/list of Tiehallinto precipitation value descriptions
68 set weather_msg_precipitation [list] 73 set weather_msg_precipitation [list]
69 lappend weather_msg_precipitation "poutaa" 74 lappend weather_msg_precipitation "poutaa"
70 lappend weather_msg_precipitation "" 75 lappend weather_msg_precipitation "heikkoa sadetta"
71 lappend weather_msg_precipitation "" 76 lappend weather_msg_precipitation "kohtalaista sadetta"
72 lappend weather_msg_precipitation "" 77 lappend weather_msg_precipitation "voimakasta sadetta"
73 lappend weather_msg_precipitation "heikkoa lumisadetta/räntää" 78 lappend weather_msg_precipitation "heikkoa lumisadetta/räntää"
79 lappend weather_msg_precipitation "kohtalaista lumisadetta/räntää"
80 lappend weather_msg_precipitation "voimakasta lumisadetta/räntää"
74 81
75 82
76 # Array/list containing optional parts of the result message for one 83 # Array/list containing optional parts of the result message for one
77 # one measurement station. Every array element except the first one 84 # one measurement station. Every array element except the first one
78 # are optional and will only be appended to result string IF the 85 # are optional and will only be appended to result string IF the
79 # named @token@ value is "set" e.g. not empty or in some cases invalid. 86 # named @token@ value is "set" e.g. not empty or in some cases invalid.
80 set weather_msg_result [list] 87 set weather_msg_result [list]
81 lappend weather_msg_result "\002@station@\002, mitattu klo @ctime@: \002@temp@°C\002" 88 lappend weather_msg_result "\002@station@\002, @ctime@: \002@temp@°C\002"
82 lappend weather_msg_result ", tien pinta @road_surface_temp@°C" 89 lappend weather_msg_result ", tien pinta @road_surface_temp@°C"
83 lappend weather_msg_result ", kosteus \002@humidity@%\002" 90 lappend weather_msg_result ", kosteus \002@humidity@\002%"
84 lappend weather_msg_result ", tuuli \002@wind_speed@\002 m/s" 91 lappend weather_msg_result ", tuuli \002@wind_speed@\002 m/s"
85 #lappend weather_msg_result " (suunta \002@wind_direction@\002 - @wind_direction_deg@°)" 92 #lappend weather_msg_result " (suunta @wind_direction@ - @wind_direction_deg@°)"
86 lappend weather_msg_result " (suunta \002@wind_direction@\002)" 93 lappend weather_msg_result " - @wind_direction@"
87 lappend weather_msg_result ", pilvipeite \002@cloudiness@\002 (@cloudiness_val@)" 94 lappend weather_msg_result ", \002@cloudiness@\002 (@cloudiness_val@)"
88 lappend weather_msg_result ", näkyvyys \002@visibility@ km\002" 95 lappend weather_msg_result ", näkyvyys @visibility@ km"
89 lappend weather_msg_result "." 96 lappend weather_msg_result "."
90 97
91 98
92 set weather_msg_usage_prefix_1 "Käyttö: !sää " 99 set weather_msg_usage_prefix_1 "Käyttö: !sää "
93 set weather_msg_usage_prefix_2 " !sää " 100 set weather_msg_usage_prefix_2 " !sää "