annotate config.weather.example @ 419:3566fdca974b

weather: Rename a string token.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 08 Jan 2017 00:56:13 +0200
parents e904b453a06a
children db6e1d39db11
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
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 # Channels where weather functionality is enabled
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 # set weather_channels "#foobar;#baz"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 # You can use * to match substrings or everything
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 set weather_channels "*"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 # 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
14 # Multiple can be specified as "foo;bar;etc"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 set weather_default_locations "raahe lapaluoto;tie 8 pattijoki"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 # 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
18 set weather_datafile "/home/niinuska/bot/weather.data"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 # Alias data file
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 set weather_aliasfile "/home/niinuska/bot/weather.alias"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 # How often to check the weather data file for updates (in minutes)
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 set weather_check_period 2
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 # Max number of results to be listed
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 set weather_max_results 3
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 # Enable or disable some log messages in bot log
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 set weather_logmsg 1
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 set weather_preferredmsg "PRIVMSG"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 ###
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 ### Messages
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 ###
419
3566fdca974b weather: Rename a string token.
Matti Hamalainen <ccr@tnsp.org>
parents: 418
diff changeset
38 set weather_msg_list_station [list "\002@station@\002 ( http://www.google.fi/maps/@@c_lat@,@c_lng@,15z )"]
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
39
e904b453a06a weather: Show weather station coordinates and Google Maps link in the station list search.
Matti Hamalainen <ccr@tnsp.org>
parents: 285
diff changeset
40
285
259f093c9503 weather: Make some more messages configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
41 set weather_msg_result [list "\002@station@\002, mitattu klo @ctime@: \002@temp@°C\002"]
259f093c9503 weather: Make some more messages configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
42 lappend weather_msg_result ", @weather1@"
259f093c9503 weather: Make some more messages configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
43 lappend weather_msg_result ", keli @weather2@"
259f093c9503 weather: Make some more messages configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
44 lappend weather_msg_result ", tien pinta @road_temp@°C"
259f093c9503 weather: Make some more messages configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
45 lappend weather_msg_result ", kosteus \002@humidity@%\002"
259f093c9503 weather: Make some more messages configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
46 lappend weather_msg_result ", tuuli \002@wind_speed@\002 m/s"
259f093c9503 weather: Make some more messages configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 274
diff changeset
47 lappend weather_msg_result ", pilvipeite \002@cloud_cover@\002"
274
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
48
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
49
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
50 set weather_msg_usage_prefix_1 "Käyttö: !sää "
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
51 set weather_msg_usage_prefix_2 " !sää "
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
52
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
53 set weather_msg_usage_def_set "vakio <paikka>\[;<paikka2>\] -- asettaa vakiohavaintoaseman\nvakio -- näyttää nykyisen"
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
54 set weather_msg_usage_alias "alias <alias> = <nimi> (Lisää alias-nimen, esim. alias perse = turku)"
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
55 set weather_msg_usage_unalias "unalias <alias> (Poistaa aliaksen)"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57 set weather_msg_usage_stations "asemat <patterni> -- listaa mittausasemat joiden nimi matsaa patternin kanssa"
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 set weather_msg_usage_full "\[paikka\]\n$weather_msg_usage_def_set\n$weather_msg_usage_alias\n$weather_msg_usage_unalias\n$weather_msg_usage_stations"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61 set weather_msg_def_set "Vakio-havaintoasemiksi asetettu: \002%1\002."
274
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
62 set weather_msg_defloc "Käyttäjän \002%1\002 vakio-havaintoasemat ovat: \002%2\002."
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
63 set weather_msg_def_not_set "Vakio-havaintoasemia ei asetettu käyttäjälle \002%1\002."
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
64
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
65 set weather_msg_aliased "Aliasoitiin \002%1\002 = \002%2\002."
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
66 set weather_msg_unaliased "Unaliasoitiin \002%1\002."
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
67 set weather_msg_aliases "Aliakset: %1"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
68
274
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
69 set weather_msg_user_not_known "Tuntematon käyttäjä."
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
70 set weather_msg_no_access "Ei oikeuksia muuttaa asetuksia."
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 set weather_msg_stations "Mittausasemat: %1"
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
73
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
74 set weather_msg_no_results "\002%1\002: Ei mittaustietoja."
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
75 set weather_msg_no_data_for_location "\002%1\002: Paikkakunnan tietoja ei saatu."
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
76
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
77
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
78 ###
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
79 ### Bind commands
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
80 ###
274
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
81 bind pub - !sää weather_cmd_pub
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
82 bind pub - !saa weather_cmd_pub
274
02680c664ccb ISO88591 -> UTF8.
Matti Hamalainen <ccr@tnsp.org>
parents: 273
diff changeset
83 bind msg - !sää weather_cmd_msg
273
38a5bce4b078 weather: Move configuration to separate file.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
84 bind msg - !saa weather_cmd_msg