changeset 533:195db79c82a8

weather: Update example configuration.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 07 Jul 2020 14:31:15 +0300
parents 15bbd5b2bd73
children 7512889f7b72
files config.weather.example
diffstat 1 files changed, 22 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- 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 "."