Reporting - NOAA file generation

714 views
Skip to first unread message

reba...@gmail.com

unread,
May 28, 2018, 1:22:47 PM5/28/18
to weewx-user
All,

First let me say that I have been a long time wview user and I have spent some time getting adapted to the new interface.  I have the system up and running on a Pi with my Vantage Pro2 and have even successfully managed to port my old wview pages to the new platform.  I have a couple of questions with some things I did not quite find in the documentation.
  1. NOAA File generation:  Does weeWX create or can it create the NOAA daily files like wview did?  Not a problem if it does not but just more changes to my custom web pages.
  2. Is there a way to get the webpages to update at a faster rate?  I am currently using the default value for the archiving (300s).  If possible I would like them to update every minute if possible.  The documentation implies that you are stuck at the data archiving rate.
  3. Can you force weeWX to generate a new set of reports on command and publish to the web server?  If so I will just add an update button to the webpage
Thanks In advance and to all that contributed to the code.  Nice Work!

Richard

Thomas Keffer

unread,
May 28, 2018, 1:52:05 PM5/28/18
to weewx-user
Hello, Richard, and welcome to WeeWX.
  1. While it would be easy enough to create a daily NOAA style report, it would require a bit of work to give it a unique name, allowing it to be linked to from some index page. WeeWX fills out an appropriate file name when the template has a pattern like YY-MM, but, unfortunately, cannot do a pattern like YY-MM-DD. That could (and should!) be added to the file generator.
  2. There's no point in generating webpages from the database any faster than the database gets updated. However, if you want to create something from the LOOP packets, that's something many people have done.  See the Wiki page Strategies for publishing data for ideas. Also, look through the long list of extensions and see if anything catches your fancy.
  3. WeeWX has a utility wee_reports that can launch the reporting cycle on demand. But, unless the database has been updated, it won't have anything new.

-tk


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

reba...@gmail.com

unread,
May 28, 2018, 2:27:45 PM5/28/18
to weewx-user
Cheers!!

Paul R Anderson

unread,
May 28, 2018, 3:22:09 PM5/28/18
to weewx...@googlegroups.com
Hello Richard,
On a debian install I use the template below to generate a NOAA style daily record.
An example of the output can be seen on my website here:
PLEASE NOTE ! It's the first template I wrote for WEEWX after switching from wview. Am sure it could be done better, as I just guessed my way until things worked. However it's been working well for me for 6 months with no issues.Notice it has hard codes station name rather than variable in a couple places.
 
/etc/weewx/skins/Standard/NOAA/NOAA-YYYY-MM-DD.txt.tmpl


#errorCatcher Echo
#set $YM="%Y%m"
#set $D="%d"
#set $M="%b"
#set $Time="%H:%M"
#set $TimeM="%I:%M %p"
#set $Temp="%6.1f"
#set $Wind="%6.0f"
#set $Dir="%6.0f"
#set $Humid="%6.0f"
#set $Press="%6.1f"
#set $NONE="   N/A"
#set $Rain="%6.2f"

WOBURN WEATHER CENTER
DAILY CLIMATOLOGICAL SUMMARY FOR $month_name $day.dateTime.format($D) $year_name
Location: Woburn, Massachusetts, U.S.A.
ELEV: $station.altitude    LAT: $station.latitude[0]-$station.latitude[1] $station.latitude[2]    LONG: $station.longitude[0]-$station.longitude[1] $station.longitude[2]

 Time   Wind Dir   Wind Spd   Wind Gust   Humidity     Temp    Barometer   Rain
             Deg        mph         mph          %    Deg F           mb     in
--------------------------------------------------------------------------------
#for $record in $day.records
$record.dateTime.format($Time)     $record.windDir.nolabel($Dir,$NONE)     $record.windSpeed.nolabel($Wind,$NONE)      $record.windGust.nolabel($Wind,$NONE)     $record.outHumidity.nolabel($Humid,$NONE)   $record.outTemp.nolabel($Temp,$None)       $record.barometer.nolabel($Press,$NONE) $record.rain.nolabel($Rain,$NONE)
#end for

WOBURN WEATHER CENTER
Summary For $month_name $day.dateTime.format($D) $year_name
----------------------------------
     Max Temp: $day.outTemp.max At: $day.outTemp.maxtime.format($TimeM)
     Min Temp: $day.outTemp.min At: $day.outTemp.mintime.format($TimeM)
    Mean Temp: $day.outTemp.avg
Max Wind Gust: $day.windGust.max At: $day.windGust.maxtime.format($TimeM)
Heat Deg Days: $day.heatdeg.sum
Cool Deg Days: $day.cooldeg.sum
   Daily Rain: $day.rain.sum
----------------------------------




--

Thomas Keffer

unread,
May 28, 2018, 6:31:01 PM5/28/18
to weewx-user
Geez, I guess I don't know the capabilities of my own piece of software!

As Paul's template shows, the file generator is indeed capable of recognizing DD in the template file name! 

-tk

Paul R Anderson

unread,
May 28, 2018, 6:38:37 PM5/28/18
to weewx...@googlegroups.com
I believe the ability for the file generator to generate the YY-MM-DD file pattern was already added in commit 18fcdb6.

Available since version 3.7.0 03/11/2017

"Can now do SummaryByDay (as well as SummaryByMonth and SummaryByYear).
NB: This can generate *lots* of files --- one for every day in your database!
Leaving this undocumented for now. Fixes issue #185."

Thomas Keffer

unread,
May 28, 2018, 6:40:14 PM5/28/18
to weewx-user
Right you are. Obviously, we should document it...

-tk
Reply all
Reply to author
Forward
0 new messages