Author Topic: Update required for NWS-Alerts.php  (Read 1213 times)

0 Members and 1 Guest are viewing this topic.

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 3053
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Update required for NWS-Alerts.php
« Reply #25 on: February 22, 2018, 12:16:30 PM »
Thanks Ken.

Here is my script get-nwsalerts-script.sh

Code: [Select]
#!/usr/local/bin/bash
# cron job to run nws-alerts.php
#
# --- begin settings
HDIR="/home/rogersci/public_html"
SCRIPT=nws-alerts.php
URL="http://rogerscityweather.com/$SCRIPT"
PHPcmd=/usr/local/bin/php
CURLcmd=/usr/local/bin/curl
USECMD=PHP
#USECMD=CURL
# --- end settings
cd $HDIR

# Use one or the other .. direct is prefered over curl
if [ "$USECMD" == "PHP" ]

The cron in the control panel invokes it every 5 minutes.

The strange thing was the warning didn't clear until I commented out one of the counties. Strangely enough, when I un-commented it to restore the county, it all started working correctly without the message. Maybe it was cached.

Thanks for your help, Ken.

Greg H.



Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF