WXforum.net
June 19, 2013, 02:54:09 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6695  •  Posts: 181355  •  Topics: 18409
Please welcome KD0RII, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Calling the brains trust Ideas wanted for a PHP script  (Read 732 times)
0 Members and 1 Guest are viewing this topic.
Arthurhh
Senior Contributor
****
Offline Offline

Posts: 252


IT Fixer


WWW
« on: May 11, 2010, 09:43:39 PM »

I recieve an email regularly with Severe Weather warnings in it, I have managed to get it to output to a txt file now I want a script I can run as a chron job to rename the latest txt file to a fixed name so my parser can clean it up and display it on my advisories page.

Anyone seen anything similar that I could crib for this purpose?
Logged

SLOweather
Administrator
Forecaster
*****
Offline Offline

Posts: 2370



WWW
« Reply #1 on: May 11, 2010, 10:08:38 PM »

I use feed2js to parse the NWS RSS feed for warnings for my area into something that can be displayed on my web site. With the NWS moving to ATOM feeds, I assume that feed2js will work with them as well, but I haven't investigated it yet.

http://feed2js.org/

Rather than use their server, I loaded it onto my server so I could update it faster.
Logged
Dal
Senior Member
**
Offline Offline

Posts: 82


Climbing the cliffs of Moher in my sleep


WWW
« Reply #2 on: May 13, 2010, 01:31:19 PM »

And I thank you for that tip about feed2js! I'm pretty sure I had come across it quite some time back but had completely forgotten about it. It's just expanded my horizons Smile
Logged

Gun tigeadh Solas nan Solas
dha m’ dhridhe doilleir o t’aite.
Gun tigeadh ais an Spioraid Air mo chridhe
Arthurhh
Senior Contributor
****
Offline Offline

Posts: 252


IT Fixer


WWW
« Reply #3 on: May 13, 2010, 03:05:29 PM »

I use feed2js to parse the NWS RSS feed for warnings for my area into something that can be displayed on my web site. With the NWS moving to ATOM feeds, I assume that feed2js will work with them as well, but I haven't investigated it yet.

http://feed2js.org/

Rather than use their server, I loaded it onto my server so I could update it faster.

Our national Met Service hasnt caught up with the idea of RSS feeds yet, so while your suggestion is useful it is not a solution in this case.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.103 seconds with 19 queries.
anything