annotate config.weather.example @ 698:6ba9f961e463 default tip

quotedb: Bump version and copyright.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 18 Sep 2023 11:38:41 +0300
parents e1aba44b8c7b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 ##########################################################################
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 #
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 # Weather script configuration
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 ##########################################################################
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
538
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
7 ###
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
8 ### Bind commands
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
9 ###
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
10 bind pub - !sää weather_cmd_pub
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
11 bind pub - !saa weather_cmd_pub
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
12 bind msg - !sää weather_cmd_msg
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
13 bind msg - !saa weather_cmd_msg
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
14
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
15 bind pub - !sää weather_cmd_pub
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
16 bind pub - !saa weather_cmd_pub
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
17 bind msg - !sää weather_cmd_msg
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
18 bind msg - !saa weather_cmd_msg
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
19
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
20
562
15bc88a1477a weather: Add setting weather_cmd_name for specifying the command name used for help texts.
Matti Hamalainen <ccr@tnsp.org>
parents: 558
diff changeset
21 # Name of the command used for help texts
15bc88a1477a weather: Add setting weather_cmd_name for specifying the command name used for help texts.
Matti Hamalainen <ccr@tnsp.org>
parents: 558
diff changeset
22 set weather_cmd_name "!saa"
15bc88a1477a weather: Add setting weather_cmd_name for specifying the command name used for help texts.
Matti Hamalainen <ccr@tnsp.org>
parents: 558
diff changeset
23
15bc88a1477a weather: Add setting weather_cmd_name for specifying the command name used for help texts.
Matti Hamalainen <ccr@tnsp.org>
parents: 558
diff changeset
24
600
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
25 # Sub-command name regexp patterns
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
26 array set weather_commands {
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
27 "help" {^(\?|help|apua)$}
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
28 "stations" {^(stations|asemat)$}
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
29 "nearest" {^(lahin|lähin|lähin|closest|nearest)$}
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
30 "default" {^(vakiot?|defaults?)$}
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
31 "alias" {^(alias)$}
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
32 "unalias" {^(unalias)$}
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
33 "list" {^(list|listaa?)$}
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
34 }
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
35
90da5691cc81 weather: Use new command matching.
Matti Hamalainen <ccr@tnsp.org>
parents: 576
diff changeset
36
538
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
37 ###
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
38 ### Settings
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
39 ###
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 # Channels where weather functionality is enabled
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 # set weather_channels "#foobar;#baz"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 # You can use * to match substrings or everything
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43 set weather_channels "*"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 # Default location if none given and none set by user.
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47 # Multiple can be specified as "foo;bar;etc"
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
48 set weather_default_locations "raahe lapaluoto;pattijoki"
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 # Weather data file, must match the one in fetch_weather.pl's config
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51 set weather_datafile "/home/niinuska/bot/weather.data"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53 # Alias data file
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54 set weather_aliasfile "/home/niinuska/bot/weather.alias"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
55
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56 # How often to check the weather data file for updates (in minutes)
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
57 set weather_check_period 1
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
59 # Max number of results to be listed
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60 set weather_max_results 3
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
62
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
63 # 1 = Enable logging of various script actions into bot's log
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
64 # 0 = Don't.
550
85fe3bc36307 Rename *_logmsg settings to *_log_enable.
Matti Hamalainen <ccr@tnsp.org>
parents: 543
diff changeset
65 set weather_log_enable 1
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
66
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
67
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
68 # What IRC "command" should we use to send messages:
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
69 # (Valid alternatives are "PRIVMSG" and "NOTICE")
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
70 set weather_preferredmsg "PRIVMSG"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
71
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
72
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
73 ###
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
74 ### Message texts (informal, errors, etc.)
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
75 ###
430
8efbb045d44d weather: Implement searching for nearest of measurement stations based on given lat/long coordinates.
Matti Hamalainen <ccr@tnsp.org>
parents: 420
diff changeset
76 set weather_msg_list_station [list "\002@station@\002 ( http://www.google.fi/maps/@@c_lat@,@c_lng@,18z )"]
418
e904b453a06a weather: Show weather station coordinates and Google Maps link in the station list search.
Matti Hamalainen <ccr@tnsp.org>
parents: 285
diff changeset
77
501
7c4cef80f826 weather: Add some comments to the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 498
diff changeset
78
7c4cef80f826 weather: Add some comments to the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 498
diff changeset
79 # Array/list of wind directions (8 in total)
498
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
80 set weather_msg_wind_directions [list]
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
81 lappend weather_msg_wind_directions "pohjoinen (N)"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
82 lappend weather_msg_wind_directions "koillinen (NE)"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
83 lappend weather_msg_wind_directions "itä (E)"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
84 lappend weather_msg_wind_directions "kaakko (SE)"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
85 lappend weather_msg_wind_directions "etelä (S)"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
86 lappend weather_msg_wind_directions "lounas (SW)"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
87 lappend weather_msg_wind_directions "länsi (W)"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
88 lappend weather_msg_wind_directions "luode (NW)"
490
0d6dfcc1c957 weather: Add translation of weather direction angle.
Matti Hamalainen <ccr@tnsp.org>
parents: 489
diff changeset
89
418
e904b453a06a weather: Show weather station coordinates and Google Maps link in the station list search.
Matti Hamalainen <ccr@tnsp.org>
parents: 285
diff changeset
90
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
91 # Array/list of FMI cloudiness value descriptions
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
92 # (9 values ranging from "clear" to "cloudy")
498
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
93 set weather_msg_cloudiness [list]
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
94 lappend weather_msg_cloudiness "selkeää"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
95 lappend weather_msg_cloudiness "melkein selkeää"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
96 lappend weather_msg_cloudiness "verrattain selkeää"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
97 lappend weather_msg_cloudiness "verrattain selkeää"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
98 lappend weather_msg_cloudiness "puolipilvistä"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
99 lappend weather_msg_cloudiness "verrattain pilvistä"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
100 lappend weather_msg_cloudiness "verrattain pilvistä"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
101 lappend weather_msg_cloudiness "melkein pilvistä"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
102 lappend weather_msg_cloudiness "pilvistä"
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
103
576
84e2f0dab633 weather: Update configuration example.
Matti Hamalainen <ccr@tnsp.org>
parents: 562
diff changeset
104 # 10 = fully cloudy
84e2f0dab633 weather: Update configuration example.
Matti Hamalainen <ccr@tnsp.org>
parents: 562
diff changeset
105 lappend weather_msg_cloudiness "täysin pilvistä"
84e2f0dab633 weather: Update configuration example.
Matti Hamalainen <ccr@tnsp.org>
parents: 562
diff changeset
106
498
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
107
501
7c4cef80f826 weather: Add some comments to the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 498
diff changeset
108 # Array/list of Tiehallinto precipitation value descriptions
498
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
109 set weather_msg_precipitation [list]
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
110 lappend weather_msg_precipitation "poutaa"
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
111 lappend weather_msg_precipitation "heikkoa sadetta"
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
112 lappend weather_msg_precipitation "kohtalaista sadetta"
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
113 lappend weather_msg_precipitation "voimakasta sadetta"
498
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
114 lappend weather_msg_precipitation "heikkoa lumisadetta/räntää"
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
115 lappend weather_msg_precipitation "kohtalaista lumisadetta/räntää"
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
116 lappend weather_msg_precipitation "voimakasta lumisadetta/räntää"
498
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
117
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
118
501
7c4cef80f826 weather: Add some comments to the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 498
diff changeset
119 # Array/list containing optional parts of the result message for one
7c4cef80f826 weather: Add some comments to the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 498
diff changeset
120 # one measurement station. Every array element except the first one
7c4cef80f826 weather: Add some comments to the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 498
diff changeset
121 # are optional and will only be appended to result string IF the
7c4cef80f826 weather: Add some comments to the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 498
diff changeset
122 # named @token@ value is "set" e.g. not empty or in some cases invalid.
498
01f226d6a992 weather: Split some of the message arrays/list items to separate lines for clarity and ease of editing.
Matti Hamalainen <ccr@tnsp.org>
parents: 492
diff changeset
123 set weather_msg_result [list]
576
84e2f0dab633 weather: Update configuration example.
Matti Hamalainen <ccr@tnsp.org>
parents: 562
diff changeset
124 lappend weather_msg_result "\002@station@\002, @ctime@: "
84e2f0dab633 weather: Update configuration example.
Matti Hamalainen <ccr@tnsp.org>
parents: 562
diff changeset
125 lappend weather_msg_result "\002@temp@°C\002"
84e2f0dab633 weather: Update configuration example.
Matti Hamalainen <ccr@tnsp.org>
parents: 562
diff changeset
126 lappend weather_msg_result ", tie @road_surface_temp@°C"
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
127 lappend weather_msg_result ", kosteus \002@humidity@\002%"
285
259f093c9503 weather: Make some more messages configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
128 lappend weather_msg_result ", tuuli \002@wind_speed@\002 m/s"
533
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
129 #lappend weather_msg_result " (suunta @wind_direction@ - @wind_direction_deg@°)"
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
130 lappend weather_msg_result " - @wind_direction@"
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
131 lappend weather_msg_result ", \002@cloudiness@\002 (@cloudiness_val@)"
195db79c82a8 weather: Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 501
diff changeset
132 lappend weather_msg_result ", näkyvyys @visibility@ km"
576
84e2f0dab633 weather: Update configuration example.
Matti Hamalainen <ccr@tnsp.org>
parents: 562
diff changeset
133 #lappend weather_msg_result ", @precipitation@ (@precipitation2@ = @precipitation_val@)"
84e2f0dab633 weather: Update configuration example.
Matti Hamalainen <ccr@tnsp.org>
parents: 562
diff changeset
134 lappend weather_msg_result ", @precipitation2@"
420
db6e1d39db11 Add a missing comma.
Matti Hamalainen <ccr@tnsp.org>
parents: 419
diff changeset
135 lappend weather_msg_result "."
274
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
136
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
137
538
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
138 array set weather_messages {
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
139
682
de6cab61061f weather: Add 'minmax' to the help in example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 600
diff changeset
140 "help_single" "@cmd@ \[paikka | minmax\]"
558
e0ff67318a99 weather: Rename some message ids, cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 553
diff changeset
141 "help_full" {"help_single" "help_stations" "help_def_set" "help_nearest" "help_alias" "help_unalias" "help_list" }
274
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
142
553
df8b3710e120 weather: Reorder few things in the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 550
diff changeset
143 "no_results" "\002@1@\002: Ei mittaustietoja."
df8b3710e120 weather: Reorder few things in the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 550
diff changeset
144 "no_data_for_location" "\002@1@\002: Paikkakunnan tietoja ei saatu."
df8b3710e120 weather: Reorder few things in the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 550
diff changeset
145
df8b3710e120 weather: Reorder few things in the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 550
diff changeset
146 "temp_min" "Min: @1@"
df8b3710e120 weather: Reorder few things in the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 550
diff changeset
147 "temp_max" "Max: @1@"
df8b3710e120 weather: Reorder few things in the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 550
diff changeset
148 "temp_minmax" "Min: @1@\nMax: @2@"
df8b3710e120 weather: Reorder few things in the example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 550
diff changeset
149
538
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
150 "list_nearest" $weather_msg_list_station
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
151 "nearest_stations" "Lähimmät mittausasemat (@1@, @2@): @3@"
558
e0ff67318a99 weather: Rename some message ids, cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 553
diff changeset
152 "help_nearest" "@cmd@ lähin <lat>\[, \]<long> -- näyttää annettuja koordinaatteja lähimpänä olevat mittausasemat"
540
3174701325c0 weather: Fixes to the help.
Matti Hamalainen <ccr@tnsp.org>
parents: 538
diff changeset
153 "nearest_invalid" "@cmd@ lähin <lat>\[, \]<long> -- näyttää annettuja koordinaatteja lähimpänä olevat mittausasemat"
430
8efbb045d44d weather: Implement searching for nearest of measurement stations based on given lat/long coordinates.
Matti Hamalainen <ccr@tnsp.org>
parents: 420
diff changeset
154
538
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
155 "def_set_to" "Vakio-havaintoasemiksi asetettu: \002@1@\002."
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
156 "def_value" "Käyttäjän \002@1@\002 vakio-havaintoasemat ovat: \002@2@\002."
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
157 "def_not_set" "Vakio-havaintoasemia ei asetettu käyttäjälle \002@1@\002."
558
e0ff67318a99 weather: Rename some message ids, cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 553
diff changeset
158 "help_def_set" "@cmd@ vakio <paikka>\[;<paikka2>\] -- asettaa vakiohavaintoaseman\n@cmd@ vakio -- näyttää nykyisen vakiohavaintoaseman jos asetettu"
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
159
543
a513b98f2a37 weather: Improve alias handling and do some work on stations listing.
Matti Hamalainen <ccr@tnsp.org>
parents: 540
diff changeset
160 "alias_set" "Luotiin alias \002@1@\002 = \002@2@\002."
a513b98f2a37 weather: Improve alias handling and do some work on stations listing.
Matti Hamalainen <ccr@tnsp.org>
parents: 540
diff changeset
161 "alias_updated" "Päivitettiin alias \002@1@\002 = \002@2@ -> @3@\002."
a513b98f2a37 weather: Improve alias handling and do some work on stations listing.
Matti Hamalainen <ccr@tnsp.org>
parents: 540
diff changeset
162 "alias_unset" "Poistettiin alias \002@1@ = @2@\002."
540
3174701325c0 weather: Fixes to the help.
Matti Hamalainen <ccr@tnsp.org>
parents: 538
diff changeset
163 "alias_item" "\002'@1@' = '@2@'\002"
3174701325c0 weather: Fixes to the help.
Matti Hamalainen <ccr@tnsp.org>
parents: 538
diff changeset
164 "alias_list" "Aliakset: @1@"
543
a513b98f2a37 weather: Improve alias handling and do some work on stations listing.
Matti Hamalainen <ccr@tnsp.org>
parents: 540
diff changeset
165 "alias_list_sep" ", "
a513b98f2a37 weather: Improve alias handling and do some work on stations listing.
Matti Hamalainen <ccr@tnsp.org>
parents: 540
diff changeset
166 "alias_not_exist" "Aliasta '@1@' ei ole olemassa."
558
e0ff67318a99 weather: Rename some message ids, cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 553
diff changeset
167 "help_alias" "@cmd@ alias <alias> = <nimi> -- lisää alias-nimen, esim. alias perse = turku"
e0ff67318a99 weather: Rename some message ids, cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 553
diff changeset
168 "help_unalias" "@cmd@ unalias <alias> -- poistaa aliaksen"
e0ff67318a99 weather: Rename some message ids, cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 553
diff changeset
169 "help_list" "@cmd@ list -- listaa määritellyt aliakset"
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
170
538
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
171 "user_not_known" "Tuntematon käyttäjä."
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
172 "no_access" "Ei oikeuksia muuttaa asetuksia."
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
173
540
3174701325c0 weather: Fixes to the help.
Matti Hamalainen <ccr@tnsp.org>
parents: 538
diff changeset
174 "stations_list" "Mittausasemat: @1@"
691
e1aba44b8c7b weather: Show limit of matches.
Matti Hamalainen <ccr@tnsp.org>
parents: 682
diff changeset
175 "stations_limit" " Yli @1@ osumaa, kaikkia ei listata."
543
a513b98f2a37 weather: Improve alias handling and do some work on stations listing.
Matti Hamalainen <ccr@tnsp.org>
parents: 540
diff changeset
176 "stations_no_matches" "Ei osumia."
558
e0ff67318a99 weather: Rename some message ids, cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 553
diff changeset
177 "help_stations" "@cmd@ asemat <patterni> -- listaa mittausasemat joiden nimi matsaa patternin kanssa"
538
f07c972e269a weather: Refactor much of the messages system to match the quotedb one.
Matti Hamalainen <ccr@tnsp.org>
parents: 533
diff changeset
178 }