Hi All, A while ago I installed Nico Gulen's Niculskin and overall I'm really happy with it. (http:/newall-wx.gen.nz)
However ... (isn't there always one or two of these <grin>) However #1: How or where are the date and time displays actually configured? It appears to me that the settings in both /etc/weewx/weewx.conf and /etc/weewx/skins/niculskin/skin.conf are being ignored. This can be seen in the site where all dates are displayed in month-day-year format and and times in 12-hour format. I have attached both /etc/weewx/weewx.conf and niculskin/skin.conf. Cheers John in NZ -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
############################################################################### # $Id: skin.conf 2749 2014-11-29 18:15:24Z tkeffer $ # # Copyright (c) 2010 Tom Keffer <tkef...@gmail.com> # # SOFA SKIN (c) 2015 Sven Reifschneider <he...@blauesledersofa.de> # # SOFA SKIN CONFIGURATION FILE # ############################################################################### [Extras] # Template Extras # Current radar animation 3 hour loop ## radar_img = http://niederschlagsradar.de/image.ashx?type=loop3stunde&jaar=-2®io=homepage&tijdid=201511212239&time=&bliksem=0 # Current radar animation 24 hour loop ## radar_gif = http://niederschlagsradar.de/image.ashx?type=loop24stunde&jaar=-2®io=homepage&tijdid=201511212242&time=&bliksem=0 # Hyperlink for radar ## radar_url = http://niederschlagsradar.de # Lightning map and hyperlink ## lightning_map = http://images.blitzortung.org/Images/image_b_de.png ## lightning_url = http://www.lightningmaps.org/realtime?lang=de # URL for another radar (for example full Europe, Frankfurt center) ## radar_url_alt = http://meteox.com/meteox-maps.aspx?a=1&z=7&lat=50.1109221&lon=8.682126700000026 ## radar_url_alt_text = "Meteox Europe Radar" ############################################################################### [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 are used internally and should not be changed: group_count = count group_interval = minute group_time = unix_epoch group_elapsed = second [[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 = %.0f hour = %.1f inHg = %.3f inch = %.2f inch_per_hour = %.2f km_per_hour = %.0f km_per_hour2 = %.1f knot = %.0f knot2 = %.1f mbar = %.0f 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 second = %.0f uv_index = %.0f 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/h" degree_C = °C degree_F = °F degree_compass = ° foot = " feet" hPa = " hPa" inHg = " inHg" inch = " in" inch_per_hour = " in/h" km_per_hour = " km/h" km_per_hour2 = " km/h" knot = " knoten" knot2 = " knoten" mbar = " mbar" meter = " meter" 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²" day = " Day", " Days" hour = " Hour", " Hours" minute = " Minute", " Minutes" second = " Second", " Seconds" NONE = "" [[TimeFormats]] # This section sets the string format to be used for each time scale. # The values below will work in every locale, but may not look # particularly attractive. See the Customizing Guide for alternatives. day = %H:%M ## %X week = %H:%M on %A ## %X (%A) month = %d %b %Y %H:#M ## %x %X year = %d %b %Y %H:%M ## %x %X rainyear = %d %b %Y %H:%M ## x %X current = %d %b %Y %H:%M ## %x %X ephem_day = %H:%M ## %X ephem_year = %d %b %Y %H:%M ## %x %X [[Ordinates]] # The ordinal directions. The last one should be for no wind direction directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW, N/A [[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 = 18, degree_C # Base temperature for cooling days, with unit: cooling_base = 18, degree_C [[Trend]] time_delta = 10800 # 3 hours time_grace = 300 # 5 minutes ############################################################################### [Labels] # Labels used in this skin # Set to hemisphere abbreviations suitable for your location: hemispheres = N, S, E, W # Formats to be used for latitude whole degrees, longitude whole degrees, # and minutes: latlon_formats = "%02d", "%03d", "%05.2f" [[Generic]] # Generic labels, keyed by an observation type. barometer = Barometer dewpoint = Dew Point heatindex = Heat Index inHumidity = Inside Humidity inTemp = Inside Temperature outHumidity = Outside Humidity outTemp = Outside Temperature radiation = Radiation rain = Rain rainRate = Rain Rate rxCheckPercent = ISS Signal Quality UV = UV Index windDir = Wind Direction windGust = Gust Speed windGustDir = Gust Direction windSpeed = Wind Speed windchill = Wind Chill windgustvec = Gust Vector windvec = Wind Vector # This one is probably specific to my station! ## extraTemp1 = Extra Temperature 1 ## extraHumid1 = Extra Humidity 1 ## extraTemp2 = Extra Temperature 2 ## extraHumid2 = Extra Humidity 2 ############################################################################################ [Language] # # Set a language below and labels will be overridden with any that are specified in # skins/languages/[language].conf # # Choices are: dutch, english, espanol, finnish, francais, italian, german language = english ############################################################################### [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. # Possible encodings are 'html_entities', 'utf8', or 'strict_ascii' encoding = html_entities search_list_extensions = user.historygenerator.MyXSearch [[SummaryByMonth]] # Reports that summarize "by month" [[[NOAA_month]]] encoding = utf8 template = NOAA/NOAA-YYYY-MM.txt.tmpl [[SummaryByYear]] # Reports that summarize "by year" [[[NOAA_year]]] encoding = utf8 template = NOAA/NOAA-YYYY.txt.tmpl [[ToDate]] # Reports that show statistics "to date", such as day-to-date, # week-to-date, month-to-date, etc. [[[day]]] template = index.html.tmpl [[[week]]] template = week.html.tmpl [[[month]]] template = month.html.tmpl [[[year]]] template = year.html.tmpl [[[RSS]]] template = RSS/weewx_rss.xml.tmpl [[[history]]] template = history.html.tmpl ############################################################################### [CopyGenerator] # This section is used by the generator CopyGenerator # List of files to be copied only the first time the generator runs copy_once = css/main.css, css/scss/*, js/*, .htaccess, 404.html, robots.txt, touch-icon.png ############################################################################### [niculskinLabels] title = "Current Weather Conditions" location_ref_label = "Show on map" footer = "© 2016 by Nico Gulden" [[headings]] front_page = The Weather stats = Stats history = History news = News about = About last_update = Last updated current_conditions = Current Conditions since_midnight = Since Midnight outside_conditions = Outside Conditions wind = Wind inside = Inside Conditions extra1 = Extra Temperature 1 extra2 = Extra Temperature 2 this_week = This Week this_month = This Month calendar_year = Calendar Year year = 12 Months civil_twilight_start = Start civil twilight sunrise = Sunrise transit = Transit sunset = Sunset civil_twilight_end = End civil twilight azimuth = Azimuth altitude = Altitude right_ascension = Right ascension declination = Declination equinox = Equinox solstice = Solstice rise = Rise set = Set full_moon = Full moon new_moon = New moon moon_phase = Phase [[status]] latitude = Latitude: longitude = Longitude: altitude = Altitude: station_uptime = Station uptime: server_uptime = Server uptime: [[timespans]] day = Last 24 hours today = Since Midnight # today = any time since midnight week = This week month = This Month year = This Year ever = All Time [[history_tables]] min_temp = Minimum Temperature max_temp = Maximum Temperature avg_temp = Average Temperature rain = Rainfall rain_days = Days of rain NOAA = NOAA Data [[conditions]] out_temp = Outside Temperature out_humidity = Outside Humidity windchill = Windchill heatindex = Heat Index dewpoint = Dewpoint barometer = Barometer barometer_trend = Barometer Trend wind = Wind rain_rate = Rain Rate in_temp_humidity = Inside Temperature & Humidity ## extra_1_temp_humidity = Extra 1 Temperature & Humidity ## extra_2_temp_humidity = Extra 2 Temperature & Humidity out_temp_max = Maximum Outside Temperature out_temp_min = Minimum Outside Temperature heatindex_max = Maximum Heat Index windchill_min = Minimum Windchill dewpoint_max = Maximum Dewpoint dewpoint_min = Minimum Dewpoint out_humidity_max = Maximum Outside Humidity out_humidity_min = Minimum Outside Humidity barometer_max = Maximum Barometer barometer_min = Minimum Barometer rain_sum = Sum Rain rain_rate_max = Maximum Rain Rate wind_max = Maximum Wind wind_avg = Average Wind wind_rms = RMS Wind wind_vec = Wind Vector Average & Direction temp_max = Maximum Temperature temp_min = Minimum Temperature humidity_max = Maximum Humidity humidity_min = Minimum Humidity ############################################################################### [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 = -50, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35 maxvalues = -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 60 colours = "#0029E5", "#0186E7", "#02E3EA", "#04EC97", "#05EF3D2", "#2BF207", "#8AF408", "#E9F70A", "#F9A90B", "#FC4D0D", "#FF0F2D" monthnames = Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec # 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 = 5 [[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 [[avg_temp]] obs_type = outTemp aggregate_type = avg [[rain]] obs_type = rain aggregate_type = sum minvalues = 0, 25, 50, 75, 100, 150 # Override default temperature colour scheme with rain specific scale maxvalues = 25, 50, 75, 100, 150, 1000 colours = "#E0F8E0", "#A9F5A9", "#58FA58", "#2EFE2E", "#01DF01", "#01DF01" [[rain_days]] obs_type = rain units = Days # Override default table units label aggregate_type = sum_ge aggregate_threshold = 0.1, mm # https://de.wikipedia.org/wiki/Regentag 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", "#58FA58", "#2EFE2E", "#01DF01", "#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 ############################################################################### [ImageGenerator] # This section lists all the images to be generated, what SQL types are to # be included in them, along with many plotting options, such as color or # font. There's a default for almost everything, if not specified below. # Nevertheless, I have explicitly put in values, to make it easy to see # and understand the options. # # Fonts can be anything accepted by the Python Imaging Library (PIL), which # is currently truetype (.ttf), or PIL's own font format (.pil). See # http://www.pythonware.com/library/pil/handbook/imagefont.htm for more # details. Note that "font size" is only used with truetype (.ttf) # fonts. For others, font size is determined by the bit-mapped size, # usually encoded in the file name (e.g., courB010.pil). If a font cannot # be found, then a default font will be used. # # Colors can be specified any of three ways: # 1. Notation 0xBBGGRR; # 2. Notation #RRGGBB; or # 3. Using an English name, such as 'yellow', or 'blue'. # So, 0xff0000, #0000ff, or 'blue' would all specify a pure blue color. image_width = 800 image_height = 300 image_background_color = 0xffffff chart_background_color = 0xffffff chart_gridline_color = 0xdbdbdb top_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf top_label_font_size = 12 unit_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf unit_label_font_size = 12 unit_label_font_color = 0x000000 bottom_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf bottom_label_font_size = 12 bottom_label_font_color = 0x000000 axis_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf axis_label_font_size = 12 axis_label_font_color = 0x000000 # Options for the compass rose, used for progressive vector plots rose_label = N rose_label_font_path = /usr/share/fonts/truetype/droid/DroidSans-Bold.ttf rose_label_font_size = 12 rose_label_font_color = 0x000000 # Default colors for the plot lines. These can be overridden for # individual lines using option 'color' chart_line_colors = 0xb48242, 0x4242b4, 0x42b442 # Type of line. Only 'solid' or 'none' is offered now line_type = 'solid' # Size of marker in pixels marker_size = 8 # Type of marker. Pick one of 'cross', 'x', 'circle', 'box', or 'none' marker_type = 'none' # Default fill colors for bar charts. These can be overridden for # individual bar plots using option 'fill_color' chart_fill_colors = 0xc4b272, 0x7272c4, 0x72c472 # The following option merits an explanation. The y-axis scale used for # plotting can be controlled using option 'yscale'. It is a 3-way tuple, # with values (ylow, yhigh, min_interval). If set to "None", a parameter is # set automatically, otherwise the value is used. However, in the case of # min_interval, what is set is the *minimum* y-axis tick interval. yscale = None, None, None # For progressive vector plots, you can choose to rotate the vectors. # Positive is clockwise. # For my area, westerlies overwhelmingly predominate, so by rotating # positive 90 degrees, the average vector will point straight up. vector_rotate = 0 # This defines what fraction of the difference between maximum and minimum # horizontal chart bounds is considered a gap in the samples and should not # be plotted. line_gap_fraction = 0.01 bar_gap_fraction = 0.20 # This controls whether day/night bands will be shown. They only look good # on the day and week plots. show_daynight = true # These control the appearance of the bands if they are shown. 0xBBGGRR # Sofa Skin blue orange: # Night: #f0fdff Day: #fefff0 Edge: #f0fffb daynight_day_color = 0xf0fffe daynight_night_color = 0xfffdf0 daynight_edge_color = 0xfbfff0 ## What follows is a list of subsections, each specifying a time span, such ## as a day, week, month, or year. There's nothing special about them or ## their names: it's just a convenient way to group plots with a time span ## in common. You could add a time span [[biweek_images]] and add the ## appropriate time length, aggregation strategy, etc., without changing ## any code. ## ## Within each time span, each sub-subsection is the name of a plot to be ## generated for that time span. The generated plot will be stored using ## that name, in whatever directory was specified by option 'HTML_ROOT' ## in weewx.conf. ## ## With one final nesting (four brackets!) is the sql type of each line to ## be included within that plot. ## ## Unless overridden, leaf nodes inherit options from their parent # Default plot and aggregation. Can get overridden at any level. plot_type = line aggregate_type = none width = 1 time_length = 86400 # == 24 hours [[day_images]] x_label_format = %H:%M bottom_label_format = %x %X time_length = 97200 # == 27 hours [[[daybarometer]]] [[[[barometer]]]] [[[dayhumidity]]] [[[[outHumidity]]]] [[[[extraHumid2]]]] [[[daytempdew]]] [[[[outTemp]]]] [[[[dewpoint]]]] ## [[[[extraTemp2]]]] [[[daytempchill]]] [[[[windchill]]]] [[[[heatindex]]]] [[[dayrain]]] # Make sure the y-axis increment is at least 0.02 for the rain plot yscale = None, None, 0.02 plot_type = bar [[[[rain]]]] aggregate_type = sum aggregate_interval = 3600 label = Rain (Hourly Amount) [[[dayrx]]] [[[[rxCheckPercent]]]] [[[daywind]]] [[[[windSpeed]]]] [[[[windGust]]]] [[[dayinside]]] [[[[inTemp]]]] [[[[extraTemp1]]]] [[[dayinsidehumid]]] [[[[inHumidity]]]] [[[[extraHumid1]]]] [[[daywinddir]]] # Hardwire in the y-axis scale for wind direction yscale = 0.0, 360.0, 45.0 [[[[windDir]]]] [[[daywindvec]]] [[[[windvec]]]] plot_type = vector [[[dayradiation]]] [[[[radiation]]]] [[[dayuv]]] yscale = 0, 16, 1 [[[[UV]]]] [[week_images]] x_label_format = %d bottom_label_format = %x %X time_length = 604800 # == 7 days aggregate_type = avg aggregate_interval = 3600 [[[weekbarometer]]] [[[[barometer]]]] [[[weekhumidity]]] [[[[outHumidity]]]] [[[[extraHumid2]]]] [[[weektempdew]]] [[[[outTemp]]]] [[[[dewpoint]]]] ## [[[[extraTemp2]]]] [[[weektempchill]]] [[[[windchill]]]] [[[[heatindex]]]] [[[weekrain]]] yscale = None, None, 0.02 plot_type = bar [[[[rain]]]] aggregate_type = sum aggregate_interval = 86400 label = Rain (Daily Amount) [[[weekinside]]] [[[[inTemp]]]] [[[[extraTemp1]]]] [[[weekinsidehumid]]] [[[[inHumidity]]]] [[[[extraHumid1]]]] [[[weekrx]]] [[[[rxCheckPercent]]]] [[[weekwind]]] [[[[windSpeed]]]] [[[[windGust]]]] aggregate_type = max [[[weekwinddir]]] yscale = 0.0, 360.0, 45.0 [[[[windDir]]]] [[[weekwindvec]]] [[[[windvec]]]] plot_type = vector [[[weekradiation]]] [[[[radiation]]]] [[[weekuv]]] yscale = 0, 16, 1 [[[[UV]]]] [[month_images]] x_label_format = %d bottom_label_format = %x %X time_length = 2592000 # == 30 days aggregate_type = avg aggregate_interval = 10800 # == 3 hours show_daynight = false [[[monthbarometer]]] [[[[barometer]]]] [[[monthhumidity]]] [[[[outHumidity]]]] [[[[extraHumid2]]]] [[[monthtempdew]]] [[[[outTemp]]]] [[[[dewpoint]]]] ## [[[[extraTemp2]]]] # Daily high/lows: [[[monthhilow]]] [[[[hi]]]] data_type = outTemp aggregate_type = max label = Höchsttemperatur [[[[low]]]] data_type = outTemp aggregate_type = min label = Tiefsttemperatur [[[monthtempchill]]] [[[[windchill]]]] [[[[heatindex]]]] [[[monthrain]]] yscale = None, None, 0.02 plot_type = bar [[[[rain]]]] aggregate_type = sum aggregate_interval = 86400 label = Rain (Daily Amount) [[[monthinside]]] [[[[inTemp]]]] [[[[extraTemp1]]]] [[[monthinsidehumid]]] [[[[inHumidity]]]] [[[[extraHumid1]]]] [[[monthrx]]] [[[[rxCheckPercent]]]] [[[monthwind]]] [[[[windSpeed]]]] [[[[windGust]]]] aggregate_type = max [[[monthwinddir]]] yscale = 0.0, 360.0, 45.0 [[[[windDir]]]] [[[monthwindvec]]] [[[[windvec]]]] plot_type = vector [[[monthradiation]]] [[[[radiation]]]] [[[monthuv]]] yscale = 0, 16, 1 [[[[UV]]]] [[year_images]] x_label_format = %m/%d bottom_label_format = %x %X time_length = 31536000 # == 365 days aggregate_type = avg aggregate_interval = 86400 show_daynight = false [[[yearbarometer]]] [[[[barometer]]]] [[[yearhumidity]]] [[[[outHumidity]]]] [[[[extraHumid2]]]] [[[yeartempdew]]] [[[[outTemp]]]] [[[[dewpoint]]]] ## [[[[extraTemp2]]]] # Daily high/lows: [[[yearhilow]]] [[[[hi]]]] data_type = outTemp aggregate_type = max label = High Temperature [[[[low]]]] data_type = outTemp aggregate_type = min label = Low Temperature [[[yearwind]]] [[[[windSpeed]]]] [[[[windGust]]]] aggregate_type = max [[[yeartempchill]]] [[[[windchill]]]] [[[[heatindex]]]] [[[yearrain]]] yscale = None, None, 0.02 plot_type = bar [[[[rain]]]] aggregate_type = sum # aggregate_interval = 2629800 # Magic number: the length of a nominal month aggregate_interval = 604800 # == 1 week label = Rain (Monthly Amount) [[[yearinside]]] [[[[inTemp]]]] [[[[extraTemp1]]]] [[[yearinsidehumid]]] [[[[inHumidity]]]] [[[[extraHumid1]]]] [[[yearrx]]] [[[[rxCheckPercent]]]] [[[yearwinddir]]] yscale = 0.0, 360.0, 45.0 [[[[windDir]]]] [[[yearwindvec]]] [[[[windvec]]]] plot_type = vector [[[yearradiation]]] [[[[radiation]]]] [[[yearuv]]] yscale = 0, 16, 1 [[[[UV]]]] ############################################################################### # # The list of generators that are to be run: # [Generators] generator_list = user.translategenerator.CheetahGeneratorTranslated, weewx.imagegenerator.ImageGenerator, weewx.reportengine.CopyGenerator
# WEEWX CONFIGURATION FILE # # Copyright (c) 2009-2015 Tom Keffer <tkef...@gmail.com> # See the file LICENSE.txt for your rights. ############################################################################## # This section is for general configuration information. # Set to 1 for extra debug info, otherwise comment it out or set to zero debug = 1 # Root directory of the weewx data file hierarchy for this station WEEWX_ROOT = / # How long to wait before timing out a socket (FTP, HTTP) connection socket_timeout = 20 # Do not modify this. It is used when installing and updating weewx. version = 3.6.2 ############################################################################## # This section is for information about the station. [Station] # Description of the station location location = "Newall, Taranaki, New Zealand" # Latitude and longitude in decimal degrees latitude = -39.276721 longitude = 173.932653 # Altitude of the station, with unit it is in. This is downloaded from # from the station if the hardware supports it. altitude = 351, meter # Choose 'foot' or 'meter' for unit # Set to type of station hardware. There must be a corresponding stanza # in this file with a 'driver' parameter indicating the driver to be used. station_type = FineOffsetUSB # The start of the rain year (1=January; 10=October, etc.). This is # downloaded from the station if the hardware supports it. rain_year_start = 1 # Start of week (0=Monday, 6=Sunday) week_start = 0 # If you have a website, you may specify an URL station_url = http://newall-wx.gen.nz ############################################################################## [FineOffsetUSB] # This section is for the Fine Offset series of weather stations. # The station model, e.g., WH1080, WS1090, WS2080, WH3081 model = WH1080 # How often to poll the station for data, in seconds polling_interval = 60 # The driver to use: driver = weewx.drivers.fousb ############################################################################## [Simulator] # This section is for the weewx weather station simulator # The time (in seconds) between LOOP packets. loop_interval = 2.5 # The simulator mode can be either 'simulator' or 'generator'. # Real-time simulator. Sleep between each LOOP packet. mode = simulator # Generator. Emit LOOP packets as fast as possible (useful for testing). #mode = generator # The start time. If not specified, the default is to use the present time. #start = 2011-01-01 00:00 # The driver to use: driver = weewx.drivers.fousb ############################################################################## # This section is for uploading data to Internet sites [StdRESTful] [[StationRegistry]] # To register this weather station with weewx, set this to true register_this_station = true [[AWEKAS]] # This section is for configuring posts to AWEKAS. # If you wish to do this, set the option 'enable' to true, # and specify a username and password. enable = false username = replace_me password = replace_me [[CWOP]] # This section is for configuring posts to CWOP. # If you wish to do this, set the option 'enable' to true, # and specify the station ID (e.g., CW1234). enable = false station = replace_me # If this is an APRS (radio amateur) station, uncomment # the following and replace with a passcode (e.g., 12345). #passcode = replace_me (APRS stations only) [[PWSweather]] # This section is for configuring posts to PWSweather.com. # If you wish to do this, set the option 'enable' to true, # and specify a station and password. enable = true station = ******** password = ******* [[WOW]] # This section is for configuring posts to WOW. # If you wish to do this, set the option 'enable' to true, # and specify a station and password. enable = true station = ********* password = ****** [[Wunderground]] # This section is for configuring posts to the Weather Underground. # If you wish to do this, set the option 'enable' to true, # and specify a station (e.g., 'KORHOODR3') and password. enable = true station = ********** password = ******* # Set the following to True to have weewx use the WU "Rapidfire" # protocol. Not all hardware can support it. See the User's Guide. rapidfire = False ############################################################################## # This section specifies what reports, using which skins, to generate. [StdReport] # Where the skins reside, relative to WEEWX_ROOT SKIN_ROOT = /etc/weewx/skins # Where the generated reports should go, relative to WEEWX_ROOT HTML_ROOT = /var/www/html/weewx # The database binding indicates which data should be used in reports. data_binding = wx_binding # Each of the following subsections defines a report that will be run. [[StandardReport]] # See the customizing guide to change the units, plot types and line # colors, modify the fonts, display additional sensor data, and other # customizations. Many of those changes can be made here by overriding # parameters, or by modifying templates within the skin itself. # The StandardReport uses the 'Standard' skin, which contains the # images, templates and plots for the report. ## skin = Standard skin = niculskin ## skin = ss ## [[SteelSeries]] ## skin = ss ## HTML_ROOT = public_html/ss ## /var/www/html/weewx/ss [[[Units]]] [[[[Groups]]]] group_altitude = meter group_speed2 = km_per_hour2 group_pressure = mbar group_rain = mm group_rainrate = mm_per_hour group_temperature = degree_C group_degree_day = degree_C_day group_speed = km_per_hour [[[[TimeFormats]]]] date_f = %d/%B/%Y #options are '%m/%d/%Y' or '%d/%m/%Y' date_time_f = %d/%B/%Y %H:%M #options are '%m/%d/%Y %H:%M' or '%d/%m/%Y %H:%M' day = %X week = %X (%A) month = %x %X year = %x %X rainyear_start = %x %X current = %x %X ephem_day = %X epem_year = %x %X [[FTP]] # FTP'ing the results to a webserver is treated as just another report, # albeit one with an unusual report generator! skin = Ftp # If you wish to use FTP, uncomment and fill out the next four lines. #user = replace with the ftp username #password = replace with the ftp password #server = replace with the ftp server name, e.g, www.threefools.org #path = replace with the ftp destination directory (e.g., /weather) # Set to True for a secure FTP (SFTP) connection. Not all servers # support this. secure_ftp = False # To upload files from something other than what HTML_ROOT is set # to above, specify a different HTML_ROOT here. #HTML_ROOT = /var/www/html/weewx # Most FTP servers use port 21 port = 21 # Set to 1 to use passive mode, zero for active mode passive = 1 [[RSYNC]] # rsync'ing to a webserver is treated as just another report skin = Rsync # If you wish to use rsync, you must configure passwordless ssh using # public/private key authentication from the user account that weewx # runs as to the user account on the remote machine where the files # will be copied. # # The following three lines determine where files will be sent. #server = replace with the rsync server name, e.g, www.threefools.org #path = replace with the rsync destination directory (e.g., /weather) #user = replace with the rsync username # Rsync can be configured to remove files from the remote server if # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you # make a mistake in the remote path, you could could unintentionally # cause unrelated files to be deleted. Set to 1 to enable remote file # deletion, zero to allow files to accumulate remotely. delete = 0 ############################################################################## # This service acts as a filter, converting the unit system coming from # the hardware to a unit system in the database. [StdConvert] # The target_unit affects only the unit system in the database. Once # chosen it cannot be changed without converting the entire database. # Modification of target_unit after starting weewx will result in # corrupt data - the database will contain a mix of US and METRIC data. # # The value of target_unit does not affect the unit system for # reporting - reports can display US, Metric, or any combination of units. # # In most cases, target_unit should be left as the default: US # # In particular, those migrating from a standard wview installation # should use US since that is what the wview database contains. # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING! target_unit = US # Options are 'US', 'METRICWX', or 'METRIC' ############################################################################## # This section can adjust data using calibration expressions. [StdCalibrate] [[Corrections]] # For each type, an arbitrary calibration expression can be given. # It should be in the units defined in the StdConvert section. # Example: foo = foo + 0.2 ############################################################################## # This section is for quality control checks. If units are not specified, # values must be in the units defined in the StdConvert section. [StdQC] [[MinMax]] barometer = 26, 32.5, inHg outTemp = -40, 120, degree_F inTemp = 10, 120, degree_F outHumidity = 0, 100 inHumidity = 0, 100 windSpeed = 0, 120, mile_per_hour pressure = 24, 34.5, inHg ############################################################################## # This section controls the origin of derived values. [StdWXCalculate] [[Calculations]] # Derived quantities are calculated by this service. Possible values are: # hardware - use the value provided by hardware # software - use the value calculated by weewx # prefer_hardware - use value provide by hardware if available, # otherwise use value calculated by weewx pressure = prefer_hardware barometer = prefer_hardware altimeter = prefer_hardware windchill = prefer_hardware heatindex = prefer_hardware dewpoint = prefer_hardware inDewpoint = prefer_hardware rainRate = prefer_hardware ############################################################################## # For hardware that supports it, this section controls how often the # onboard clock gets updated. [StdTimeSynch] # How often to check the weather station clock for drift (in seconds) clock_check = 14400 # How much it can drift before we will correct it (in seconds) max_drift = 5 ############################################################################## # This section is for configuring the archive service. [StdArchive] # If the station hardware supports data logging then the archive interval # will be downloaded from the station. Otherwise, specify it (in seconds). archive_interval = 300 # How long to wait (in seconds) before processing new archive data. Must # be greater than zero. archive_delay = 15 # If possible, new archive records are downloaded from the station # hardware. If the hardware does not support this, then new archive # records will be generated in software. # Set the following to "software" to force software record generation. record_generation = software # Whether to include LOOP data in hi/low statistics loop_hilo = True # The data binding used to save archive records data_binding = wx_binding ############################################################################## # This section binds a data store to a database. [DataBindings] [[wx_binding]] # The database must match one of the sections in [Databases]. # This is likely to be the only option you would want to change. database = archive_sqlite # The name of the table within the database table_name = archive # The manager handles aggregation of data for historical summaries manager = weewx.wxmanager.WXDaySummaryManager # The schema defines the structure of the database. # It is *only* used when the database is created. schema = schemas.wview.schema ############################################################################## # This section defines various databases. [Databases] # A SQLite database is simply a single file [[archive_sqlite]] database_type = SQLite database_name = weewx.sdb # MySQL [[archive_mysql]] database_type = MySQL database_name = weewx ############################################################################## # This section defines defaults for the different types of databases. [DatabaseTypes] # Defaults for SQLite databases [[SQLite]] driver = weedb.sqlite # Directory in which the database files are located SQLITE_ROOT = /var/lib/weewx # Defaults for MySQL databases [[MySQL]] driver = weedb.mysql # The host where the database is located host = localhost # The user name for logging in to the host user = weewx # The password for the user name password = weewx ############################################################################## # This section configures the internal weewx engine. [Engine] [[Services]] # This section specifies the services that should be run. They are # grouped by type, and the order of services within each group # determines the order in which the services will be run. prep_services = weewx.engine.StdTimeSynch data_services = , process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate archive_services = weewx.engine.StdArchive restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS report_services = weewx.engine.StdPrint, weewx.engine.StdReport