METEOAVG(1)

NAME
meteoavg - compute averages of meteo data

SYNOPSIS
meteoavg [ -d ] [ -a ] [ -F ] [ -iinterval ] [ -llogurl ] [ -ppidfile ] [ -rrepeats ] [ -n ] [ -fconffile ] -sstation [ from [ to ] ]

DESCRIPTION
The meteoavg(1) programm computes averages of meteo data. It can either be used to compute averages for a given time and sampling interval, or as a daemon that computes new averages whenever it can reasonably expect to find new data in the stationdata table, i.e. usually 30 seconds after the unix timestamp is divisible by the sampling interval. If neither of the timestamps from or to are specified, daemon mode is automatically selected. If only one timestamp is specified, the -r option must be used to specify the number of intervals for which to compute averages. The timestamps must be specified as strings of length 14 in the format YYYYMMDDhhmmss.

OPTIONS

-d  increase the debug level by one. Debug messages are written to standard error.

-a  force recomputation of all averages in a given range. If this option is not set, meteoavg(1) checks whether the average to be computed already exists in the averages table, and does not recompute it. Use this option if for some reason you suspect some of the averages in the averages table to be incorrect.

-fconffile
    Use conffile to read the configuration, see meteo.xml(5) for the configuration syntax.

-F  stay in foreground even when running in daemon mode. Useful during debugging.

-iinterval
    Compute averages over samples in intervals of length interval. Must be one of 300, 1800, 7200 or 86400. In command line mode, this option is mandatory. In daemon mode, averages for all intervals are computed whenever they are due.

-llogurl
    send log messages to the destination described by the logurl.See meteo(1) for a description of possible forms of log URLs.

-ppidfile
    When running in daemon mode, write the process id of the meteoavg(1) process to this file. Defaults to /var/run/meteoavg-<station>.pid.

-rrepeats
    Only useful if exactly one timestamp has been specified. Indicates the number of intervals for which averages should be computed.

-sstationname
    Name of the station for which averages should be computed.

-n  Do everything you are supposed to, but don't write anything into the averages table.

FILES
meteoavg(1) writes its process id by default to the file /var/run/meteoavg-station.pid.

SEE ALSO
meteo(1) meteo.xml(5), meteopoll(1), meteodraw(1), meteodequeue(1), meteojob(1)

AUTHOR
Dr. Andreas Mueller <afm@othello.ch>