You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
140 lines
4.1 KiB
140 lines
4.1 KiB
#!/bin/bash
|
|
# Weather Script Configuration File. Sets up the variables used by the various weather scripts.
|
|
#
|
|
# $Id: wx_scripts.conf 78 2011-04-22 18:04:11Z $
|
|
|
|
# The weather scirpts require:
|
|
# text to speech programs -
|
|
# Festival [http://www.cstr.ed.ac.uk/projects/festival/],
|
|
# **Or**
|
|
# Cepstral Text to Speech. [http://www.cepstral.com]
|
|
#
|
|
# wget for proper operation.
|
|
#
|
|
#
|
|
CUSTOM=/home/irlp/custom
|
|
# node call with spaced letters, for speech programs
|
|
CALL_SPACED="N 8 M F N"
|
|
export CALL_SPACED
|
|
|
|
# Choose the speech to text software desired. If cepstal is choosen, you must
|
|
# install the new software and configure the voice.
|
|
|
|
# Uncomment one only.
|
|
TEXT2SPEECH=festival # Festival Text to speech sw
|
|
#TEXT2SPEECH=cepstral # Cepstral Text to speech sw
|
|
|
|
# text2wave binary location for festival
|
|
TEXT2WAVEBIN=/usr/bin/text2wave
|
|
|
|
#if using Cepstral, define defualt voice below
|
|
SWIFT_DEFAULT_VOICE=David #define the voice
|
|
SWIFT_VOL=100 # Volue control for swift voice,
|
|
# volume in precentage
|
|
|
|
# location of swift binary, can also be in opt
|
|
SWIFTBIN=/opt/swift/bin/swift
|
|
|
|
# Zone information for Weather Alerts
|
|
# See WxScripts.txt documentation
|
|
ZONE=OHZ070
|
|
|
|
# NWS County Information, MNC171 plus county name for example:
|
|
# COUNTY="MNC171, Wright County"
|
|
COUNTY="OHC017, BUTLER County" # NWS County Information, MNC171
|
|
COUNTY_NAME="Bulter County"
|
|
|
|
ICAO_STN=KHAO
|
|
|
|
# for Weather Underground Stations
|
|
WX_UNDERGRND_STN=ME3028
|
|
|
|
# Email address to where skywarn notices will be sent. Must have email
|
|
# configured correctly. If not used, comment out option.
|
|
#EMAIL="151347336840@tmomail.net"
|
|
|
|
# Play Weather Alert Beacon
|
|
WXALERT_BEACON="Y" # Play weather alert message
|
|
# "C" = critical alerts only
|
|
# "Y" = yes, "N" = no
|
|
|
|
ACTIVE_PLAY="TRUE" # if TRUE, allows playing of weather
|
|
# messages when connected to other
|
|
# nodes. If not desired, change to
|
|
# "FALSE"
|
|
|
|
##################################################################
|
|
# Should not need to modify the following, but just in case..
|
|
# Binary file locations
|
|
#
|
|
WGET="/usr/bin/wget"
|
|
|
|
# Directories used by weather scripts:
|
|
#
|
|
WXDIR="$AUDIO/custom/wx"
|
|
|
|
# Weather Alert Specific Variables
|
|
# Alert spool directory
|
|
WXALERT_SPOOLDIR="$WXDIR/alert" # Location for raw audio and data
|
|
|
|
# Weather Forcast Specific Variables
|
|
# Forcast spool directory
|
|
WXFOR_SPOOLDIR="$WXDIR/forecast"
|
|
|
|
######################################################################
|
|
# No editing required from this point.
|
|
######################################################################
|
|
|
|
# export Cepstral Voice
|
|
if [ "$TEXT2SPEECH" = "cepstral" ] ; then
|
|
export SWIFT_DEFAULT_VOICE
|
|
fi
|
|
|
|
# Create Spool directory (WXALERT_SPOOLDIR)
|
|
if [ ! -d $WXALERT_SPOOLDIR ] ; then
|
|
mkdir -p $WXALERT_SPOOLDIR
|
|
fi
|
|
|
|
# create spool directory if not preset
|
|
if [ ! -d $WXFOR_SPOOLDIR ] ; then
|
|
mkdir -p $WXFOR_SPOOLDIR
|
|
fi
|
|
|
|
# Setup Text to Speech command
|
|
if [ "$TEXT2SPEECH" = "festival" ] ; then
|
|
TEXT2WAVE=$TEXT2WAVEBIN
|
|
fi
|
|
if [ "$TEXT2SPEECH" = "cepstral" ] ; then
|
|
TEXT2WAVE=$SWIFTBIN
|
|
fi
|
|
|
|
# irlp common functions:
|
|
#
|
|
# description: Places the commonly used functions into one place where
|
|
# it is eay to get to. This eliminates having to place the
|
|
# commands in each script where they are used. Just need
|
|
# to source this one file to get all of its functions.
|
|
#
|
|
# history:
|
|
# 20030706 kc6hur Original release
|
|
# 20050806 kc6hur Changed "must be repeater" message
|
|
########################################################################
|
|
|
|
########################################################################
|
|
#
|
|
# Convenience functions
|
|
#
|
|
# Send message to LOGFILE
|
|
function log () {
|
|
MESSAGE="${0##*/}: $@"
|
|
echo "$MESSAGE"
|
|
if [ -n "$LOGFILE" ]; then
|
|
echo "`date '+%b %d %Y %T %z'` $MESSAGE" >> $LOGFILE
|
|
fi
|
|
}
|
|
|
|
#######################################################################
|
|
#
|
|
#
|
|
# END Common Functions
|