changeset 183:4abb7a940e24

weather: Add comments.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Jun 2014 21:38:17 +0300
parents 24f9f38210fe
children a496dc87a7c1
files weather.tcl
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/weather.tcl	Tue Jun 03 21:37:59 2014 +0300
+++ b/weather.tcl	Tue Jun 03 21:38:17 2014 +0300
@@ -3,21 +3,30 @@
 # Weather v0.1 by Matti 'ccr' Hamalainen <ccr@tnsp.org>
 # (C) Copyright 2014 Tecnic Software productions (TNSP)
 #
-# Requires get_weather.tcl to be run as a cronjob, for example
-# 15 * * * *     /absolute/path/to/get_weather.tcl
+# Requires data fetcher to be run as a cronjob, see fetch_weather.pl
+# for more information.
 #
 # This script is freely distributable under GNU GPL (version 2) license.
 #
 ##########################################################################
 
+# Default location if none given and none set by user.
+# Multiple can be specified as "foo;bar;etc"
 set weather_default_locations "raahe"
 
+# Weather data file, must match the one in fetch_weather.pl's config
 set weather_datafile "/home/niinuska/bot/weather.data"
+
+# Alias data file
 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
 
+# Max number of results to be listed
 set weather_max_results 3
 
+# ...
 set weather_logmsg 1
 set weather_preferredmsg "PRIVMSG"