Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - jantoni

Páginas: 1 ... 260 261 [262] 263 264 ... 268
3916
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 18:01:01 pm »
Esto ni tocarlo,  ;D ;D ;D ;D ;D ;D ;D

Código: [Seleccionar]
[Engine]
    # This section configures the engine.

[Engine]
    # This section configures the engine.

    [[Services]]
        # These are the services the engine should run:
        prep_services = weewx.engine.StdTimeSynch,
        data_services = ,
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate, user.cmon.ComputerMonitor
        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

3917
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 18:00:24 pm »
Estas secciones tienen una configuración que no es para iniciados.

Si quieres saber más de ellas, tendrás que verlo en el manual de usuario y el de personalización.

Si tocas algo aquí, es a tu riesgo.

Básicamente se refiere al manejo de las bases de datos. 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, páginas web, 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.wxmanager.WXDaySummaryManager
        # The schema defines the structure of the database.
        # It is *only* used when the database is created.
        schema = schemas.wview.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.sdb
        driver = weedb.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.mysql


3918
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 17:59:45 pm »
La sección StdArchive no es crítica, PERO GENERA MUCHOS DOLORES DE CABEZA.

Genera los dolores de cabeza para aquellos usuarios con posibilidad de leer los datalogger por parte de WeeWX. Luego entenderéis por qué.

Código: [Seleccionar]
[StdArchive]
    # This section is for configuring the archive service.

    # If your station hardware supports data logging then the archive interval
    # will be downloaded from the station.
    # Otherwise, you must specify it below (in seconds):
    archive_interval = 300

    # How long to wait (in seconds) before processing new archive data. Must
    # be greater than zero.
    archive_delay = 15

    # Generally, if possible, new records are downloaded from the console
    # hardware. If the console does not support this, then software record
    # generation is done.
    # 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 to be used:
    data_binding = wx_binding

archive_inverval = segundos     Se indicará la periodicidad de Weewx en generar los registros en los archivos. Esto es, páginas web, plantilla meteoclimatic, etc, etc. ESTE TIEMPO DEBE COINCIDIR CON EL TIEMPO DE GENERACION EN LA CONSOLA SI WEEWX PUEDE LEERLO. Es decir, si en la consola tienes 30 minutos y en Weewx indicas 5 minutos (300 segundos), LO QUE MANDA ES EL TIEMPO INDICADO EN LA CONSOLA.

Este ha sido, tradicionalmente, el problema más habitual en el neófito en Weewx.

INSISTO. DEBES IGUALAR EL TIEMPO DE REGISTRO EN LA CONSOLA Y WEEWX. Esto no es exclusivo de Weewx, ocurre también con otros softwares.

Tiempos de generación superiores a 10 minutos, provocarán que tus gráficos sean lamentables, solo verás puntos aislados.

Se recomienda 5 minutos tanto en consola como en Weewx.

archive_delay = segundos   No es un dato crítico, indica el número de segundos que esperará Weewx para procesar los datos. Por ejemplo si lo hace cada 5 minutos, en lugar de procesar los datos a las 15:05:00 lo hará a las 15:05:15. Este valor debe ser siempre mayor que cero.

Es buena idea que sea 15 o superior, pues Linux ejecutará, normalmente, los procesos que tiene programados a lo largo del día en los minutos exactos. Evitamos, por tanto, sobrecargar el sistema.

record_generation = software
record_generation = hardware


Si tu estación tiene un datalogger que pueda ser leido por Weewx usa hardware. De lo contrario usa software.

Por ejemplo, las PCE FWS-20 y las Davis pueden ser leidas por Weewx y pueden usar hardware.

Si usas una Davis sin datalogger (si, si....ya he dicho muchas veces que se puede), tendrás que usar software.

La diferencia es sutil. Si tu estación tiene datalogger compatible con Weewx y estableces "software" en este campo, en el caso de que hubiera un corte de corriente en el ordenador, al restablecerse Weewx no leerá los datos almacenados en el datalogger. Si pusiste "hardware" al restablecerse Weewx, leerá los datos almacenados en el datalogger y los procesará adecuadamente.

El resto de campos no merecen explicación.

3919
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 17:59:27 pm »
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, siempre será la de referencia.

