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

0 Members and 1 Guest are viewing this topic.

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 4107
  • 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

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: Update required for NWS-Alerts.php
« Reply #26 on: December 21, 2021, 07:21:35 AM »
Ken, I remembered this thread but only after I had sent the email about the SQW.  My apologies!  For now, I made the addition to my version manually but I still look forward to your next update.  Thanks for all that you do and Happy Holidays!