Archive for the ‘IRLP Scripts’ Category

New Weather Scripts for IRLP (Centos/Debian)

Thursday, December 13th, 2012

I am releasing  the last of the weather scripts releases.  These scripts are getting more out dated as smart phones become the normal.  I’ve decided to stop working on the Wx Scripts and move on to other projects.

I have packaged both package formats for this release since the Debian 9 release is now available for IRLP.  So, there is an rpm for Centos and dpkg for the Debian 9 releases.

NOTE: There was a couple of issues that were recently uncovered with the creation of the active file.  Below contains these fixes:

WxScripts-0.10.7.noarch.rpm

irlp-wxscripts-0.10.7.all.deb

Also, for the debian release, you will need to install libdate-manip-perl package if you are using the metar2text script  by entering the following command as root:

apt-get install libdate-manip-perl

Latest fixed include:

– Fixed script identifiers; debian fix
– Fixed Full alert email and message play
– Fixed issue with wx_scripts.conf file and new installs
– Fixed issue with accidently running scripts as root during initial setup.
– Fixed enable/disable_wx_alertmsg
– Cleaned up package install scripts.

When installing, follow the instructions in the previous posts. I have simplified the RPM package install scripts. It should create a backup of the configuration files prior to installing/upgrading.  It would be wise to make a backup copy of these files prior to updating:

– wx_scripts.conf
– nsd_cccc.txt
– wx_alert_product.txt
– wx_normal_alerts.txt
– wxtext_conv.sed
– SendMail.cfg
– wx_critical_alerts.txt
– wx_scripts.conf

New WxScript RPM package

Sunday, July 22nd, 2012

New WxScript RPM package has been updated and is now available.

WxScripts-0.10.4.noarch.rpm

The update addresses an issue with alert summaries not parsing correctly (additional  “junk” in file) which was caused by:

* Additional XML code is being used by NWS in the alert checks page.  Additional XML code was by-passed.

The  NWS has changed their presentation of the alert summary from their web pages.

Also, the following feature has been added.  The  detailed alert summary (or full alert summary) now has an optional flag variable to allow full NWS alert detail information instead of being truncated.

If full alert is selected, the audio for “playWxAlert” may be very long.  I would suggest using “N”. This option is found in the wx_script.conf file:

FULL_ALERT=”N”          # Alert Summary, Full or Truncated
                                    # “Y” – Full alert info
                                    # “N” – No (truncated)

Note – If you are sending email notifications, it will now provide a full alert information in the body of the email text.

Again, by selecting “FULL_ALERT=”Y”, the output  can be quite large.  If the FULL_ALERT=”N” (or not defined) , the playWxScript will at as it always does and output initial summary that the NWS provides and many times its truncated.

Make sure that you clear the weather alerts by using the “clearWxAlert” script after upgrading.  This will ensure that a new no_alert.txt message will be created and the audio files will be cleaned up.

If you have any questions, please let me know.

73,

Chris, w0anm
irlp node 3106

IRLP Weather Scripts

Thursday, October 27th, 2011

:!:New RPM package is available. WxScripts-0.10.1.noarch.rpm (old)

Latest Changes:

A new function/setting  is available for Weather Alert Beacons.  This is used to reduce the amount of alert beacon “noise”.  When WXALERT_BEACON=”C”,  it will only alert on critical alerts based on the Critical_Alerts.txt file. The following is the now available using the WXALERT_BEACON variable:

# Play Weather Alert Beacon
WXALERT_BEACON="Y"                  # Play weather alert message
                                    # "C" = critical alerts only
                                    # "Y" = yes, "N" = no

If you set the value usingC” value,  you will only be alerted with critical alert messages which is based upon the wx_critical_alerts.txt file.

File Changes

The alerts.txt file has been renamed to wx_alert_product.txt  and  two additional files has been added , one called wx_critical_alerts.txt and the other file called wx_normal_alerts.txt.

wx_alert_product.txt

This file, wx_alert_product.txt, is a list of NWS alert products that the weather scripts use for weather alert checking. You can edit this list to remove alert types. If an item is removed, It will not create a summary or full alert summary for that alert product.

wx_critical_alerts.txt

Critical Alerts uses wx_critical_alerts.txt  file, If alert product is matched in weather alert, an alert message will be transmitted. This allows only “critical” alerts from being transmitted and will cut down on alert notification transmissions.  For example, if you are only interested in receiving alerts about tornado, nuclear power plant warning, or winter storm warnings, the wx_critical_alerts.txt file would look like:

TORNADO WARNING
TORNADO WATCH
NUCLEAR POWER PLANT WARNING
WINTER STORM WARNING

You can add or remove from this list.  See the “wx_alert_product.txt” file for the various products that can be included.

wx_normal_alerts.txt

Normal alerts use wx_normal_alerts.txt file.  If matched in weather alert, an alert message will be transmitted if beacon yes is selected.  You can modify this file to meet your needs.  If you use wx_critical_alerts.txt, you will still collect alert information for products in this file.  You can send this information out using custom_decode.


If you are upgrading from 0.9.8 or earlier, the follow these instructions:

I have a set of weather scripts that will get weather forecast, current conditions, and weather alerts. These scripts required festival, and wget packages. Download and install the RPM after the rpm dependencies are met. The dependencies are listed below.

Weather Scripts: WxScripts-0.10.1.noarch.rpm ←- :!: Updated

Documentation: **Weather Scripts Online Documentation and FAQ**

Here are the RPM’s needed for installation (versions may vary):

  CentOS 4.4:            wget - wget-1.10.2-0.40E.i386.rpm    
                     festival - festival-1.4.2-25.i386.rpm
                     manip.pm - perl-DateManip-5.42a-3.noarch.rpm

  CentOS 5.5:            wget - wget-1.11.4-2.el5_4.1.i386.rpm
                     festival - festival-1.95-5.2.1.i386.rpm
                     manip.pm - perl-DateManip-5.44.1.2.1.noarch.rpm

  CentOS 5.6:            wget - wget-1.11.4-2.el5_4.1.i386.rpm
                     festival - festival-1.95-5.2.1.i386.rpm
                     manip.pm - perl-DateManip-5.44-1.2.1.noarch.rpm

Basic RPM Package Installation

If yum is configured correctly, you can automatically download some of the required RPM’s and install the required packages by entering the following command as root:

# yum install festival
# yum install wget
# yum install perl-DateManip

The xmlstarlet-1.0.1 rpm is no longer a dependency with the latest WxScripts.

Note – For FC5, you can install all of the required rpm’s via yum. One final note, you can use Cepstral’s text to speech utilities. I found that the voices are more natural sounding. For more information, see Cepstral’s web site and the WxScript.txt document found in ”/home/irlp/docs”. To install the WxScript rpm, move the rpm file to the irlp system. As root, change directories to the location of where the WxScript rpm is located. Then execute the following command:

# unzip WxScripts-.noarch.rpm.zip
# rpm -i WxScripts-.noarch.rpm

If you get errors regarding missing dependencies, and you have installed the required packages, then try:

# yum localinstall wxscripts-.noarch.rpm

-or-

# rpm -i --nodeps wxscripts-.noarch.rpm

If you are upgrading from a previous version, use the following command:

  # rpm -U wxscripts-.noarch.rpm

Once installed, review and follow the documentation in the next section below: