neoground / neowx-material

Revamp WeeWX with Neowx-Material, a modern Material Design skin offering a sleek, responsive UI, captivating graphs & advanced features.
https://neoground.com/projects/neowx-material
MIT License
53 stars 28 forks source link

Add Wind Run to NOAA Text Reports #48

Open Pogs2004 opened 2 years ago

Pogs2004 commented 2 years ago

Edit, my fault, it was FTPing the files from the local webserver and not updating them. Here's the NOAA-%Y-%m.txt.tmpl to add windrun to the monthly text report:

#encoding UTF-8
## +-------------------------------------------------------------------------+
## |    NOAA-%Y-%m.txt.tmpl   Template for "NOAA month summary" text file    |
## +-------------------------------------------------------------------------+
## | Original version by Tom Keffer in the weewx Standard skin               |
## | See: https://github.com/weewx/weewx/tree/master/skins/Standard/NOAA     |
## +-------------------------------------------------------------------------+
#set $YM="%Y %m"
#set $D=" %d"
#set $M=" %b"
#set $Time=" %H:%M"
#set $NODAY=" N/A"
#set $Temp="%6.1f"
#set $Wind="%6.1f"
#set $Dist="%6.0f"
#set $Count="%6d"
#set $NONE="   N/A"
#if $unit.unit_type_dict.group_rain == "mm"
#set $Rain="%6.1f"
#else
#set $Rain="%6.2f"
#end if
                   MONTHLY CLIMATOLOGICAL SUMMARY for $month_name $year_name

NAME: $station.location
#if $Extras.Appearance.show_coordinates == "yes"
ELEV: $station.altitude    LAT: $station.latitude[0]-$station.latitude[1] $station.latitude[2]    LONG: $station.longitude[0]-$station.longitude[1] $station.longitude[2]
#else
ELEV: $station.altitude
#end if

                   TEMPERATURE ($unit.label.outTemp.strip()), RAIN ($unit.label.rain.strip()), WIND SPEED ($unit.label.windSpeed.strip()), WIND RUN ($unit.label.windrun.strip())

                                         HEAT   COOL         AVG
      MEAN                               DEG    DEG          WIND                   DOM    WIND
DAY   TEMP   HIGH   TIME    LOW   TIME   DAYS   DAYS   RAIN  SPEED   HIGH   TIME    DIR    RUN
----------------------------------------------------------------------------------------------
#for $day in $month.days
#if $day.outTemp.count.raw or $day.rain.count.raw or $day.wind.count.raw
$day.dateTime.format($D, add_label=False) $day.outTemp.avg.format($Temp,$NONE,add_label=False) $day.outTemp.max.format($Temp,$NONE,add_label=False) $day.outTemp.maxtime.format($Time,add_label=False) $day.outTemp.min.format($Temp,$NONE,add_label=False) $day.outTemp.mintime.format($Time,add_label=False) $day.heatdeg.sum.format($Temp,$NONE,add_label=False) $day.cooldeg.sum.format($Temp,$NONE,add_label=False) $day.rain.sum.format($Rain,$NONE,add_label=False) $day.wind.avg.format($Wind,$NONE,add_label=False) $day.wind.max.format($Wind,$NONE,add_label=False) $day.wind.maxtime.format($Time,add_label=False) $day.wind.vecdir.format($Dir,$NONE,add_label=False) $day.windrun.sum.format($Dist,$NONE,add_label=False)
#else
$day.dateTime.format($D)
#end if
#end for
----------------------------------------------------------------------------------------------
    $month.outTemp.avg.format($Temp,$NONE,add_label=False) $month.outTemp.max.format($Temp,$NONE,add_label=False)    $month.outTemp.maxtime.format($D,add_label=False) $month.outTemp.min.format($Temp,$NONE,add_label=False)    $month.outTemp.mintime.format($D,add_label=False) $month.heatdeg.sum.format($Temp,$NONE,add_label=False) $month.cooldeg.sum.format($Temp,$NONE,add_label=False) $month.rain.sum.format($Rain,$NONE,add_label=False) $month.wind.avg.format($Wind,$NONE,add_label=False) $month.wind.max.format($Wind,$NONE,add_label=False)    $month.wind.maxtime.format($D,add_label=False) $month.wind.vecdir.format($Dir,add_label=False) $month.windrun.sum.format($Dist,$NONE,add_label=False)

It looks like this: https://www.360shetland.co.uk/weather/archive/NOAA-2022-02.txt

Note that you must have windrun in the archive for this to work.