Software > WeeWX
Descripción de weewx.conf
jantoni:
A continuación la sección para las estaciones Peet Bros Ultimeter.
No voy a dejar de aprovechar la ocasión para volver a decir, que he tenido una de ellas y no me han gustado. Pero eso es otra historia.
En este driver, no hay que configurar más que el puerto a usar.
--- Código: ---[Ultimeter]
# This section is for the PeetBros Ultimeter series of weather stations.
# Serial port such as /dev/ttyS0, /dev/ttyUSB0, or /dev/cuaU0
port = /dev/ttyUSB0
# The station model, e.g., Ultimeter 2000, Ultimeter 100
model = Ultimeter
# The driver to use:
driver = weewx.drivers.ultimeter
--- Fin del código ---
port = /dev/ttyUSB0 Ya explicado anteriormente. Mira en la sección de Davis Vantage para ver la descripción.
model = Ultimeter igual que lo comentado anteriormente, es el modelo de la estación.
jantoni:
La siguiente sección es para estaciones bastante minoritarias, las WS1 y la CC3000
La WS1 es prácticamente idéntica a las FineOffset, pero no son inalámbricas. Los sensores de viento y de preciipitación, son idénticos a la FineOffset, no así el de temperatura.
La CC3000 y MKIII de RainWise son estaciones del otro extremo, es decir minoritarias por su elevado precio.
--- Código: ---[WS1]
# This section is for the ADS WS1 series of weather stations.
# Serial port such as /dev/ttyS0, /dev/ttyUSB0, or /dev/cuaU0
port = /dev/ttyUSB0
# The driver to use:
driver = weewx.drivers.ws1
##############################################################################
[CC3000]
# This section is for RainWise MarkIII weather stations and CC3000 logger.
# Serial port such as /dev/ttyS0, /dev/ttyUSB0, or /dev/cuaU0
port = /dev/ttyUSB0
# The station model, e.g., CC3000 or CC3000R
model = CC3000
# The driver to use:
driver = weewx.drivers.cc3000
--- Fin del código ---
Tanto los campo model y port ya se han explicado bastantes veces.
jantoni:
La siguiente sección es del modo simulador.
No me detendré, es casi autoexplicativo y no tiene mucha utilidad.
--- Código: ---[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
--- Fin del código ---
jantoni:
A partir de este momento, comienza la configuración más compleja.
--- Código: ---[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
--- Fin del código ---
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.
jantoni:
Lo vamos complicando un poco más, pero tampoco mucho.
--- Código: ---[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
--- Fin del código ---
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
Navegación
[#] Página Siguiente
[*] Página Anterior
Ir a la versión completa