NOAA: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
(Initial edit)
(No difference)

Revision as of 13:33, 25 March 2021

Introduction

CumulusUtils provides a possibility to display the NOAA reports generated by CumulusMX by choosing year and month from a menu. The current month in the current year is where the display starts. This module assumes only the CumulusMX default settings for the filenames are valid.

Operation

This module is included in the website. When needed as a single output the following command is given:

   utils/bin/cumulusutils.exe NOAA

Output

The output is a file named noaa.txt

Inifile parameters

   [NOAA]
   FTPDirectory=./reports/
   ColorNOAAText=Black
   ColorNOAABackground=#f9f8EB
   StartInCurrentMonth=true

Inner working

Through the menu the year and month is selected and from those values the report filename is constructed and displayed. If StartInCurrentMonth is true the month report of the current month is displayed otherwise the year report of the current year is shown. The colours and the formatting of the reports is taken from a beteljuice formatting which wondered around somewhere. The colours can be changed.

The directory where the reports can be found must be the directory where CumulusMX stores the reports. Because CumulusUtils can be in a totally different location than e.g. the main website of the user, the NOAA report location has to be specified explicitly in the inifile parameter FTPDirectory of the NOAA section.