Le vendredi 21 juin 2019 08:08:28 UTC+4, gjr80 a écrit : > > OK. Let's have a look at those SLEs, perhaps one of those is having some > unintended consequences on the NOAA templates. Looking at fuzzy-archer the > NOAA templates appear on first glance to be identical to the WeeWX Standard > skin NOAA templates. I see a historygenerator.py that contains a MyXSearch > SLE but I don't see timeperiods.py nor a TimePeriod SLE. A few questions: > > 1. Did you modify the NOAA templates in any way? If so please post your > modified templates. > I did not modify the monthly reports for NOAA templates.
But I did modify the yearly reports to add more infos on rain accumulation. The modified file is joined to this message > > 2. Did you modify the historygenerator.MyXSearch SLE in any way? Again if > so please post the modified copy. > No, I didn't modify it, but I use an older version you can here : https://github.com/mhoareau/fuzzy-archer/tree/meteor-oi/bin/user (I'v forked the original repository) > 3. What does the timeperiods.TimePeriod SLE do? > It creates customized timespan used on this page for rain accumulation : http://stations.meteor-oi.re/ESH555/stats.html You can find the code here : https://github.com/mhoareau/fuzzy-archer/blob/meteor-oi/bin/user/timeperiods.py (sorry for the wrong author info at the start of the file, bad copy-paste habit, I will modify that) > > 4. Are there any other templates being run in this skin or are the NOAA > monthly and yearly templates the only ones? If there are others please post > the whole skin.conf. > Yes, there is other templates. I attached the whole skin.conf file in this post. > 5. If no other templates what happens when you comment out the line > starting search_list_extensions = and then delete all the NOAA format > reports and wait for regeneration ? > There is other templates, so I cannot try it "as is". I will try to desactivate all other templates and only generate NOAA reports. I did try to delete another time all generated files, just in case I didn't do it right the last time, I regenerated them, but no luck. New files appeared in public_html/, other templates genetated files in metrics units (including NOAA report for current month and current year), but all the NOAA reports from previous months and previous years are in US units. :-/ Thanks for trying to help me :) -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/90ba9938-564d-4c3a-b0a1-19e340e1cb7e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
NOAA-YYYY-MM.txt.tmpl
Description: Binary data
############################################################################################
############################################################################################
############################################################################################
#
#
#
#
# STANDARD SKIN CONFIGURATION FILE
#
#
#
#
#
############################################################################################
#
#
# Copyright (c) 2010 Tom Keffer <[email protected]>
#
#
#
# See the file LICENSE.txt for your full rights.
#
#
#
############################################################################################
#
# $Revision: 737 $
# $Author: tkeffer $
# $Date: 2012-11-04 09:05:51 -0800 (Sun, 04 Nov 2012) $
#
############################################################################################
[Extras]
#
# Put any extra tags here that you want to be available in the templates
#
# Here's an example.
# This radar image would be available as $Extras.radar_img
# (Comment the line out if you don't want to include the radar image)
#radar_img = http://radar.weather.gov/ridge/lite/N0R/RTX_loop.gif
# This URL will be used as the image hyperlink:
radar_url =
http://radar.weather.gov/ridge/radar.php?product=NCR&rid=RTX&loop=yes
# Here's another. If you have a Google Analytics ID, uncomment and edit
# the next line, and the analytics code will automatically be included
# in your generated HTML files:
#googleAnalyticsId = UA-12345678-1
############################################################################################
[Units]
#
# This section is for managing the selection and formatting of units.
#
[[Groups]]
#
# For each group of measurements, this section sets what units to use
for it.
# NB: The unit is always in the singular. I.e., 'mile_per_hour', NOT
'miles_per_hour'
#
group_altitude = meter # Options are 'foot' or
'meter'
group_degree_day = degree_C_day # Options are 'degree_F_day'
or 'degree_C_day'
group_direction = degree_compass
group_moisture = centibar
group_percent = percent
group_pressure = hPa # Options are 'inHg', 'mmHg',
'mbar', or 'hPa'
group_radiation = watt_per_meter_squared
group_rain = mm # Options are 'inch', 'cm',
or 'mm'
group_rainrate = mm_per_hour # Options are
'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
group_speed = km_per_hour # Options are
'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
group_speed2 = km_per_hour2 # Options are
'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
group_temperature = degree_C # Options are 'degree_F' or
'degree_C'
group_uv = uv_index
group_volt = volt
# The following unit groups are used internally and should not be
changed:
group_count = count
group_interval = minute
group_time = unix_epoch
[[StringFormats]]
#
# This section sets the string formatting for each type of unit.
#
centibar = %.0f
cm = %.2f
cm_per_hour = %.2f
degree_C = %.1f
degree_F = %.1f
degree_compass = %.0f
foot = %.0f
hPa = %.1f
inHg = %.3f
inch = %.2f
inch_per_hour = %.2f
km_per_hour = %.0f
km_per_hour2 = %.1f
knot = %.0f
knot2 = %.1f
mbar = %.1f
meter = %.0f
meter_per_second = %.1f
meter_per_second2 = %.1f
mile_per_hour = %.0f
mile_per_hour2 = %.1f
mm = %.1f
mmHg = %.1f
mm_per_hour = %.1f
percent = %.0f
uv_index = %.1f
volt = %.1f
watt_per_meter_squared = %.0f
NONE = " N/A"
[[Labels]]
#
# This section sets a label to be used for each type of unit.
#
centibar = " cb"
cm = " cm"
cm_per_hour = " cm/hr"
degree_C = °C
degree_F = °F
degree_compass = °
foot = " feet"
hPa = " hPa"
inHg = " inHg"
inch = " in"
inch_per_hour = " in/hr"
km_per_hour = " km/h"
km_per_hour2 = " km/h"
knot = " knots"
knot2 = " knots"
mbar = " mbar"
meter = " meters"
meter_per_second = " m/s"
meter_per_second2 = " m/s"
mile_per_hour = " mph"
mile_per_hour2 = " mph"
mm = " mm"
mmHg = " mmHg"
mm_per_hour = " mm/h"
percent = %
volt = " V"
watt_per_meter_squared = " W/m²"
NONE = ""
[[TimeFormats]]
#
# This section sets the string format to be used
# each time scale.
#
day = %Hh%M
week = ce %A à %Hh%M
month = %d/%m/%Y à %Hh%M
year = %d/%m/%Y à %Hh%M
rainyear = %d/%m/%Y à %Hh%M
current = %d/%m/%Y à %Hh%M
ephem_day = %Hh%M
ephem_year = %d/%m/%Y à %Hh%M
[[DegreeDays]]
#
# This section sets the base temperatures used for the calculation
# of heating and cooling degree-days.
#
# Base temperature for heating days, with unit:
heating_base = 65, degree_F
# Base temperature for cooling days, with unit:
cooling_base = 65, degree_F
[[Trend]]
time_delta = 10800 # 3 hours
time_grace = 300 # 5 minutes
[[Ordinates]]
directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSO, SO, OSO, O, ONO,
NO, NNO, N
############################################################################################
[Labels]
#
# Generic labels
#
# Set to hemisphere abbreviations suitable for your location:
hemispheres = N, S, E, O
[[Generic]]
#
# Generic labels, keyed by an observation type.
#
barometer = Barometric Pressure
dewpoint = Dew Point
heatindex = Heat Index
inHumidity = Inside Humidity
inTemp = Inside Temperature
outHumidity = Outside Humidity
outTemp = Outside Temperature
radiation = Radiation
rain = Rainfall
rainRate = Rain Rate
rainRateMax = Rain Rate max
rxCheckPercent = ISS Signal Quality
windDir = Wind Direction
windGust = Gust Speed
windGustDir = Gust Direction
windSpeed = Wind Speed
windchill = Wind Chill
windgustvec = Gust Vector
windvec = Wind Vector
ET = Evapotranspiration
# This one is probably specific to my station!
extraTemp1 = Pond Temperature
############################################################################################
[Language]
#
# Set a language below and labels will be overridden with any that are
specified in
# skins/languages/[language].conf
#
# Choices are: espanol, francais, italian, german
language = francais
############################################################################################
[Almanac]
# The labels to be used for the phases of the moon:
moon_phases = New, Waxing crescent, First quarter, Waxing gibbous, Full,
Waning gibbous, Last quarter, Waning crescent
############################################################################################
[CheetahGenerator]
# This section is used by the generator CheetahGenerator, and specifies
# which files are to be generated from which template.
encoding = html_entities # Possible encodings are 'html_entities',
'utf8', or 'strict_ascii'
search_list_extensions = user.historygenerator.MyXSearch,
user.timeperiods.TimePeriod
[[SummaryByMonth]]
#
# Reports that summarize "by month"
#
[[[NOAA_month]]]
encoding = strict_ascii
template = NOAA/NOAA-YYYY-MM.txt.tmpl
[[[NOAAcompare_month]]]
encoding = strict_ascii
template = Statistics/YYYY_MM_NOAA.txt.tmpl
[[SummaryByYear]]
#
# Reports that summarize "by year"
#
[[[NOAA_year]]]
encoding = strict_ascii
template = NOAA/NOAA-YYYY.txt.tmpl
[[[NOAAcompare_year]]]
encoding = strict_ascii
template = Statistics/YYYY_NOAA.txt.tmpl
[[ToDate]]
#
# Reports that show statistics "to date", such as day-to-date,
# week-to-date, month-to-date, etc.
#
[[[history]]]
template = history.html.tmpl
[[[XML]]]
template = XML/weewx_pws.xml.tmpl
[[HTMLFiles]]
#
# Pages that do not require time interval specific tags
#
[[[menu]]]
template = menu.html.tmpl
[[[direct]]]
template = direct.html.tmpl
[[[stats]]]
template = stats.html.tmpl
[[[day]]]
template = index.html.tmpl
[[[week]]]
template = week.html.tmpl
[[[month]]]
template = month.html.tmpl
[[[year]]]
template = year.html.tmpl
[[[noaa]]]
template = noaa_statistics.html.tmpl
############################################################################################
[CopyGenerator]
#
# This section is used by the generator CopyGenerator
#
# List of files that are to be copied at the first invocation of the
generator only
copy_once = css/*, js/*
# List of files to be copied every time:
# copy_always =
############################################################################################
[BootstrapLabels]
#
# Labels specific to the Bootstrap template
#
title = "Étang-Salé les Hauts - MétéoR-OI"
location_href = "http://stations.meteor-oi.re/ESH555/"
footer = "© MétéoR-OI 2015-2019 - Les données
de ce site ne peuvent garantir la protection des biens et des personnes"
# Variables specifiques a MeteoR-OI (utilisees par les scripts PHP de
comparaison)
station_id = ESH555
premier_jour = 24
premier_mois = 3
premiere_annee = 2013
sonde_sol = FALSE
[[headings]]
front_page = The Weather
stats = Stats
history = History
news = News
about = About
comparisons = Comparisons
last_update = Last updated
[[timespans]]
day = Last 24 hours
today = Today # today = any time since midnight
yesterday = Yesterday
week = This week
month = This Month
year = This Year
ever = Since ever
[[status]]
latitude = Latitude:
longitude = Longitude:
altitude = Altitude:
station_uptime = Station uptime:
server_uptime = Server uptime:
[[history_tables]]
min_temp = Minimum Temperature
max_temp = Maximum Temperature
meanmin_temp = Mean of minimum Temperature
meanmax_temp = Mean of maximum Temperature
avg_temp = Average Temperature
rain = Rainfall
rain_days = Days of rain
rainSum = Rain height
NOAA = NOAA Data
max_radiation = Maximum radiation
[[minmax]]
min = Low
max = High
avg = Mean
[[custom]]
[[[rain]]]
last_hours = Last hours rain
mean_term = Mean and long term rain
############################################################################################
[HistoryReport]
#
# Settings for the HTML month/year colour coded summary table generator
#
# minvalues, maxvalues and colours should contain the same number of
elements.
#
# For example, the [min_temp] example below, if the minimum temperature
measured in
# a month is between -50 and -10 (degC) then the cell will be shaded in
html colour code #0029E5.
#
# Default is temperature scale
minvalues = 0, 10, 15, 20, 25, 30
maxvalues = 10, 15, 20, 25, 30, 60
colours = "#BFFF00", "#FFFF00", "#FFBF00", "#FF8000", "#FF4000", "#FF0000"
monthnames = Jan, Fev, Mar, Avr, Mai, Jun, Jul, Aou, Sep, Oct, Nov, Dec
# Restrict the size of the table by ignoring everything before startdate
# Specify in unix epoch time. e.g. 1325376000 is 1-Jan-2012
#startdate = 1325376000
# The Raspberry Pi typically takes 15+ seconds to calculate all the
summaries with a few years of weather date.
# refresh_interval is how often in minutes the tables are calculated.
refresh_interval = 60
[[meanmin_temp]]
obs_type = outTemp
aggregate_type = meanmin
[[min_temp]]
obs_type = outTemp # obs_type can be any weewx reading
aggregate_type = min # Any of these: 'sum', 'count',
'avg', 'max', 'min'
#
# Can also use these aggregate_types: 'max_ge', 'max_le', 'min_le',
'sum_ge' to count days
# where an observation is ge: greater of equalto, or le: lessthan or equal
to a threshold value
# To specify this threshold, use: aggregate_threshold = [value], [units]
#
# e.g Specify temperature threshold of 20C: aggregate_threshold = 20,
degree_C
#
[[max_temp]]
obs_type = outTemp
aggregate_type = max
[[meanmax_temp]]
obs_type = outTemp
aggregate_type = meanmax
[[avg_temp]]
obs_type = outTemp
aggregate_type = avg
[[max_radiation]]
obs_type = radiation
aggregate_type = max
minvalues = 0, 900, 1000, 1100, 1200, 1300, 1400, 1500
maxvalues = 900, 1000, 1100, 1200, 1300, 1400, 1500, 2000
colours = "#40FF00", "#80FF00", "#BFFF00", "#FFFF00", "#FFBF00",
"#FF8000", "#FF4000", "#FF0000"
[[rain]]
obs_type = rain
aggregate_type = sum
minvalues = 0, 25, 50, 100, 250, 500, 1000 # Override default
temperature colour scheme with rain specific scale
maxvalues = 25, 50, 100, 250, 500, 1000, 2000
colours = "#E0F8E0", "#A8f2A8", "#39EA89", "#68E168", "#40D440",
"#20CB20", "#01C001"
[[rain_days]]
obs_type = rain
units = Days # Override default table units label
aggregate_type = sum_ge
aggregate_threshold = 1, mm
minvalues = 0, 6, 12, 18, 24, 30 # Override default temperature
colour scheme with rain specific scale
maxvalues = 6, 12, 18, 24, 30, 50
colours = "#E0F8E0", "#A9F5A9", "#04EC97", "#68E168", "#096834",
"#096834", "#01DF01"
[[NOAA]]
#
# Creates a table of links to NOAA reports with the tag $NOAA_table
# Comment out [[NOAATable]] if you do not need this.
#
# Where to find the NOAA files and how they are named
# Uses Python datetime convention
(docs.python.org/2/library/datetime.html):
# %Y = YYYY, %y = YY, %m = MM, etc.
#
year_filename = NOAA/NOAA-%Y.txt
month_filename = NOAA/NOAA-%Y-%m.txt
############################################################################################
#
# The list of generators that are to be run:
#
[Generators]
generator_list = user.translategenerator.CheetahGeneratorTranslated,
weewx.reportengine.CopyGenerator
