On Sunday 13 November 2005 18:27, Tim Miller WB0RXX wrote:
> Hi guys and gals,
> I have developed a module for our favorite program which provides
> on-demand weather information. It is designed for use with the Davis
> Vantage Pro running vanprod, but it should not be too hard to change it
> to work with any weather station that has a CSV data output.
Nice. I have to get myself a weather station ;-) And to start thinking of how
to handle third party contributions...
> Please note that this module is designed to work under the latest CVS
> release of SvxLink (v0.7.0rc2). It should work with older versions of
> SvxLink with little or no tweaking.
> To make it work, just add the following to your /etc/svxlink.conf
> ID=8 <---- Think "Weather on the eights" :-)
Note that variables given here also show up in the TCL script prefixed with
"CFG_". So, TIMEOUT is accessible as "$CFG_TIMEOUT". That means that you can
put all simple configuration options in svxlink.conf instead of in the TCL
file. For example:
set currentobs_file /var/spool/weather/currentobs;
set extremes_file /var/spool/weather/extremes;
could be put here as CURRENTOBS_FILE and EXTREMES_FILE and accessed from
within the TCL script as CFG_CURRENTOBS_FILE and CFG_EXTREMES_FILE.
> To get the time and negative values to function properly, I needed to
> add two symlinks from within the Default directory:
> lrwxrwxrwx 1 tim users -.raw -> ../TclWeather/minus.raw
> lrwxrwxrwx 1 tim users :.raw -> ../TclWeather/hours.raw
> The first symlink allows the playNumber function to say "minus" when it
> sees a "-". The second symlink is a bit less obvious. When playNumber
> is saying "12:34" the ":" is interpreted as the word "hours". It
> certainly is not very pretty, but it seems to work. ;-)
If at all possible, please try to make a module self contained. If a core
function like playNumber does not do what you want, don't put new files into
Default and don't modify the core function. Make your own version in the
module instead. Then if it's a good tweak, I might update the core functions
with the new functionality. Otherwise we might get clashes when different
modules want to modify the core functions in different ways.
> The audio files are a bit too large to post on this forum (+6 MB), so
> here is an external link to them:
> This tarball also contains the scripts used to generate the sound files,
> as well as the Davis forecast rules. This should be enough information
> to re-record these files in a language other than English, or if you do
> not want to hear my voice on your system. <grin>
For you out there that is not using the SvxLink source code, this script use
the play_sound.sh script that can be found in the source tree under
All other sounds in SvxLink can be filtered using the filter_sounds.sh if you
want to record your own sounds.
> For anyone that is interested, I am also working on a number of other
> additions to SvxLink including Long Tone Zero (LiTZ)/operator paging,
> Skywarn activation notices, NOAA weather radio rebroadcasts, and
> on-demand broadcasts of local info, the ARRL letter, and the Newsline
> bulletins. I would be most interested to know if anyone else is doing
> something similar, as I'd be happy to share what I have so far.
Keep going :-)
> My thanks again to Tobias for making such a very FB program that is so
> easy to work with!
Thank you for your contribution!
73 de SM0SVX / Tobias
> 73 de Tim