instalar_weewx_raspberry2

March 24, 2018 | Author: Josep Montamat | Category: Computer Hardware, Software, Ip Address, Computing, Technology


Comments



Description

Esto es una introducción al fichero de configuración de Weewx y en ningún momento pretende ser una guía exhaustiva. Si quieres  profundizar acude al manual de usuario y al manual de personalización de Weewx. Encabezado Empezamos por el encabezamiento del fichero.  Por lo general, no se toca, salvo que tengamos problemas. # $Id: weewx.conf 2901 2015­02­05 21:15:03Z tkeffer $ # # WEEWX CONFIGURATION FILE # # Copyright (c) 2009­2014 Tom Keffer <[email protected]> # See the file LICENSE.txt for your full rights. ############################################################################## # This section is for general configuration information # Set to 1 for extra debug info, otherwise comment it out or set to zero. debug = 0 # 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 by setup.py when installing and updating. version = 3.1.0 ############################################################################## debug = 0  El nivel de información y errores en el log es el estándar. debug = 1  La cantidad de información de los procesos y los errores será intensiva. Ojo, los ficheros de log pueden adquirir tamaños  considerables El resto de valores no deben tocarse, salvo que realmente sepas lo que estás haciendo. Definición de la estación A continuación vamos a ver la sección donde decimos a Weewx que tipo de estación meteorológica va a manejar y algunos datos  importantes. ############################################################################## [Station]     # This section is for information about your station  This is downloaded from     # from the station if the hardware supports it.3562475     longitude = ­3. Oeste es negativo altitude = 630.es/weewx2     # The start of the rain year (1=January; 10=October.jantoni.5201664               La longitud de la ubicación en grados decimales. El nombre debe coincidir con  alguna de ellas. Davis Vantage Pro2 y Vue Esta es la sección de configuración de las estaciones Davis Vantage Pro2 y Davis Vantage Vue.    # Description of the station location. meter                   Indicamos la altura DE LA CONSOLA y la unidad de medida (meter o feet) en metros o pies station_type = Vantage                Indicamos que clase de estación usamos dentro de las admitidas por Weewx. los Weatherlink usb y los Weatherlink IP [Vantage] . This is     # downloaded from the station if the hardware supports it.     altitude = 630. Es común para ambas y configura tanto los  Weatherlink serie. meter     # Set to type of station hardware.5201664     # Altitude of the station.     location = Rivas­Vaciamadrid     # Latitude and longitude in decimal degrees     latitude = 40. 6=Sunday)     week_start = 0 ############################################################################## location = Rivas‐Vaciamadrid       Evidentemente es la descripción de donde está ubicada la estación latitude = 40.). etc. longitude = ‐3.  There must be a corresponding stanza     # in this file with a 'driver' parameter indicating the driver to be used. you may specify an URL     station_url = http://www. Este es positivo.     rain_year_start = 1     # Start of week (0=Monday.     station_type = Vantage     # If you have a website. with unit it is in.3562475                 La latitud de la ubicación en grados decimales.  es decir. debéis indicar el puerto. funciona sin datalogger. type = ethernet      Para los Weathelink IP port = /dev/ttyUSB0         Esto será en la inmensa mayoría de los casos. Fedora.2.2     # How many times to try before giving up:     max_tries = 4     # The driver to use:     driver = weewx. etc Veis que en mi fichero aparece /dev/ttyAMA0. . Si usáis un ordenador que disponga de puerto RS232 y lo utilizáis para el WeatherLink Serie. Por lo general será el  /dev/ttyS0. En algunas ocasiones podrá ser otro número distinto de cero. VantageVue or WeatherLinkIP     # Connection type: serial or ethernet     #  serial (the classic VantagePro)     #  ethernet (the WeatherLinkIP)     type = serial     # If the connection type is serial.  porque nuestro ordenador detecte otro puerto Serie‐USB. ya que este último."     ######################################################     # Serial baud rate (usually 19200)     baudrate = 19200     # TCP port (when using the WeatherLinkIP)     tcp_port = 22222     # TCP send delay (when using the WeatherLinkIP):     tcp_send_delay = 1     # The id of your ISS station (usually 1)     iss_id = 1     # How long to wait for a response from the station before giving up (in     # seconds; must be greater than 2)     timeout = 5     # How long to wait before trying again (in seconds)     wait_before_retry = 1.0.drivers. etc. a port must be specified:     #   Debian. Ese es el puerto serie estándar de Raspberry PI (en los contactos del GPIO) que podrán usar  directamente aquellos que tengan una consola Davis con firmware previo al 3. Ubuntu.     # You can safely leave it "as is.4     ######################################################     # The rest of this section rarely needs any attention. Redhat.    # This section is for a Davis VantagePro2. en realidad es solo un conversor. and SuSE:     #     /dev/ttyUSB0 is a common USB port name     #     /dev/ttyS0   is a common serial port name     #   BSD:     #     /dev/cuaU0   is a common serial port name     port = /dev/ttyAMA0     #    port = /dev/ttyUSB0     # If the connection type is ethernet. an IP Address/hostname is required:     host = 1.vantage type = serial           Pondremos serial para los WL serie y los WL USB. /dev/ttyS1.3.  OJO OJO. podéis usar este comando: dmesg | grep tty* Os aparecerán.g.drivers.. host = 1. el resto de parámetros se cambia muy raras veces. los adaptadores serie que tengáis conectados. incluido el datalogger. y es mejor no tocarlos salvo que sepas  lo que haces. WMR100. Si el ordenador tiene puertos RS232 estándar. e..2. WMR180A y WMRS200 La siguiente sección que explicamos es la que controla las Oregon WMR88. también aparecerán identificados. WMR180A y  WMRS200. además del ttyAMA0. No tiene ninguna verificación.Si tenéis dudas sobre cual es el puerto que tenéis que poner. Oregon WMR200 La siguiente sección es para la Oregón WMR200  no WMRS200 .3.WMR180.. salvo el modelo de estación model = WMR100        Es un texto. WMR100N. WMR88A. OJO..4       Aquí indicamos la dirección IP del Weatherlink‐IP Si la consola está en una ubicación remota.NO WMR200 [WMR100]     # This section is for the Oregon Scientific WMR100     # The station model.WMR180. Unicamente se pone para identificar el tipo de estación en las páginas  web generadas... debéis poner la dirección IP pública de la ubicación donde esté instalada y abrir el puerto  correspondiente del router remoto. WMR88A. con  su numeración. WMRS200     model = WMR100     # How long a wind record can be used to calculate wind chill (in seconds)     stale_wind = 30     # The driver to use:     driver = weewx. Oregon WMR88. WMR100. Como indica el fichero original de configuración. Quizás el único parámetro sea: iss_id = 1     que identifica que ISS debe leer la consola. WMR100N. lo normal es que siempre sea  1. WMR100. WMR100N. Salvo que tengáis varias Davis en la misma ubicación.wmr100 Esta sección no se tocará prácticamente NUNCA. que siempre está presente.  etc. WMR918.drivers. etc [WMR9x8]     # This section is for the Oregon Scientific WMR918/968     # Connection type. en la página web aparecerá WMR200 maravillosa Es decir..wmr200 En modelo aplicamos lo mismo que he indicado en la sección de WMR100 Si pones WMR200 maravillosa. WMR200. no tiene ninguna aplicación más que visual en las páginas web generadas. Radio Shack W200     model = WMR200     # The driver to use:     driver = weewx. /dev/ttyUSB0.drivers. 928.     type = serial     # Serial port such as /dev/ttyS0.[WMR200]     # This section is for the Oregon Scientific WMR200     # The station model. model = VMR968        Se aplica lo mismo dicho en la sección WMR100 y WMR200 Fine Offset o PCE Y ahora nos metemos con la configuración de la Fine Offset. Radio Shack. 968 Esta sección se dedica a las Oregon 918.g. La sección de WMR200 no tiene ningún ajuste.. 968 y todas sus variantes en marcas como Huger. e.928.g. e. . For now. or /dev/cuaU0     port = /dev/ttyUSB0     # The station model. Recordad que es el fabricante de las PCE FSW‐20 y que también se venden con  mil marcas mas. WMR200A. Oregon 918. Radio Shack 63­1016     model = WMR968     # The driver to use:     driver = weewx. 'serial' is the only option.wmr9x8 type = serial       Es la única opción Port = /dev/ttyUSB0      Lee la descripción en la sección Davis.  Si usas  ADAPTIVE deshabilitalo poniendo una # delante del campo. sin problema. WS1090. polling_interval = 60  El periodo de tiempo en segundos que Weewx usará para conectarse a la consola y leer el último registro. LaCrosse WS‐2300 y WS‐2800 Las siguientes secciones son para las LaCrosse series WS‐2300 y WS‐2800 [WS23xx] ..  Podemos poner. in seconds     # Este parametro es innecesario si usamos ADAPTIVE     #    polling_interval = 60     # The pressure calibration offset.[FineOffsetUSB]     # This section is for the Fine Offset series of weather stations.g.     # The station model. WH3081     model = WS2080     # The polling mode can be PERIODIC or ADAPTIVE     #    polling_mode = PERIODIC     polling_mode = ADAPTIVE     # How often to poll the station for data.fousb model = WS2080   lo mismo indicado en las anteriores secciones. cada X segundos (indicados por polling_interval) Weewx se conecta a la consola y lee el último registro.drivers. WS2080. PCE FWS‐20 pollíng_mode = ADAPTIVE polling_mode = PERIODIC ADAPTIVE significa que. cada vez que se genere un registro en la consola. este campo solo nos vale para indicar la marca de nuestra estación. se registrará por parte de Weewx PERIODIC significa que. Personalmente he usado ambos métodos y no he encontrado diferencias en la fiabilidad del sistema. WH1080. e. in hPa (millibars)     pressure_offset = 1     # The driver to use:     driver = weewx.  /dev/ttyUSB0.ws23xx [WS28xx]     # This section is for the La Crosse WS­2800 series of weather stations.drivers.     transceiver_frequency = US     # The station model. in hPa (millibars)     pressure_offset = 0     # The driver to use:     driver = weewx.     # Serial port such as /dev/ttyS0. por lo que es de aplicación en la misma medida..g. model y pressure_offset son idénticos a lo indicado anteriormente. 'LaCrosse WS2317' or 'TFA Primus'     model = LaCrosse WS23xx     # The pressure calibration offset.    # This section is for the La Crosse WS­2300 series of weather stations. e.drivers.  Default is US.     # Radio frequency to use between USB transceiver and console: US or EU     # US uses 915 MHz. El único campo a comentar es.ws28xx Los campos port.g. or /dev/cuaU0     port = /dev/ttyUSB0     # The station model. e. EU uses 868. . 'LaCrosse C86234' or 'TFA Primus'     model = LaCrosse WS28xx     # The pressure calibration offset..3 MHz. in hPa (millibars)     pressure_offset = 0     # The driver to use:     driver = weewx. en el caso de las WS2800: transceiver_frecuency = US transceiver_frecuency = EU Que evidentemente es para decir que frecuencias usa la consola para comunicarse.  or to associate other channels with     # specific columns in the database schema. originalmente. TFA Sinus/Nexus. TFA Nexus y Sinus. no tocaremos ningún parámetro.     [[sensor_map]]         # Map the remote sensors to columns in the database schema. Hideki. Esta estación puede tener multitud de sensores termohigrométricos. Bajo este nombre de driver Weewx se comunica con otras  mil estaciones con nombre y modelo diferente. Pondremos el nombre de nuestra estación. ya que los campos de  configuración se refieren a los sensores adicionales. etc. 'Meade TE923W' or 'TFA Nexus'     model = TE923     # The driver to use:     driver = weewx. este driver controla estaciones como las Mebus.     # The station model. Ventus W831. Honeywell. e. Actualmente. use the following maps.drivers. Honeywell. siempre las he denominado Honeywell ya que los sensores.te923     # The default configuration associates the channel 1 sensor with outTemp     # and outHumidity. etc. eran construidos por esta empresa. etc Salvo que tengamos sensores adicionales a los suministrados de manera estándar.g. Ventus W831 [TE923]     # This section is for the Hideki TE923 series of weather stations.La siguiente sección que comentamos es la correspondiente a la estación TE923.  To change this.         outTemp = t_1         outHumidity = h_1         extraTemp1 = t_2         extraHumid1 = h_2         extraTemp2 = t_3         extraHumid2 = h_3         extraTemp3 = t_4         # WARNING: the following are not in the default schema         extraHumid3 = h_4         extraTemp4 = t_5         extraHumid4 = h_5 . Hideki. El campo model ya lo hemos explicado hasta la saciedad. Personalmente.. A continuación la sección para las estaciones Peet Bros Ultimeter..g. Los sensores de viento y de preciipitación. Pero eso es otra historia. las WS1 y la CC3000 La WS1 es prácticamente idéntica a las FineOffset. son idénticos a la  FineOffset. que he tenido una de ellas y no me han gustado. model = Ultimeter          igual que lo comentado anteriormente. Ultimeter 2000. pero no son inalámbricas. WS1 y CC3000 La siguiente sección es para estaciones bastante minoritarias. Ultimeter 100     model = Ultimeter     # The driver to use:     driver = weewx. or /dev/cuaU0     port = /dev/ttyUSB0     # The station model. /dev/ttyUSB0.     # Serial port such as /dev/ttyS0. En este driver.drivers. Mira en la sección de Davis Vantage para ver la descripción. . no hay que configurar más que el puerto a usar. No voy a dejar de aprovechar la ocasión para volver a decir. es el modelo de la estación.    [[battery_map]]         txBatteryStatus = batteryUV         windBatteryStatus = batteryWind         rainBatteryStatus = batteryRain         outTempBatteryStatus = battery1         # WARNING: the following are not in the default schema         extraBatteryStatus1 = battery2         extraBatteryStatus2 = battery3         extraBatteryStatus3 = battery4         extraBatteryStatus4 = battery5 Peet Bros. no así el de temperatura. [Ultimeter]     # This section is for the PeetBros Ultimeter series of weather stations. e.ultimeter port = /dev/ttyUSB0      Ya explicado anteriormente.   Emit LOOP packets as fast as possible (useful for testing). No me detendré.drivers. [Simulator]     # This section is for the weewx weather station simulator     # The time (in seconds) between LOOP packets. es casi autoexplicativo y no tiene mucha utilidad.     # Serial port such as /dev/ttyS0. e. or /dev/cuaU0     port = /dev/ttyUSB0     # The station model.     #mode = generator     # The start time.     # Serial port such as /dev/ttyS0. es decir minoritarias por su elevado precio.g.ws1 ############################################################################## [CC3000]     # This section is for RainWise MarkIII weather stations and CC3000 logger. Sleep between each LOOP packet.     # Real­time simulator.     loop_interval = 2.     #start = 2011­01­01 00:00     # The driver to use:     driver = weewx.     mode = simulator     # Generator.drivers.La CC3000 y MKIII de RainWise son estaciones del otro extremo. /dev/ttyUSB0.simulator .5     # The simulator mode can be either 'simulator' or 'generator'.drivers. CC3000 or CC3000R     model = CC3000     # The driver to use:     driver = weewx. [WS1]     # This section is for the ADS WS1 series of weather stations. If not specified. or /dev/cuaU0     port = /dev/ttyUSB0     # The driver to use:     driver = weewx.cc3000 Tanto los campo model y port ya se han explicado bastantes veces. the default is to use the present time. Simulador La siguiente sección es del modo simulador. /dev/ttyUSB0.. [StdRESTful]     # This section is for uploading data to sites using RESTful protocols. uncomment the following station and password         # lines and fill them with your station and password:         station = pepito         password = pajarito     [[WOW]]         # This section is for configuring posts to WOW         # If you wish to do this.         rapidfire = True . See the User's Guide.     [[StationRegistry]]         # To register this weather station.com         # If you wish to do this. set this to True:         register_this_station = True     [[AWEKAS]]         # This section is for configuring posts to AWEKAS         # If you wish to do this. uncomment the following station and password         # lines and fill them with your station and password:         station = pepito         password = pajarito         # Set the following to True to have weewx use the WU "Rapidfire"         # protocol. comienza la configuración más compleja. you will need a passcode:         passcode = 12345     [[PWSweather]]         # This section is for configuring posts to PWSweather. Not all hardware can support it.A partir de este momento. make sure the following line is uncommented         # and filled out with your station ID:         station = EA5XX         # If you are an APRS (radio amateur) station. uncomment the following username and password         # lines and fill them with your username and password:         username = pepito         password = pajarito     [[CWOP]]         # This section is for configuring posts to CWOP         # If you wish to do this. uncomment the following station and password         # lines and fill them with your station and password:         #station =          #password =      [[Wunderground]]         # This section is for configuring posts to the Weather Underground         # If you wish to do this. Lo vamos complicando un poco más. El ponerlo en True implica mandar  datos a Wunderground cada pocos segundos.En esta sección vamos a configurar los servicios web a los que vamos a mandar datos En [[StationRegistry]] tan solo le indicamos a Weewx que queremos aparecer en el mapa de estaciones de Weewx Solo hay dos opciones: register_this_station = True register_this_station = False La página donde aparecen las estaciones Weewx que así lo desean es http://weewx. La estructura es la misma en todos ellos. tan solo tenemos que poner una # delante de cada campo. Código: [Seleccionar] [StdReport]     # This section specifies what reports. pero tampoco mucho. CWOP. Este código es el mismo que debes obtener para otros programas de APRS. ponlo a False. plot types and line .     # Where the skins reside. relative to WEEWX_ROOT:     SKIN_ROOT = /etc/weewx/skins     # Where the generated reports should go. Ojo con las estaciones que manden datos por 3G. ponerlo en False o se comerá la tarifa de  datos. Si queremos mandar datos.     [[StandardReport]]         # See the customizing guide to change the units. el campo station se sustituye por username En Wunderground tenemos el campo: rapidfire = True rapidfire = False Si no tienes una estación que actualice los datos cada pocos segundos. como las Davis. Esta red es la misma de APRS. Por ello si eres radioaficionado debes indicar en station tu indicativo de radioaficionado y en  password un código numérico.com/stations. relative to WEEWX_ROOT:     HTML_ROOT = /var/www/weewx     # The database binding indicates which data should be used in reports     data_binding = wx_binding     # Each subsection represents a report you wish to run. #station =  #password =  Particularidades: En el caso de Awekas. using which skins. to generate.html A continuación nos aparecen todos los servicios web que podemos mandar datos. por lo general la estructura es: station = elnombreocodigodeestacion password = laquenoshayandado Si no queremos mandar datos.         # The StandardReport uses the 'Standard' skin. but if yours is different.. www. or by modifying templates within the skin itself. Not all servers         # support this:         secure_ftp = False         # If you wish to upload files from something other than what HTML_ROOT         # is set to above. display additional sensor data.         # albeit one with an unusual report generator!         skin = Ftp         # If you wish to use FTP. 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.0.         skin = Standard #    #[[[Units]]]     #    [[[[Groups]]]]     #        group_altitude = meter     #        group_speed2 = meter_per_second2     #        group_pressure = mbar     #        group_rain = mm     #        group_rainrate = mm_per_hour     #        group_temperature = degree_C     #        group_degree_day = degree_C_day     #        group_speed = meter_per_second     [[FTP]]         # FTP'ing the results to a webserver is treated as just another report. e. and other         # customizations.  Many of those changes can be made here by overriding         # parameters. 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.g.threefools. templates and plots for the report.        # colors. /weather)         #user = replace with your username         # Rsync can be configured to remove files from the remote server if         # they don't exist under HTML_ROOT locally. modify the fonts. you can         # change it here         port = 21         # Set to 1 to use passive mode. which contains the         # images.78         path = /var/www/weewx         # Set to True for a secure FTP (SFTP) connection.168.g.org         #path = replace with the destination directory (e. then reset it here:         #HTML_ROOT = /var/www/weewx         # Most FTP servers use port 21.  USE WITH CAUTION: if you . uncomment and fill out the next four lines:         user = pi         password = raspberry         server = 192.         #         # The following determine where files will be sent:         #server = replace with your server name.  Tu también puedes programar  tu propio skin. En la wiki de weewx puedes descargar diferentes skinshttps://github. zero to allow files to accumulate remotely. SKIN_ROOT = /etc/weewx/skins aquí indicaremos el directorio donde se encuentran todos los "skin" HTML_ROOT = /var/www/weewx indicaremos el directorio donde se van a guardar los informes y páginas web que generemos data_binding = wx_binding  Este parámetro no lo tocaremos. Para aquel que no sepa de que va. Si quieres ver la diferencia entre los 3 modos de almacenar. bajo peligro de muerte :‐) En [[StandardReport]] configuraremos los informes que iremos generando. ya que su traducción nunca me ha gustado.com/weewx/weewx/wiki La sección StdConvert nos permite seleccionar  en que sistema de medidas vamos a almacenar las lecturas de nuestra estación.     # Modification of target_unit after starting weewx will result in     # corrupt data ‐ the database will contain a mix of US and METRIC data. converting the unit system coming from     # the hardware to a unit system in the database. Usaré la palabra "skin". lo podemos traducir como aspecto.htm#units Código: [Seleccionar] [StdConvert]     # This service acts as a filter. Hay multitud de skins ya programados. pellejo. skin = Standard     El informe StandardReport usará el skin Standard.  Once     # chosen it cannot be changed without converting the entire database. piel. Su traducción literal sería la de piel.        # make a mistake in the remote path. Pero esto nos da igual. you could could unintentionally         # cause unrelated files to be deleted. Set to 1 to enable remote file         # deletion.         delete = 0     [[SteelSeries]]         skin = ss         HTML_ROOT = /var/www/weewx/ss En esta sección. yo que sé.     #     # The value of target_unit does not affect the unit system for     # reporting ‐ reports can display US. Es decir. No quiero bases de datos corruptas en mis  espaldas.  capa. . or any combination of units. aquí tienes la información  http://www.     #     # The target_unit affects only the unit system in the database. Si lo quieres hacer. NO DARE SOPORTE NI INFORMACION PARA HACER LA TRANSFORMACION. Metric. aquellos que podremos ver en nuestra página web.weewx. tienes que leer bien la documentación para no  perder los datos. indicamos a Weewx que informes y usando que "skin". etc.com/docs/customizing. se van a generar. Solo hay 3 opciones: US es decir lo que se conoce popularmente como Imperial METRIC o METRICWX La diferencia entre METRIC y METRICWX  es muy sutil y viene a ser en la unidad de medida de la precipitación (mm o cm) y en la medida de  la velocidad del viento (kmph o m/s) Ninguna de las dos medidas en métrica se ajusta a lo establecido en Meteoclimatic. Particularmente almaceno mi base de datos en US IMPORTANTISIMO: No puedes cambiar de un sistema de medidas a otro. 044294974607099996 En el ejemplo anterior. Salvo que sepas lo que haces.  If units are not specified. Mucho ojo con esto. those migrating from a standard wview installation     # should use US since that is what the wview database contains. Es decir.     # values must be in the units defined in the StdConvert section. LAS CORRECCIONES DE LOS SENSORES se harán en la misma unidad definida en StdConvert.     # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!     target_unit = US    # Options are 'US'. # It should be in the units defined in the StdConvert section. aquí puedes intentar corregirlos. recomendamos no tocar esta sección. La manipulación de los datos de los sensores puede provocar la eliminación de los sellos de calidad Meteoclimatic. real de mi Ventus W831 (que no publica datos en Meteoclimatic).044294974607099996 inHg La sección StdQC también es de las que no tocaremos habitualmente. es decir. 120. igual que lo indicado en  StdConvert. por  ejemplo) y después de analizar las diferencias durante varios días. Consiste en la "calibración" de los sensores.5. por ejemplo. Estos son los valores por defecto de Weewx [StdQC] Código: [Seleccionar]     # This section is for quality control checks. degree_F         inTemp = 10.2         barometer = barometer + 0. Una excepción: La presión.    #     # In most cases. or 'METRIC' Esta sección es autoexplicativa. Si tu estación tiene la desagradable manía de dar valores extraños.     [[MinMax]]         barometer = 26. si almacenamos en unidades Imperiales. Siempre que hayamos visto cual es la diferencia con respecto a la referencia de nuestra zona (Aeropuerto. debemos corregir. # For example: # outTemp = outTemp ‐ 0. 'METRICWX'. an arbitrary calibration expression can be given. sumándole de forma constante 0.     [[Corrections]] # For each type. 32. Igual que la sección anterior. la presión en inHg Código: [Seleccionar] [StdCalibrate]     # This section can adjust data using calibration expressions. inHg         outTemp = ‐40. degree_F . Indicaremos el valor mínimo aceptado y el máximo. 120. hay que especificar los rangos en la misma unidad que las almacenamos. target_unit should be left as the default: US     #     # In particular. se aplica un offset de corrección a la variable  "barometer".   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. 100         inHumidity = 0. En la inmensa mayoría de los casos. solo he visto que funcione en las consolas Davis. Y si no lo facilita. Código: [Seleccionar] [StdWXCalculate]     # Derived quantities are calculated by this service.        outHumidity = 0. De momento. Le indicamos a Weewx que queremos que algunas variables las suministra la propia consola de la estación o si las calcula el. 100         windSpeed = 0. siempre será la de referencia. 120. . mile_per_hour Esta sección es también muy poco utilizada. estos son los valores a indicar. Lo habitual es indicar "prefer_hardware" que indica que el dato es calculado y facilitado por la consola. lo calcula Weewx.     #                      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 La sección StdTimeSynch sirve para corregir la diferencia entre el reloj de la consola y la del ordenador. Como se supone que la del ordenador está sincronizada por Internet. max_drift = segundos   Si la deriva de la consola es superior a esa cantidad de segundos. Si ves que la consola de tu estación no calcula correctamente esa variable. que son los valores por defecto. pues indicar "software" encargándose Weewx de realizar los  cálculos. Código: [Seleccionar] [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 clock_check = segundos   Indicamos a weewx cada cuantos segundos va a comprobar la deriva de la hora de la consola. Weewx sincronizará la hora de la consola con la  del ordenador.  Por ejemplo  si lo hace cada 5 minutos. if possible.  Por ejemplo.     archive_delay = 15     # Generally. Se recomienda 5 minutos tanto en consola como en Weewx. you must specify it below (in seconds):     archive_interval = 300     # How long to wait (in seconds) before processing new archive data. por tanto..     loop_hilo = True     # The data binding to be used:     data_binding = wx_binding archive_inverval = segundos     Se indicará la periodicidad de Weewx en generar los registros en los archivos. De lo contrario usa software.  Es buena idea que sea 15 o superior. Tiempos de generación superiores a 10 minutos. ocurre también con otros  softwares. ESTE TIEMPO DEBE COINCIDIR CON EL TIEMPO DE GENERACION EN LA CONSOLA SI WEEWX PUEDE LEERLO. 19:30:18 pm por jantoni‐EA4TN » La sección StdArchive no es crítica.ya he dicho muchas veces que se puede). el problema más habitual en el neófito en Weewx. etc. indica el número de segundos que esperará Weewx para procesar los datos. Must     # be greater than zero. Código: [Seleccionar] [StdArchive]     # This section is for configuring the archive service. plantilla  meteoclimatic. Este ha sido.     # Set the following to "software" to force software record generation:     record_generation = software     # Whether to include LOOP data in hi/low statistics. Esto no es exclusivo de Weewx. Genera los dolores de cabeza para aquellos usuarios con posibilidad de leer los datalogger por parte de WeeWX. Esto es. DEBES IGUALAR EL TIEMPO DE REGISTRO EN LA CONSOLA Y WEEWX. .. normalmente.« Última modificación: 13 de Octubre del 2015. sobrecargar el sistema. etc.     # Otherwise. LO QUE MANDA ES EL TIEMPO INDICADO EN LA  CONSOLA. Es  decir. Luego entenderéis por  qué. si. Este valor debe ser siempre mayor que cero. tendrás que usar software. Evitamos. las PCE FWS‐20 y las Davis pueden ser leidas por Weewx y pueden usar hardware. pues Linux ejecutará. tradicionalmente. then software record     # generation is done. new records are downloaded from the console     # hardware. páginas web. si en la consola tienes 30 minutos y en Weewx indicas 5 minutos (300 segundos). provocarán que tus gráficos sean lamentables. solo verás puntos aislados. archive_delay = segundos   No es un dato crítico. PERO GENERA MUCHOS DOLORES DE CABEZA.. Si usas una Davis sin datalogger (si. record_generation = software record_generation = hardware Si tu estación tiene un datalogger que pueda ser leido por Weewx usa hardware. If the console does not support this.     # If your station hardware supports data logging then the archive interval     # will be downloaded from the station. los procesos que tiene programados a lo largo del día en los  minutos exactos. INSISTO. en lugar de procesar los datos a las 15:05:00 lo hará a las 15:05:15.         schema = schemas. Esto será útil para aquellos usuarios que quieran volcar los datos en tablas de  Mysql para luego utilizarlas con otros programas que generen gráficos. El resto de campos no merecen explicación. páginas web.La diferencia es sutil. Estas secciones tienen una configuración que no es para iniciados. weewx. leerá los datos almacenados en el datalogger y los procesará adecuadamente. weewx. tendrás que verlo en el manual de usuario y el de personalización. Si pusiste  "hardware" al restablecerse Weewx.mysql Esto ni tocarlo.         # It is *only* used when the database is created.schema [Databases]     # This section defines the actual databases     # A SQLite database is simply a single file     [[archive_sqlite]]         root = %(WEEWX_ROOT)s         database_name = /var/lib/weewx/weewx.engine. [Engine]     # This section configures the engine.StdConvert. Si tu estación tiene datalogger compatible con Weewx y estableces "software" en este campo.StdQC.               Código: [Seleccionar] [Engine]     # This section configures the engine.         process_services = weewx.  user.engine. Si quieres saber más de ellas.StdTimeSynch. es a tu riesgo. weewx.WXDaySummaryManager         # The schema defines the structure of the database.     [[Services]]         # These are the services the engine should run:         prep_services = weewx.engine. Si tocas algo aquí. etc Código: [Seleccionar] [DataBindings]     # This section binds a data store to a database     [[wx_binding]]         # The database must match one of the sections in [Databases]         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.StdCalibrate.wxmanager.sqlite     # MySQL require a server (host) with name and password for access     [[archive_mysql]]         host = localhost         user = weewx         password = weewx         database_name = weewx         driver = weedb.ComputerMonitor . en el caso de que  hubiera un corte de corriente en el ordenador.StdWXCalculate.engine. al restablecerse Weewx no leerá los datos almacenados en el datalogger.         data_services = . Básicamente se refiere al manejo de las bases de datos.wview.wxservices.sdb         driver = weedb.cmon. StdCWOP.restx.StdArchive. weewx.StdPrint.StdAWEKAS         report_services = weewx.restx.restx.engine.restx. weewx.StdStationRegistry.StdWunderground.  weewx. weewx.restx.engine.StdReport .StdPWSweather.StdWOW. weewx.         restful_services = weewx.engine. weewx.restx.        archive_services = weewx.
Copyright © 2024 DOKUMEN.SITE Inc.