De momento, solo he visto que funcione en las consolas Davis.

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.

max_drift = segundos   Si la deriva de la consola es superior a esa cantidad de segundos, Weewx sincronizará la hora de la consola con la del ordenador.

3920
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 17:59:09 pm »
Esta sección es también muy poco utilizada.

Le indicamos a Weewx que queremos que algunas variables las suministra la propia consola de la estación o si las calcula el.

Lo habitual es indicar "prefer_hardware" que indica que el dato es calculado y facilitado por la consola. Y si no lo facilita, lo calcula Weewx.

Si ves que la consola de tu estación no calcula correctamente esa variable, pues indicar "software" encargándose Weewx de realizar los cálculos.

En la inmensa mayoría de los casos, estos son los valores a indicar, que son los valores por defecto.

Código: [Seleccionar]
[StdWXCalculate]
    # 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

3921
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 17:58:50 pm »
La sección StdQC también es de las que no tocaremos habitualmente.

Si tu estación tiene la desagradable manía de dar valores extraños, aquí puedes intentar corregirlos.

Igual que la sección anterior, hay que especificar los rangos en la misma unidad que las almacenamos, es decir, igual que lo indicado en StdConvert.

Indicaremos el valor mínimo aceptado y el máximo.

Estos son los valores por defecto de Weewx

