Author Topic: NOAA reports FTP  (Read 3583 times)

staze

  • Strong Breeze
  • ***
  • Posts: 215
    • CW9669
    • KORSPRIN10
    • Everybody Staze...
  • Station Details: Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD, Mac Mini Server (2018)
NOAA reports FTP
« on: January 18, 2016, 12:35:02 AM »
All,

I'm trying to figure out the best way to do NOAA reports to FTP to my webhost. I can do a mass creation of them via the window, then upload those manually, but after that, I'm stuck. I can do a custom web file, with NOAA report tags so that new data will get written out, but how do I get them into the proper folder, or can I? I just don't want to all living in the same folder if at all possible. =/

Anyone have any thoughts? Anyone doing something like this that has a simple template? I figure two custom files, one that runs once an hour with current month, and one that runs daily for the year file...

Thanks!
"You mean, you'll put down your rock and I'll put down my sword and we'll try and kill each other like civilized people?"

awilltx

  • Guest
Re: NOAA reports FTP
« Reply #1 on: January 18, 2016, 03:11:13 PM »
Hello staze,


I am uploading NOAA reports to my site using Saratoga templates and can possibly help.


Step 1: add tagnames to the WCTtags.php file like this:


Code: [Select]

STNOAAYR|STNOAAYR$|// NOAA-style yearly.:|:
STNOAAPRYR|STNOAAPRYR$|// NOAA-style Prior year report.:|:
STNOAAMO|STNOAAMO$|// NOAA-style monthly.:|:
STNOAAPRMO|STNOAAPRMO$|// NOAA-style Prior month report.:|:


Step 2: create templates for each report with the above codes (example is for current month):


Code: [Select]

<pre>
    <?php echo($WX['STNOAAMO']); ?>
    </pre>


Not quite sure what you mean about getting the reports into the proper folder. The tags generate preformatted reports, hence the "pre" code. I have attached the entire template in case you or anyone needs it.


Hope this helps some,
Alan

staze

  • Strong Breeze
  • ***
  • Posts: 215
    • CW9669
    • KORSPRIN10
    • Everybody Staze...
  • Station Details: Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD, Mac Mini Server (2018)
Re: NOAA reports FTP
« Reply #2 on: January 20, 2016, 01:06:14 AM »
awilltx,

Awesome. So, what does your flyout-menu.xml look like? I can't figure out how to show yearly or previous month(s) NOAA reports... the wxnoaacmo.php is only current month (which I guess makes sense now that I type the name).

My previous question was more related to how you get big historical NOAA reports (like 3 years ago, July).

Thanks!
"You mean, you'll put down your rock and I'll put down my sword and we'll try and kill each other like civilized people?"

awilltx

  • Guest
Re: NOAA reports FTP
« Reply #3 on: January 20, 2016, 11:54:25 AM »
staze,


I created a separate template for all of the available WeatherCat tags for NOAA reports. On my site, they are each on separate pages, so the xml looks like this (under "Almanac" on my site):


Code: [Select]

<item caption="NOAA reports from WeatherCat">
        <item caption="Current Month" link="wxnoaawcmo.php"/>
        <item caption="Prior Month" link="wxnoaawcprmo.php"/>
        <item caption="Current Year" link="wxnoaawcyr.php"/>
        <item caption="Prior Year" link="wxnoaawcpryr.php"/>
    </item>   


There is currently no way to use WeatherCat tags to show NOAA reports from a specific month/year, only the current and previous month and current and previous year.


Hope this helps some,


Alan

staze

  • Strong Breeze
  • ***
  • Posts: 215
    • CW9669
    • KORSPRIN10
    • Everybody Staze...
  • Station Details: Davis Vantage Vue, Weather Envoy, Meteobridge Nano SD, Mac Mini Server (2018)
Re: NOAA reports FTP
« Reply #4 on: January 20, 2016, 06:02:15 PM »
Worked great!
"You mean, you'll put down your rock and I'll put down my sword and we'll try and kill each other like civilized people?"