cloudy

Author Topic: NWS Public Alert Messenger PHP Script  (Read 33524 times)

0 Members and 1 Guest are viewing this topic.

Offline bigdog

  • Posts: 4
Re: NWS Public Alert Messenger PHP Script
« Reply #210 on: September 04, 2011, 08:21:45 PM »
bigdog,

There is a setting to disable the message:
// normally when the Advisory is canceled or expires, and the cache is updated,
// it sends out email/text alert stating "There are no active watches, warnings or advisories".
// disable this?
$disable_expired_message = false; // change to true to disable alert ended alert

Hi, thanks for making this available

I know about that setting that's not related to what I am doing, I display the content line from the rss-advisoryXXXX-.txt file in another page, wound up using a IF condition to display nothing when matched "There are no active watches, warnings or advisories" I would have rather done that within your script itself instead, that's what I was trying to do.

also any advice on just displaying the summery within a page?, I did find another weather multi zone script that does that but yours is 90% of exactly what I need with the email etc, so I'd rather just stay with yours, its a bit to complex for me pulling out just the summery part for inclusion in a page.
I am really new at this.

Thanks
Big Dog

Offline K3JAE

  • Posts: 696
  • Fayette County, PA., USA
    • K3JAE's Weather Station
Re: NWS Public Alert Messenger PHP Script
« Reply #211 on: September 15, 2011, 07:30:48 AM »
Ok. Finally figured it out. I was replacing the ...
define('OAUTH_CONSUMER_KEY', ---------------------------
define('OAUTH_CONSUMER_SECRET', ------------------------
with the ...
$access_token = '-------------------------------------------------------
$access_token_secret = '---------------------------------------------------

Instead I needed to just insert the 2 $access_token lines to the globals.php script at the top above the OAUTH lines.

Glad to see someone else is having the issues as I with Tweeting.

I have both the $access_token = '---' and the $access_token_secret = '---' already in place on my pages... I am not sure what globals.php is as I do not have this file.  Can someone assist a bit more here how to get the conditions, warnings, forecast pages to Tweet please.


73's de K3JAE

John
K3JAE Weather Station