[StdQC]
Código: [Seleccionar]
    # This section is for quality control checks.  If units are not specified,
    # values must be in the units defined in the StdConvert section.

    [[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

3922
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 17:58:36 pm »
Esta sección es autoexplicativa.

Consiste en la "calibración" de los sensores.

Mucho ojo con esto. La manipulación de los datos de los sensores puede provocar la eliminación de los sellos de calidad Meteoclimatic.

Salvo que sepas lo que haces, recomendamos no tocar esta sección.

Una excepción: La presión. Siempre que hayamos visto cual es la diferencia con respecto a la referencia de nuestra zona (Aeropuerto, por ejemplo) y después de analizar las diferencias durante varios días.

LAS CORRECCIONES DE LOS SENSORES se harán en la misma unidad definida en StdConvert.

Es decir, si almacenamos en unidades Imperiales, debemos corregir, por ejemplo, la presión en inHg


Código: [Seleccionar]
[StdCalibrate]
    # This section can adjust data using calibration expressions.

    [[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the units defined in the StdConvert section.
# For example:
# outTemp = outTemp - 0.2

        barometer = barometer + 0.044294974607099996

En el ejemplo anterior, real de mi Ventus W831 (que no publica datos en Meteoclimatic), se aplica un offset de corrección a la variable "barometer", sumándole de forma constante 0.044294974607099996 inHg

3923
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 17:58:12 pm »
La sección StdConvert nos permite seleccionar  en que sistema de medidas vamos a almacenar las lecturas de nuestra estación.

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. Pero esto nos da igual.

Particularmente almaceno mi base de datos en US

IMPORTANTISIMO: No puedes cambiar de un sistema de medidas a otro. Si lo quieres hacer, tienes que leer bien la documentación para no perder los datos. NO DARE SOPORTE NI INFORMACION PARA HACER LA TRANSFORMACION. No quiero bases de datos corruptas en mis espaldas.

Si quieres ver la diferencia entre los 3 modos de almacenar, aquí tienes la información http://www.weewx.com/docs/customizing.htm#units

Código: [Seleccionar]
[StdConvert]

    # This service acts as a filter, converting the unit system coming from
    # the hardware to a unit system in the database.
    #
    # 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'

3924
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 17:57:52 pm »
Lo vamos complicando un poco más, pero tampoco mucho.

Código: [Seleccionar]
[StdReport]
    # This section specifies what reports, using which skins, to generate.

    # 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/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.

    [[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

#    #[[[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,
        # albeit one with an unusual report generator!
        skin = Ftp

        # If you wish to use FTP, uncomment and fill out the next four lines:
        user = pi
        password = raspberry
        server = 192.168.0.78
        path = /var/www/weewx

        # Set to True for a secure FTP (SFTP) connection. 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, then reset it here:
        #HTML_ROOT = /var/www/weewx

        # Most FTP servers use port 21, but if yours is different, you can
        # change it here
        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 determine where files will be sent:
        #server = replace with your server name, e.g, www.threefools.org
        #path = replace with the destination directory (e.g., /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.  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

    [[SteelSeries]]
        skin = ss
        HTML_ROOT = /var/www/weewx/ss

En esta sección, indicamos a Weewx que informes y usando que "skin", se van a generar.

Usaré la palabra "skin", ya que su traducción nunca me ha gustado. Para aquel que no sepa de que va, lo podemos traducir como aspecto, capa, piel, yo que sé. Su traducción literal sería la de piel, pellejo, etc.

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, bajo peligro de muerte :-)

En [[StandardReport]] configuraremos los informes que iremos generando. Es decir, aquellos que podremos ver en nuestra página web.

skin = Standard     El informe StandardReport usará el skin Standard. Hay multitud de skins ya programados. Tu también puedes programar tu propio skin. En la wiki de weewx puedes descargar diferentes skins https://github.com/weewx/weewx/wiki


3925
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 17:54:55 pm »
A partir de este momento, comienza la configuración más compleja.

Código: [Seleccionar]
[StdRESTful]
    # This section is for uploading data to sites using RESTful protocols.

    [[StationRegistry]]
        # To register this weather station, 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 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, make sure the following line is uncommented
        # and filled out with your station ID:
        station = EA5XX

        # If you are an APRS (radio amateur) station, you will need a passcode:
        passcode = 12345

    [[PWSweather]]
        # This section is for configuring posts to PWSweather.com

        # 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

    [[WOW]]
        # This section is for configuring posts to WOW

        # 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, 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. Not all hardware can support it. See the User's Guide.
        rapidfire = True

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.com/stations.html

A continuación nos aparecen todos los servicios web que podemos mandar datos.

La estructura es la misma en todos ellos.

Si queremos mandar datos, por lo general la estructura es:

station = elnombreocodigodeestacion
password = laquenoshayandado


Si no queremos mandar datos, tan solo tenemos que poner una # delante de cada campo.

#station =
#password =


Particularidades:

En el caso de Awekas, 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, ponlo a False. El ponerlo en True implica mandar datos a Wunderground cada pocos segundos. Ojo con las estaciones que manden datos por 3G, ponerlo en False o se comerá la tarifa de datos.

CWOP. 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. Este código es el mismo que debes obtener para otros programas de APRS.


3926
Forum General / Re:Bienvenidos al nuevo foro de Meteoclimatic
« en: 12 de Octubre del 2015, 15:26:06 pm »
Y veréis cuando ponga los emoticonos....os voy a dar con el emoticono de la maza

3927
Presentación / Re:Hola!
« en: 12 de Octubre del 2015, 13:51:32 pm »
Hola Kaiser.

En cuanto a Weewx pues en el foro de Weewx nos tienes para lo que sea.

Para el resto, podemos hablar en la sección de Bricos

Ya nos contarás todo el tinglado.



3928
Software de Meteoclimatic / Re:Utilidad para subir datos a Meteoclimatic con Linux
« en: 12 de Octubre del 2015, 13:48:40 pm »
Si no sabes entrar como root, es posible que no tengas habilitada la cuenta de root.

Si usas una de mis imágenes, prueba con:

user: root
password: root

De lo contrario, entra como es habitual, con user pi y password raspberry.

Los archivos los debes subir perfectamente con el gestor de archivos de Tunnelier al directorio /home/pi

En otro directorios, no podrás por el tema de permisos, como bien dices.

Una vez subidos a /home/pi, desde la consola de Bitvise Tunnelier los copias donde quieras con "sudo mv origen destino"

sudo es magia en estado puro, je je je

3929
Ordenadores / Re:Cenovo MiniPC
« en: 12 de Octubre del 2015, 13:45:01 pm »
Ya sabes.....el primero es el pionero.....y se arriesga, je je je....

Eso si.....hay que contar la experiencia.

Esto se pone muy interesante en cuanto a cacharrines

3930
WeeWX / Re:Descripción de weewx.conf
« en: 12 de Octubre del 2015, 11:21:33 am »
La siguiente sección es del modo simulador.

No me detendré, es casi autoexplicativo y no tiene mucha utilidad.

Código: [Seleccionar]
[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.simulator

Páginas: 1 ... 260 261 [262] 263 264 ... 268