Meteoclimatic
Software => WeeWX => Mensaje iniciado por: gonchoCT en 29 de Noviembre del 2019, 17:20:44 pm
-
Buenas, resulta que he intentado instalar weewx en mi raspi 3 b y se supone que, en este paso, se me debería abrir un cuadro de instalación de weewx para elegir estación, altitud, etc, pero no me se abre nada. OS dejo aquí lo que me sale en la consola por si a alguien se le ocurre algo:
pi@raspberrypi:~ $ sudo apt-get install weewx
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
weewx ya está en su versión más reciente (3.9.2-1).
El paquete indicado a continuación se instaló de forma automática y ya no es necesario.
point-rpi
Utilice «sudo apt autoremove» para eliminarlo.
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] S
Configurando weewx (3.9.2-1) ...
Saved configuration to /etc/weewx/weewx.conf
-
Prueba con sudo wee_config --reconfigure
-
Muchas gracias, ya se me ha abierto el cuadro. Ahora tengo otra duda, hay un paso en el que me pide que le indique en que puerto estoy conectando la Davis. He ejecutado dmesg previamente, pero no se cual es el de la Davis, si el usb 1-1-1 o el usb 1-1-4.
.472117] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[ 1.472129] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.472807] hub 1-1:1.0: USB hub found
[ 1.472895] hub 1-1:1.0: 5 ports detected
[ 1.791839] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.922073] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[ 1.922085] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.924666] smsc95xx v1.0.6
[ 2.015249] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:61:64:dd
[ 2.111836] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[ 2.270611] usb 1-1.2: New USB device found, idVendor=046d, idProduct=c248, bcdDevice=73.00
[ 2.270624] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.270633] usb 1-1.2: Product: Gaming Keyboard G105
[ 2.270642] usb 1-1.2: Manufacturer: Logitech
[ 2.290763] input: Logitech Gaming Keyboard G105 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C248.0001/input/input0
[ 2.352357] hid-generic 0003:046D:C248.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech Gaming Keyboard G105] on usb-3f980000.usb-1.2/input0
[ 2.375268] input: Logitech Gaming Keyboard G105 Consumer Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C248.0002/input/input1
[ 2.442261] hid-generic 0003:046D:C248.0002: input,hiddev96,hidraw1: USB HID v1.10 Device [Logitech Gaming Keyboard G105] on usb-3f980000.usb-1.2/input1
[ 2.541844] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[ 2.679612] usb 1-1.4: New USB device found, idVendor=10c4, idProduct=ea61, bcdDevice= 1.00
[ 2.679624] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.679634] usb 1-1.4: Product: CP2102 USB to UART Bridge Controller
[ 2.679643] usb 1-1.4: Manufacturer: Silicon Labs
[ 2.679652] usb 1-1.4: SerialNumber: 1558547320
[ 2.781836] usb 1-1.5: new low-speed USB device number 6 using dwc_otg
[ 2.916859] usb 1-1.5: New USB device found, idVendor=04f2, idProduct=1459, bcdDevice= 1.00
[ 2.916871] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.916881] usb 1-1.5: Product: HP USB Optical Mouse
[ 2.916891] usb 1-1.5: Manufacturer: PixArt
-
https://forum.meteoclimatic.net/index.php/topic,42.msg165.html#msg165
En el hilo con chincheta de weewx Jantoni lo explica...
Lo normal es que esté en /dev/ttyUSB0
-
Muchas gracias, eso ya está completado. Ahora estoy perdido, no sé por donde seguir para subir los datos. He descargado la utilidad para subir datos, pero al poner el comando me indica lo siguiente:
chown: no se puede acceder a "meteoclimatic.sh": No existe el fichero o el directorio
-
Y otra duda más. Yo llevo mandando datos desde mayo con windows, al enviar datos con la raspi, ¿se creará un nuevo código de estación o mantendré el mismo? Lo digo porque estoy en fase de auditoría y no sé si perderé el IR.
-
Muchas gracias, eso ya está completado. Ahora estoy perdido, no sé por donde seguir para subir los datos. He descargado la utilidad para subir datos, pero al poner el comando me indica lo siguiente:
chown: no se puede acceder a "meteoclimatic.sh": No existe el fichero o el directorio
Crea una carpeta en /home/pi llamada meteoclimatic con mkdir /home/pi/meteoclimatic y descarga los archivos en ella.
Edita meteoclimatic.sh quedándose así:
#!/bin/bash
cd /home/pi/meteoclimatic
#Si no quieres log
php /home/pi/meteoclimatic/meteoclimatic_http.php.old
#php /home/pi/meteoclimatic/meteoclimatic_http.php.old >> /home/pi/meteoclimatic/meteoclimatic.log
exit
Ahora edita meteoclimatic.ini quedándose así:
[Global]
Stations=ESMUR3000000030380C
DigestKey=
[ESMUR3000000030380C]
Path=/var/www/html/weewx/meteoclimatic.htm
Password=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
StationVendor=Davis
StationModel=Vantage Vue
Cambiando en Password las xxx por la contraseña de tu estación en meteoclimatic.
Dale permisos de ejecución a meteoclimatic.sh con chmod u+x /home/pi/meteoclimatic/meteoclimatic.sh
y abre el crontab con crontab -e y al final en una línea en blanco pones 15,30,45,59 * * * * /home/pi/meteoclimatic/meteoclimatic.sh
Y ya debería de subir la plantilla contando que la plantilla se está generando en /var/www/html/weewx/meteoclimatic.htm
Para que la genere sigue este hilo:
http://wiki.meteoclimatic.net/wiki/WeeWX_y_Meteoclimatic
Y otra duda más. Yo llevo mandando datos desde mayo con windows, al enviar datos con la raspi, ¿se creará un nuevo código de estación o mantendré el mismo? Lo digo porque estoy en fase de auditoría y no sé si perderé el IR.
Si usas mismo código de estación (se supone que no has creado una estación nueva) sigues con la misma estación. El problema es que con weewx empiezas de 0 y tendrás muchas inconsistencias al no enviar weewx las máximas mínimas anuales correctas..
-
No se porqué, pero me deja mover tpl.php a cualquier carpeta menos a la de standard (skin). ¿Hay algún comando para eso?
-
Mover un fichero a una carpeta:
mv fichero /carpeta
y renombrar un fichero:
mv cancion.mp3 musica.mp3
-
Seguramente es propiedad de pi
Sitúate en la carpeta donde la tengas con la consola y ejecuta sudo chown root:root tpl.php && sudo mv tpl.php /etc/weewx/skins/Standard/meteoclimatic.htm.tmpl
-
Me sale esto:
sudo chown root:root tpl.php && sudo mv tpl.php /etc/weewx/skins/Standard/meteoclimatic.htm.tmpl
chown: no se puede acceder a tpl.php: no existe el fichero o el directorio
-
Mover un fichero a una carpeta:
mv fichero /carpeta
y renombrar un fichero:
mv cancion.mp3 musica.mp3
Con este comando me dice que tampoco existe
-
Pues acabo de descubrir que por algún motivo el cual desconozco weewx no sube los datos a internet... estoy por ponerle kodi a la raspi y mandarlo todo al carajo jaja esto es muy difícil para mí
-
Seguramente es propiedad de pi
Sitúate en la carpeta donde la tengas con la consola y ejecuta sudo chown root:root tpl.php && sudo mv tpl.php /etc/weewx/skins/Standard/meteoclimatic.htm.tmpl
Sitúate en la carpeta donde la tengas (tpl.php). Si la tienes en /home/pi ejecuta la orden desde ahí y si no desde donde esté.
Para listar archivos y directorios usa ls -l para pasar se uno a otro usa cd
Hay mucha info por la web sobre como moverse por los directorios linux y hacer cosas básicas para los recién llegados, por ejemplo:
https://elblogdeliher.com/como-moverse-por-los-directorios-en-la-terminal-de-ubuntu/
Ya dije que hace falta familiarizarse, sobre todo con la consola linux y sus comandos.
Pues acabo de descubrir que por algún motivo el cual desconozco weewx no sube los datos a internet... estoy por ponerle kodi a la raspi y mandarlo todo al carajo jaja esto es muy difícil para mí
Qué quieres decir con que "no sube datos a internet" ? No sube datos a WU ? A Awekas? Por FTP? Qué te pone al ejecutar service weewx status?
-
Esto es lo que me sale al ejecutar service weewx status:
color=green]● [/color]weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated)
Active: active (running) since Sat 2019-11-30 00:10:21 CET; 13h ago
Docs: man:systemd-sysv-generator(8)
Process: 372 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
Tasks: 1 (limit: 2200)
Memory: 17.8M
CGroup: /system.slice/weewx.service
└─521 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
nov 30 13:14:15 raspberrypi weewx[521]: manager: Added record 2019-11-05 10:15:00 CET (1572945300) to daily summary in 'weewx.sdb'
nov 30 13:14:19 raspberrypi weewx[521]: manager: Added record 2019-11-05 10:30:00 CET (1572946200) to database 'weewx.sdb'
nov 30 13:14:19 raspberrypi weewx[521]: manager: Added record 2019-11-05 10:30:00 CET (1572946200) to daily summary in 'weewx.sdb'
nov 30 13:14:22 raspberrypi weewx[521]: manager: Added record 2019-11-05 10:45:00 CET (1572947100) to database 'weewx.sdb'
nov 30 13:14:22 raspberrypi weewx[521]: manager: Added record 2019-11-05 10:45:00 CET (1572947100) to daily summary in 'weewx.sdb'
nov 30 13:14:23 raspberrypi weewx[521]: manager: Added record 2019-11-05 11:00:00 CET (1572948000) to database 'weewx.sdb'
nov 30 13:14:23 raspberrypi weewx[521]: manager: Added record 2019-11-05 11:00:00 CET (1572948000) to daily summary in 'weewx.sdb'
nov 30 13:14:27 raspberrypi weewx[521]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
nov 30 13:14:29 raspberrypi weewx[521]: manager: Added record 2019-11-05 11:15:00 CET (1572948900) to database 'weewx.sdb'
nov 30 13:14:29 raspberrypi weewx[521]: manager: Added record 2019-11-05 11:15:00 CET (1572948900) to daily summary in 'weewx.sdb'
-
A lo que me quería referir con lo de internet es que cuando ejecuto en el buscador o en la consola file:///var/www/html/weewx/index.html, me aparece que el archivo no existe
-
A lo que me quería referir con lo de internet es que cuando ejecuto en el buscador o en la consola file:///var/www/html/weewx/index.html, me aparece que el archivo no existe
Has visto si tienes ese archivo index.html en la carpeta /var/www/html/weewx ?
Y eso no es subir nada a internet, es ver un archivo local por el navegador. Habrá que ver si weewx te está generando esos archivos en esa carpeta.
El resultado de service weewx status que has puesto es el típico cuando está leyendo el datalogger aunque es raro ya que dice que weewx lleva 13 horas funcionando...
-
Sí, tengo ese archivo en la carpeta, y clicando en él ya se me ha abierto la página de internet de mis datos, gracias por la ayuda.
Pero por lo que veo, solo ha estado subiendo datos hasta la 1, y no se porqué
-
Creía que era que subía los datos a internet, gracias por sacarme de mi confusión :;
-
A ver, eso de hasta la 1... de este mediodía ? En la salida de service weewx status que has puesto antes eran las 13:14 en tu Raspberry y weewx estaba leyendo el datalogger de la Davis, siendo las 11:15 la última lectura/grabación a su base de datos, ignoro si seguiría después leyendo hasta las 13:15 que es la hora que dices tener en la página web de weewx.
Tendrás que ir comprobando con service weewx status que está leyendo/grabando registros de la Davis con la hora actualizada y si no, es que algo raro sucede.
En cuanto a lo de la página web con los datos puedes instalar apache2 en la raspi (sudo apt-get install apache2) y entrar en el navegador de la raspi a la dirección http://127.0.0.1/weewx/ o http://localhost/weewx/
Si le pones una IP local fija a la Raspi podrás acceder a esa página desde cualquier dispositivo de tu red local poniendo la IP local de la raspi.
-
Hola, perdón por tardar en responder. Resulta que weewx si que genera imagenees y archivos, pero el copygenerator no los copia a /var/www/html/weewx. ¿Sabes por qué puede ser?
-
Copia y pega el contenido de /etc/weewx/weewx.conf aquí
-
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2019 Tom Keffer <tkeffer@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 = 0
# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /
# Whether to log successful operations
log_success = True
# Whether to log unsuccessful operations
log_failure = True
# 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.9.2
##############################################################################
# This section is for information about the station.
[Station]
# Description of the station location
location = La Manga del Mar Menor
# Latitude and longitude in decimal degrees
latitude = 37.64
longitude = -0.71
# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.
altitude = 5, meter
# 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 = Vantage
# If you have a website, you may specify an URL
#station_url = http://www.example.com
# 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 = 6
##############################################################################
[Vantage]
# This section is for the Davis Vantage series of weather stations.
# Connection type: serial or ethernet
# serial (the classic VantagePro)
# ethernet (the WeatherLinkIP or Serial-Ethernet bridge)
type = serial
# If the connection type is serial, a port must be specified:
# Debian, Ubuntu, Redhat, Fedora, 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/ttyUSB0
# If the connection type is ethernet, an IP Address/hostname is required:
host = 1.2.3.4
######################################################
# The rest of this section rarely needs any attention.
# You can safely leave it "as is."
######################################################
# 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 = 0.5
# The id of your ISS station (usually 1). If you use a wind meter connected
# to a anemometer transmitter kit, use its id
iss_id = 1
# How long to wait for a response from the station before giving up (in
# seconds; must be greater than 2)
timeout = 4
# How long to wait before trying again (in seconds)
wait_before_retry = 1.2
# How many times to try before giving up:
max_tries = 4
# Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2
model_type = 2
# The driver to use:
driver = weewx.drivers.vantage
##############################################################################
[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. Format is YYYY-mm-ddTHH:MM. If not specified, the default
# is to use the present time.
#start = 2011-01-01T00:00
# The driver to use:
driver = weewx.drivers.simulator
##############################################################################
# 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 = false
[[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.
# To guard against parsing errors, put the password in quotes.
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.
# To guard against parsing errors, put the password in quotes.
enable = false
station = replace_me
password = replace_me
[[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.
# To guard against parsing errors, put the password in quotes.
enable = false
station = replace_me
password = replace_me
[[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.
# To guard against parsing errors, put the password in quotes.
enable = false
station = replace_me
password = replace_me
# 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
# Whether to log a successful operation
log_success = True
# Whether to log an unsuccessful operation
log_failure = False
# Each of the following subsections defines a report that will be run.
# 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.
[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
enable = true
[[SmartphoneReport]]
# The SmartphoneReport uses the 'Smartphone' skin, and the images and
# files are placed in a dedicated subdirectory.
skin = Smartphone
enable = false
HTML_ROOT = /var/www/html/weewx/smartphone
[[MobileReport]]
# The MobileReport uses the 'Mobile' skin, and the images and files
# are placed in a dedicated subdirectory.
skin = Mobile
enable = false
HTML_ROOT = /var/www/html/weewx/mobile
[[StandardReport]]
# This is the old "Standard" skin. By default, it is not enabled.
skin = Standard
enable = false
[[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, set "enable" to "true", then
# fill out the next four lines.
# Use quotes around passwords to guard against parsing errors.
enable = false
user = replace_me
password = replace_me
server = replace_me # The ftp server name, e.g, www.myserver.org
path = replace_me # The destination directory, e.g., /weather
# Set to True for an FTP over TLS (FTPS) 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 to the user account on the remote machine where the files
# will be copied.
#
# If you wish to use rsync, set "enable" to "true", then
# fill out server, user, and path.
# The server should appear in your .ssh/config file.
# The user is the username used in the identity file.
# The path is the destination directory, such as /var/www/html/weather.
# Be sure that the user has write permissions on the destination!
enable = false
server = replace_me
user = replace_me
path = replace_me
# 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
# 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
####
# Various options for customizing your reports.
[[Defaults]]
[[[Units]]]
# The following section sets what unit to use for each unit group.
# NB: The unit is always in the singular. I.e., 'mile_per_hour',
# NOT 'miles_per_hour'
[[[[Groups]]]]
group_altitude = meter # Options are 'foot' or 'meter'
group_degree_day = degree_C_day # Options are 'degree_F_day' or 'degree_C_day'
group_pressure = mbar # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
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 = meter_per_second # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
group_speed2 = meter_per_second2 # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
group_temperature = degree_C # Options are 'degree_F' or 'degree_C'
# The following section sets the formatting for each type of unit.
[[[[StringFormats]]]]
centibar = %.0f
cm = %.2f
cm_per_hour = %.2f
degree_C = %.1f
degree_F = %.1f
degree_compass = %.0f
foot = %.0f
hPa = %.1f
hour = %.1f
inHg = %.3f
inch = %.2f
inch_per_hour = %.2f
km_per_hour = %.0f
km_per_hour2 = %.1f
knot = %.0f
knot2 = %.1f
mbar = %.1f
meter = %.0f
meter_per_second = %.1f
meter_per_second2 = %.1f
mile_per_hour = %.0f
mile_per_hour2 = %.1f
mm = %.1f
mmHg = %.1f
mm_per_hour = %.1f
percent = %.0f
second = %.0f
uv_index = %.1f
volt = %.1f
watt_per_meter_squared = %.0f
NONE = " N/A"
# The following section sets the label for each type of unit
[[[[Labels]]]]
day = " day", " days"
hour = " hour", " hours"
minute = " minute", " minutes"
second = " second", " seconds"
NONE = ""
# The following section sets the format for each time scale.
# The values below will work in every locale, but they may not look
# particularly attractive.
[[[[TimeFormats]]]]
hour = %H:%M
day = %X
week = %X (%A)
month = %x %X
year = %x %X
rainyear = %x %X
current = %x %X
ephem_day = %X
ephem_year = %x %X
[[[[Ordinates]]]]
# Ordinal directions. The last one is for no wind direction
directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW, N/A
# The following section sets the base temperatures used for the
# calculation of heating and cooling degree-days.
-
# Base temperature for heating days, with unit:
heating_base = 65, degree_F
# Base temperature for cooling days, with unit:
cooling_base = 65, degree_F
# A trend takes a difference across a time period. The following
# section sets the time period, and how big an error is allowed to
# still be counted as the start or end of a period.
[[[[[Trend]]]]]
time_delta = 10800 # 3 hours
time_grace = 300 # 5 minutes
# The labels to be used for each observation type
[[[Labels]]]
# 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 labels, keyed by an observation type.
[[[[Generic]]]]
barometer = Barometer
dewpoint = Dew Point
ET = ET
heatindex = Heat Index
inHumidity = Inside Humidity
inTemp = Inside Temperature
outHumidity = Humidity
outTemp = Outside Temperature
radiation = Radiation
rain = Rain
rainRate = Rain Rate
UV = UV Index
windDir = Wind Direction
windGust = Gust Speed
windGustDir = Gust Direction
windSpeed = Wind Speed
windchill = Wind Chill
windgustvec = Gust Vector
windvec = Wind Vector
extraTemp1 = Temperature1
extraTemp2 = Temperature2
extraTemp3 = Temperature3
# Sensor status indicators
rxCheckPercent = Signal Quality
txBatteryStatus = Transmitter Battery
windBatteryStatus = Wind Battery
rainBatteryStatus = Rain Battery
outTempBatteryStatus = Outside Temperature Battery
inTempBatteryStatus = Inside Temperature Battery
consBatteryVoltage = Console Battery
heatingVoltage = Heating Battery
supplyVoltage = Supply Voltage
referenceVoltage = Reference Voltage
[[[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
##############################################################################
# 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
pressure = 24, 34.5, inHg
outTemp = -40, 120, degree_F
inTemp = 10, 120, degree_F
outHumidity = 0, 100
inHumidity = 0, 100
windSpeed = 0, 120, mile_per_hour
rain = 0, 10, inch
##############################################################################
# This section controls the origin of derived values.
[StdWXCalculate]
[[Calculations]]
# How to calculate derived quantities. 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
# 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 = hardware
# 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_name = weewx.sdb
database_type = SQLite
# MySQL
[[archive_mysql]]
database_name = weewx
database_type = MySQL
##############################################################################
# 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 (quotes guard against parsing errors)
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
-
Veamos, alguna cosa hay que cambiar...
En week_start = 6 pon 0 en vez de 6 si quieres que la semana empieza por lunes y no domingo.
En la sección [[[[Groups]]]] pon en las unidades de viento km_per_hour en vez de meter_per_second o si no se generará todo en m/s.
En la sección [StdConvert] tienes target_unit = US y eso significa que estará grabando los valores en formato imperial en la base de datos por lo que por ejemplo los grados los grabará en Farenheit en vez de Celsius.
No me di cuenta de advertírtelo cuando empezaste y no influye en cómo weewx da la salida de los valores, pero sí es un inconveniente para los que nos movemos sólo con el formato métrico el arreglar valores en una base de datos con ese otro formato.
La solución por desgracia sería borrar base de datos y empezar con target_unit = METRIC
Sería volver a empezar de 0 con los datos. Ahora que llevas pocos sería lo menos traumático.
En cuanto a lo de la web de weewx… parece ser que en las últimas versiones de weewx ya no es Standard el skin que viene activado por defecto y es el Seasons. Sería en su skin.conf (/etc/weewx/skins/Seasons/skin.conf) donde habría que configurar la plantilla de meteoclimatic y mover la plantilla meteoclimatic.htm.tmpl del skin Standard al Seasons.
Los archivos weewx de Windows deberían de estar actualizándose en /var/www/HTML/weewx/
Sale desactualizado el archivo index.html ??
-
Por cierto.... cuando se cambia algo en el weewx.conf hay que reiniciar weewx con sudo service weewx restart para que los cambios surtan efecto.
-
Perdón por la intromisión en este hilo pero justamente eso me está pasando a mi ahora.
Ahora, desde que borré el dataloger graba los registros nuevos y se actualiza la base de datos.
Genera archivos pero no los copia a /var/www/html/weewx.
Yo desactivé en skin seasons y activé el standard, que es donde tengo todo.
La web lo muestra correctamente pero sigue a fecha de 1/12/2019 21:15
:;
-
A ver, cuando ocurren estas cosas primeramente hay que mirar si se está generando el archivo index.html del skin en su carpeta correspondiente con ls -l
Si está actualizada la fecha del fichero es que weewx lo está generando pero si no están actualizados los datos en su interior hay que ver el log de weewx o el del sistema para ver si da alguna pista.
Se puede poner en el weewx.conf el debug en nivel 1 y dará más información.
En la web de weewx salen unas pautas a seguir:
http://www.weewx.com/docs/usersguide.htm#html_generated_but_not_updated
Como se ve tiene que ver con algún registro de tiempo mal en cuanto a hora o de la Raspi misma.
Repito que ver el log nos dará más pistas de si hay un error y poder buscar sobre él por google.
-
En mi caso, despues de borrar la memoria del dataloger, como se explica lo siguiente: ??
1.- Graba los registros a la base de datos
dic 03 21:20:15 raspberrypi weewx[322]: manager: Added record 2019-12-03 21:20:00 UTC (1575408000) to database 'weewx.sdb'
dic 03 21:20:15 raspberrypi weewx[322]: manager: Added record 2019-12-03 21:20:00 UTC (1575408000) to daily summary in 'weewx.sdb'
dic 03 21:25:15 raspberrypi weewx[322]: manager: Added record 2019-12-03 21:25:00 UTC (1575408300) to database 'weewx.sdb'
dic 03 21:25:15 raspberrypi weewx[322]: manager: Added record 2019-12-03 21:25:00 UTC (1575408300) to daily summary in 'weewx.sdb'
2.- No actualiza nada de la carpeta /var/www/html/weewx
-rw-r--r-- 1 root root 14039 dic 2 21:33 index.html
3-. La base de datos se graba correctamente
-rw-r--r-- 1 root root 897024 dic 3 21:25 weewx.sdb
PD:
Me acabo de dar cuenta ahora mismo que los datos que envia a Awekas y Wunderground, se actualizan correctamente y la estación está online.
Solo falla la generación de la web.
-
Puedes poner la sección [StdReport] hasta la sección FTP (no la incluyas) ?
Pon también el resultado de ejecutar pip list
-
[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
# The database binding indicates which data should be used in reports.
data_binding = wx_binding
# Whether to log a successful operation
log_success = True
# Whether to log an unsuccessful operation
log_failure = False
# Each of the following subsections defines a report that will be run.
# 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.
[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
enable = false
[[SmartphoneReport]]
# The SmartphoneReport uses the 'Smartphone' skin, and the images and
# files are placed in a dedicated subdirectory.
skin = Smartphone
enable = false
HTML_ROOT = /var/www/html/smartphone
[[MobileReport]]
# The MobileReport uses the 'Mobile' skin, and the images and files
# are placed in a dedicated subdirectory.
skin = Mobile
enable = false
HTML_ROOT = /var/www/html/mobile
[[StandardReport]]
# This is the old "Standard" skin. By default, it is not enabled.
skin = Standard
enable = true
pi@raspberrypi:/etc/weewx $ pip list
Package Version
------------- -------
asn1crypto 0.24.0
Cheetah3 3.1.0
configobj 5.0.6
configparser 3.5.0b2
cryptography 2.6.1
entrypoints 0.3
enum34 1.1.6
ipaddress 1.0.17
keyring 17.1.1
keyrings.alt 3.1.1
olefile 0.46
Pillow 5.4.1
pip 18.1
pycrypto 2.6.1
PyGObject 3.30.4
pyserial 3.4
pyusb 1.0.2
pyxdg 0.25
RPi.GPIO 0.7.0
SecretStorage 2.3.1
setuptools 40.8.0
six 1.12.0
wheel 0.32.3
-
HTML_ROOT = /var/www/html
cámbialo a:
HTML_ROOT = /var/www/html/weewx
y reinicia weewx
-
Bueno, bueno, bueno......
si te digo donde estaba el fallo...... :; :;
Resulta que revisando archivo por archivo, porque ya no sabia que mas hacer, me doy cuenta que en la carpeta /etc/weewx/skins/Standard falta el archivo skin.conf
No me digas como ya que fue una instalación limpia de weewx pero por algún motivo extrañísimo faltaba.
Lo copie de la otra pi, lo puse en esa carpeta y al reiniciar weewx empezó a generar todo correctamente.
En cualquier caso, ojalá toquetear la base de datos de weewx fuera mas fácil porque la copia que tengo no funciona. Osea que algo mal grabado hay en ella.
Ahora estoy con la nueva y de momento he perdido los datos desde Agosto hasta el 23 de Noviembre.
-
Resulta que revisando archivo por archivo, porque ya no sabia que mas hacer, me doy cuenta que en la carpeta /etc/weewx/skins/Standard falta el archivo skin.conf
No me digas como ya que fue una instalación limpia de weewx pero por algún motivo extrañísimo faltaba.
Lo copie de la otra pi, lo puse en esa carpeta y al reiniciar weewx empezó a generar todo correctamente.
Raro que no haya skin.conf .... solo se me ocurre que venga por defecto con el skin Seasons que viene activado por defecto y en los demás... bueno... debería también de estar o no se genera nada en ellos.
Lo de la base de datos seguramente hay algo mal en la tabla archive.
Haz copia de seguridad de la antigua y prueba con ella con wee_database
Con sudo wee_database --check se puede comprobar
http://www.weewx.com/docs/utilities.htm#wee_database_utility
-
Perfecto, funcionando con la base de datos original.
La perdida de datos ya solo es de 22 días de noviembre y tengo esos registros en meteoclimatic con lo cual a ver si me animo a hacer pruebas con sqlite3 e ir añadiendolos.
Ojalá hubiera elegido en la instalación inicial, unidades en Metric, :-\
Tema solucionado. !!!
Mil gracias por tu paciencia y ayuda.
plau2
-
Perfecto :)
Saludos
-
Perdón por tardar en responder, pero he estado liado y no he tenido tiempo de estar con la Raspi. La he vuelto a arrancar y ahora ha cambiado lo que me aparece en service weewx status, ahora me pone en rojo en las dos últimas líneas "vantage: LOOP try #1; error: Expected to read 99 chars, got 0 instead" y "vantage: LOOP try #1; error: Expected to read 99 chars, got 0 instead". ¿Sabes a que puede deberse esto?
-
Y otra cosa, no me deja guardar el archivo weewx.config porque me dice que no tengo permisos
-
Pues he desenchufado varias veces el USB haciendo service weewx restart y a la cuarta ya me ha reconocido la estación, pero copygenerator sigue sin generar archivos
-
He visto los loops y actualiza los datos cada 2 segundos correctamente, así que no se qué es lo que falla
-
O está el skin mal configurado o algo pasa. Pon el resultado de ejecutar en el terminal ls -l /var/lib/weewx/weewx.sdb
Primero hay que cerciorarse de que está la base de datos actualizándose.
-
-rw-r--r-- 1 root root 892928 nov 30 13:45 /var/lib/weewx/weewx.sdb
-
Te dejo también weewx service status por si te es de utilidad:
● weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated)
Active: active (running) since Mon 2019-12-09 08:09:20 CET; 9h ago
Docs: man:systemd-sysv-generator(8)
Process: 363 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
Tasks: 1 (limit: 2200)
Memory: 35.9M
CGroup: /system.slice/weewx.service
└─510 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
dic 09 17:00:18 raspberrypi weewx[510]: cheetahgenerator: Generated 8 files for report SeasonsReport in 3.03 seconds
dic 09 17:00:26 raspberrypi weewx[510]: imagegenerator: Generated 28 images for SeasonsReport in 7.91 seconds
dic 09 17:00:26 raspberrypi weewx[510]: copygenerator: copied 0 files to /var/www/html/weewx
dic 09 17:15:18 raspberrypi weewx[510]: cheetahgenerator: Generated 8 files for report SeasonsReport in 2.95 seconds
dic 09 17:15:25 raspberrypi weewx[510]: imagegenerator: Generated 28 images for SeasonsReport in 6.72 seconds
dic 09 17:15:25 raspberrypi weewx[510]: copygenerator: copied 0 files to /var/www/html/weewx
dic 09 17:30:20 raspberrypi weewx[510]: engine: Garbage collected 5374 objects
dic 09 17:30:23 raspberrypi weewx[510]: cheetahgenerator: Generated 8 files for report SeasonsReport in 2.83 seconds
dic 09 17:30:32 raspberrypi weewx[510]: imagegenerator: Generated 28 images for SeasonsReport in 8.83 seconds
dic 09 17:30:32 raspberrypi weewx[510]: copygenerator: copied 0 files to /var/www/html/weewx
~
-
Buenas,
pues la base de datos no se te está actualizando desde el 30 noviembre.
Con respecto al estado de weewx, a mi me pasaba exactamente lo mismo y mi problema es que no se generó el archivo skin.conf en la carpeta /etc/weewx/skins/Standard ( yo utilizo el skin Standard).
Lo copié de otra instalación y fue reiniciar y problema resuelto.
En cualquier caso jmviper es el experto y te ayudará a resolverlo.
-
Yo si tengo skin.conf, pero no entiendo lo de la base de datos... Adenás coincide la última actualización con cuando puse el mensaje de que no sabía localizar el archivo .index. Es raro porque weewx sí que me lee los datos perfectos de la consola, así que no sé que puede pasar.
-
Como dice Ruben la base de datos está sin ser tocada (por weewx) desde el 30 de noviembre.... hace ya bastantes días.
Lo mejor sería ver el log para ver qué ocurre cuando arranca weewx.
Sigue estos pasos de la wiki para crear un log dedicado a weewx que creará su log en /var/log/weewx.log
http://wiki.meteoclimatic.net/wiki/FAQ_WeeWX#El_log_de_Weewx_se_mezcla_con_el_del_sistema_operativo._.C2.BFPuedo_tener_un_log_individual_para_Weewx.3F
Una vez que lo esté creando y tras reiniciar weewx cópialo y pégalo en un adjunto a ver si podemos ver qué falla.
-
Dec 9 20:27:37 raspberrypi weewx[434]: engine: Initializing weewx version 3.9.2
Dec 9 20:27:37 raspberrypi weewx[434]: engine: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Dec 9 20:27:37 raspberrypi weewx[434]: engine: Platform Linux-4.19.75-v7+-armv7l-with-debian-10.2
Dec 9 20:27:37 raspberrypi weewx[434]: engine: Locale is 'es_ES.UTF-8'
Dec 9 20:27:37 raspberrypi weewx[434]: engine: pid file is /var/run/weewx.pid
Dec 9 20:27:37 raspberrypi weewx[345]: Starting weewx weather system: weewx.
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Using configuration file /etc/weewx/weewx.conf
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Loading station type Vantage (weewx.drivers.vantage)
Dec 9 20:27:37 raspberrypi weewx[533]: engine: StdConvert target unit is 0x1
Dec 9 20:27:37 raspberrypi weewx[533]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Dec 9 20:27:37 raspberrypi weewx[533]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Archive will use data binding wx_binding
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Record generation will be attempted in 'hardware'
Dec 9 20:27:37 raspberrypi weewx[533]: engine: The archive interval in the configuration file (300) does not match the station hardware interval (900).
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Using archive interval of 900 seconds (specified by hardware)
Dec 9 20:27:38 raspberrypi weewx[533]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Dec 9 20:27:38 raspberrypi weewx[533]: manager: Starting backfill of daily summaries
Dec 9 20:27:38 raspberrypi weewx[533]: restx: StationRegistry: Registration not requested.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: Wunderground: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: PWSweather: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: CWOP: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: WOW: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: AWEKAS: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: engine: Starting up weewx version 3.9.2
Dec 9 20:27:38 raspberrypi weewx[533]: engine: Clock error is 27.51 seconds (positive is fast)
Dec 9 20:27:38 raspberrypi weewx[533]: vantage: Clock set to 2019-12-09 20:27:39 CET (1575919659)
Dec 9 20:27:40 raspberrypi weewx[533]: engine: Starting main packet loop.
Dec 9 20:27:44 raspberrypi weewx[533]: vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead
-
Pon las siguientes líneas a esas.
-
Dec 9 20:27:37 raspberrypi weewx[434]: engine: Initializing weewx version 3.9.2
Dec 9 20:27:37 raspberrypi weewx[434]: engine: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Dec 9 20:27:37 raspberrypi weewx[434]: engine: Platform Linux-4.19.75-v7+-armv7l-with-debian-10.2
Dec 9 20:27:37 raspberrypi weewx[434]: engine: Locale is 'es_ES.UTF-8'
Dec 9 20:27:37 raspberrypi weewx[434]: engine: pid file is /var/run/weewx.pid
Dec 9 20:27:37 raspberrypi weewx[345]: Starting weewx weather system: weewx.
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Using configuration file /etc/weewx/weewx.conf
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Loading station type Vantage (weewx.drivers.vantage)
Dec 9 20:27:37 raspberrypi weewx[533]: engine: StdConvert target unit is 0x1
Dec 9 20:27:37 raspberrypi weewx[533]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Dec 9 20:27:37 raspberrypi weewx[533]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Archive will use data binding wx_binding
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Record generation will be attempted in 'hardware'
Dec 9 20:27:37 raspberrypi weewx[533]: engine: The archive interval in the configuration file (300) does not match the station hardware interval (900).
Dec 9 20:27:37 raspberrypi weewx[533]: engine: Using archive interval of 900 seconds (specified by hardware)
Dec 9 20:27:38 raspberrypi weewx[533]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Dec 9 20:27:38 raspberrypi weewx[533]: manager: Starting backfill of daily summaries
Dec 9 20:27:38 raspberrypi weewx[533]: restx: StationRegistry: Registration not requested.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: Wunderground: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: PWSweather: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: CWOP: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: WOW: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: restx: AWEKAS: Posting not enabled.
Dec 9 20:27:38 raspberrypi weewx[533]: engine: Starting up weewx version 3.9.2
Dec 9 20:27:38 raspberrypi weewx[533]: engine: Clock error is 27.51 seconds (positive is fast)
Dec 9 20:27:38 raspberrypi weewx[533]: vantage: Clock set to 2019-12-09 20:27:39 CET (1575919659)
Dec 9 20:27:40 raspberrypi weewx[533]: engine: Starting main packet loop.
Dec 9 20:27:44 raspberrypi weewx[533]: vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead
Dec 9 20:30:32 raspberrypi weewx[533]: cheetahgenerator: Generated 8 files for report SeasonsReport in 14.59 seconds
Dec 9 20:30:45 raspberrypi weewx[533]: imagegenerator: Generated 28 images for SeasonsReport in 11.45 seconds
Dec 9 20:30:47 raspberrypi weewx[533]: copygenerator: copied 5 files to /var/www/html/weewx
Dec 9 20:45:20 raspberrypi weewx[533]: cheetahgenerator: Generated 8 files for report SeasonsReport in 3.30 seconds
Dec 9 20:45:26 raspberrypi weewx[533]: imagegenerator: Generated 28 images for SeasonsReport in 6.21 seconds
Dec 9 20:45:26 raspberrypi weewx[533]: copygenerator: copied 0 files to /var/www/html/weewx
Dec 9 21:00:20 raspberrypi weewx[533]: cheetahgenerator: Generated 8 files for report SeasonsReport in 2.87 seconds
Dec 9 21:00:26 raspberrypi weewx[533]: imagegenerator: Generated 28 images for SeasonsReport in 6.05 seconds
Dec 9 21:00:26 raspberrypi weewx[533]: copygenerator: copied 0 files to /var/www/html/weewx
Dec 9 21:15:25 raspberrypi weewx[533]: cheetahgenerator: Generated 8 files for report SeasonsReport in 2.85 seconds
Dec 9 21:15:32 raspberrypi weewx[533]: imagegenerator: Generated 28 images for SeasonsReport in 6.97 seconds
Dec 9 21:15:32 raspberrypi weewx[533]: copygenerator: copied 0 files to /var/www/html/weewx
Dec 9 21:30:20 raspberrypi weewx[533]: cheetahgenerator: Generated 8 files for report SeasonsReport in 3.28 seconds
Dec 9 21:30:31 raspberrypi weewx[533]: imagegenerator: Generated 28 images for SeasonsReport in 10.80 seconds
Dec 9 21:30:31 raspberrypi weewx[533]: copygenerator: copied 0 files to /var/www/html/weewx
Dec 9 21:45:20 raspberrypi weewx[533]: cheetahgenerator: Generated 8 files for report SeasonsReport in 3.05 seconds
Dec 9 21:45:27 raspberrypi weewx[533]: imagegenerator: Generated 28 images for SeasonsReport in 6.98 seconds
Dec 9 21:45:27 raspberrypi weewx[533]: copygenerator: copied 0 files to /var/www/html/weewx
ESto es todo lo que tengo
-
Veamos...
Un problema menor es que weewx tiene el intervalo de datos en 300 segundos (cada 5 minutos) y la Davis tiene guardados datos en su datalogger cada 900 segundos (15 minutos). Después vemos un ajuste del reloj de 27 segundos y un LOOP con error.
Lo que no se ve es que esté grabando algo en la base de datos... y sí que genera imágenes etc etc pero sin actualizar nada ya que no coge nada nuevo de la base de datos.
Probamos a mover la base de datos a otro sitio y a empezar con una nueva a ver si lee datalogger.
Si quieres, como lo tienes, que la Davis tenga los datos cada cuarto de hora en su datalogger cambiamos de archive_interval = 300 a archive_interval = 900 en weewx.conf
A continuación paras weewx con sudo service weewx stop y mueves la base de datos a otro sitio con sudo mv /var/lib/weewx/weewx.sdb /home/pi
Una vez hecho esto inicia weewx con sudo service weewx start y a esperar al primer cuarto de hora a ver si actualiza los datos.
El problema viene con toda probabilidad en que no usas la raspi con weewx y la Davis continuamente y si apagas la raspi viene con una hora errónea y weewx se hace un lío al intentar descargar los datos del datalogger.
Lo mejor es tener todo en marcha siempre y no estar apagando y encendiendo raspberry.
-
Vale gracias, hay avances parece. SIn embargo aun no se actualiza index.html. TE dejo el log y service weewx status:
weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated)
Active: active (running) since Tue 2019-12-10 00:13:47 CET; 13min ago
Docs: man:systemd-sysv-generator(8)
Process: 3196 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
Tasks: 1 (limit: 2200)
Memory: 8.9M
CGroup: /system.slice/weewx.service
└─3211 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
dic 10 00:26:54 raspberrypi weewx[3211]: manager: Added record 2019-11-14 20:30:00 CET (1573759800) to daily summary in 'weewx.sdb'
dic 10 00:27:01 raspberrypi weewx[3211]: manager: Added record 2019-11-14 20:45:00 CET (1573760700) to database 'weewx.sdb'
dic 10 00:27:01 raspberrypi weewx[3211]: manager: Added record 2019-11-14 20:45:00 CET (1573760700) to daily summary in 'weewx.sdb'
dic 10 00:27:05 raspberrypi weewx[3211]: manager: Added record 2019-11-14 21:00:00 CET (1573761600) to database 'weewx.sdb'
dic 10 00:27:05 raspberrypi weewx[3211]: manager: Added record 2019-11-14 21:00:00 CET (1573761600) to daily summary in 'weewx.sdb'
dic 10 00:27:08 raspberrypi weewx[3211]: manager: Added record 2019-11-14 21:15:00 CET (1573762500) to database 'weewx.sdb'
dic 10 00:27:08 raspberrypi weewx[3211]: manager: Added record 2019-11-14 21:15:00 CET (1573762500) to daily summary in 'weewx.sdb'
dic 10 00:27:16 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
dic 10 00:27:18 raspberrypi weewx[3211]: manager: Added record 2019-11-14 21:30:00 CET (1573763400) to database 'weewx.sdb'
dic 10 00:27:18 raspberrypi weewx[3211]: manager: Added record 2019-11-14 21:30:00 CET (1573763400) to daily summary in 'weewx.sdb'
~
Dec 10 00:27:52 raspberrypi weewx[3211]: manager: Added record 2019-11-14 23:00:00 CET (1573768800) to database 'weewx.sdb'
Dec 10 00:27:52 raspberrypi weewx[3211]: manager: Added record 2019-11-14 23:00:00 CET (1573768800) to daily summary in 'weewx.sdb'
Dec 10 00:27:56 raspberrypi weewx[3211]: manager: Added record 2019-11-14 23:15:00 CET (1573769700) to database 'weewx.sdb'
Dec 10 00:27:56 raspberrypi weewx[3211]: manager: Added record 2019-11-14 23:15:00 CET (1573769700) to daily summary in 'weewx.sdb'
Dec 10 00:27:59 raspberrypi weewx[3211]: manager: Added record 2019-11-14 23:30:00 CET (1573770600) to database 'weewx.sdb'
Dec 10 00:27:59 raspberrypi weewx[3211]: manager: Added record 2019-11-14 23:30:00 CET (1573770600) to daily summary in 'weewx.sdb'
Dec 10 00:28:06 raspberrypi weewx[3211]: manager: Added record 2019-11-14 23:45:00 CET (1573771500) to database 'weewx.sdb'
Dec 10 00:28:06 raspberrypi weewx[3211]: manager: Added record 2019-11-14 23:45:00 CET (1573771500) to daily summary in 'weewx.sdb'
Dec 10 00:28:16 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:28:20 raspberrypi weewx[3211]: manager: Added record 2019-11-15 00:00:00 CET (1573772400) to database 'weewx.sdb'
Dec 10 00:28:20 raspberrypi weewx[3211]: manager: Added record 2019-11-15 00:00:00 CET (1573772400) to daily summary in 'weewx.sdb'
Dec 10 00:28:22 raspberrypi weewx[3211]: manager: Added record 2019-11-15 00:15:00 CET (1573773300) to database 'weewx.sdb'
Dec 10 00:28:22 raspberrypi weewx[3211]: manager: Added record 2019-11-15 00:15:00 CET (1573773300) to daily summary in 'weewx.sdb'
Dec 10 00:28:31 raspberrypi weewx[3211]: manager: Added record 2019-11-15 00:30:00 CET (1573774200) to database 'weewx.sdb'
Dec 10 00:28:31 raspberrypi weewx[3211]: manager: Added record 2019-11-15 00:30:00 CET (1573774200) to daily summary in 'weewx.sdb'
Dec 10 00:28:34 raspberrypi weewx[3211]: manager: Added record 2019-11-15 00:45:00 CET (1573775100) to database 'weewx.sdb'
Dec 10 00:28:34 raspberrypi weewx[3211]: manager: Added record 2019-11-15 00:45:00 CET (1573775100) to daily summary in 'weewx.sdb'
Dec 10 00:28:40 raspberrypi weewx[3211]: manager: Added record 2019-11-15 01:00:00 CET (1573776000) to database 'weewx.sdb'
Dec 10 00:28:40 raspberrypi weewx[3211]: manager: Added record 2019-11-15 01:00:00 CET (1573776000) to daily summary in 'weewx.sdb'
Dec 10 00:28:49 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:28:51 raspberrypi weewx[3211]: manager: Added record 2019-11-15 01:15:00 CET (1573776900) to database 'weewx.sdb'
Dec 10 00:28:51 raspberrypi weewx[3211]: manager: Added record 2019-11-15 01:15:00 CET (1573776900) to daily summary in 'weewx.sdb'
Dec 10 00:28:56 raspberrypi weewx[3211]: manager: Added record 2019-11-15 01:30:00 CET (1573777800) to database 'weewx.sdb'
Dec 10 00:28:57 raspberrypi weewx[3211]: manager: Added record 2019-11-15 01:30:00 CET (1573777800) to daily summary in 'weewx.sdb'
Dec 10 00:29:00 raspberrypi weewx[3211]: manager: Added record 2019-11-15 01:45:00 CET (1573778700) to database 'weewx.sdb'
Dec 10 00:29:00 raspberrypi weewx[3211]: manager: Added record 2019-11-15 01:45:00 CET (1573778700) to daily summary in 'weewx.sdb'
Dec 10 00:29:05 raspberrypi weewx[3211]: manager: Added record 2019-11-15 02:00:00 CET (1573779600) to database 'weewx.sdb'
Dec 10 00:29:05 raspberrypi weewx[3211]: manager: Added record 2019-11-15 02:00:00 CET (1573779600) to daily summary in 'weewx.sdb'
Dec 10 00:29:09 raspberrypi weewx[3211]: manager: Added record 2019-11-15 02:15:00 CET (1573780500) to database 'weewx.sdb'
Dec 10 00:29:09 raspberrypi weewx[3211]: manager: Added record 2019-11-15 02:15:00 CET (1573780500) to daily summary in 'weewx.sdb'
Dec 10 00:29:21 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:29:23 raspberrypi weewx[3211]: manager: Added record 2019-11-15 02:30:00 CET (1573781400) to database 'weewx.sdb'
Dec 10 00:29:23 raspberrypi weewx[3211]: manager: Added record 2019-11-15 02:30:00 CET (1573781400) to daily summary in 'weewx.sdb'
Dec 10 00:29:26 raspberrypi weewx[3211]: manager: Added record 2019-11-15 02:45:00 CET (1573782300) to database 'weewx.sdb'
Dec 10 00:29:26 raspberrypi weewx[3211]: manager: Added record 2019-11-15 02:45:00 CET (1573782300) to daily summary in 'weewx.sdb'
Dec 10 00:29:33 raspberrypi weewx[3211]: manager: Added record 2019-11-15 03:00:00 CET (1573783200) to database 'weewx.sdb'
Dec 10 00:29:33 raspberrypi weewx[3211]: manager: Added record 2019-11-15 03:00:00 CET (1573783200) to daily summary in 'weewx.sdb'
Dec 10 00:29:45 raspberrypi weewx[3211]: manager: Added record 2019-11-15 03:15:00 CET (1573784100) to database 'weewx.sdb'
Dec 10 00:29:45 raspberrypi weewx[3211]: manager: Added record 2019-11-15 03:15:00 CET (1573784100) to daily summary in 'weewx.sdb'
Dec 10 00:29:50 raspberrypi weewx[3211]: manager: Added record 2019-11-15 03:30:00 CET (1573785000) to database 'weewx.sdb'
Dec 10 00:29:50 raspberrypi weewx[3211]: manager: Added record 2019-11-15 03:30:00 CET (1573785000) to daily summary in 'weewx.sdb'
Dec 10 00:30:04 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:30:06 raspberrypi weewx[3211]: manager: Added record 2019-11-15 03:45:00 CET (1573785900) to database 'weewx.sdb'
Dec 10 00:30:06 raspberrypi weewx[3211]: manager: Added record 2019-11-15 03:45:00 CET (1573785900) to daily summary in 'weewx.sdb'
Dec 10 00:30:09 raspberrypi weewx[3211]: manager: Added record 2019-11-15 04:00:00 CET (1573786800) to database 'weewx.sdb'
Dec 10 00:30:09 raspberrypi weewx[3211]: manager: Added record 2019-11-15 04:00:00 CET (1573786800) to daily summary in 'weewx.sdb'
Dec 10 00:30:11 raspberrypi weewx[3211]: manager: Added record 2019-11-15 04:15:00 CET (1573787700) to database 'weewx.sdb'
Dec 10 00:30:11 raspberrypi weewx[3211]: manager: Added record 2019-11-15 04:15:00 CET (1573787700) to daily summary in 'weewx.sdb'
Dec 10 00:30:13 raspberrypi weewx[3211]: manager: Added record 2019-11-15 04:30:00 CET (1573788600) to database 'weewx.sdb'
Dec 10 00:30:13 raspberrypi weewx[3211]: manager: Added record 2019-11-15 04:30:00 CET (1573788600) to daily summary in 'weewx.sdb'
Dec 10 00:30:15 raspberrypi weewx[3211]: manager: Added record 2019-11-15 04:45:00 CET (1573789500) to database 'weewx.sdb'
Dec 10 00:30:15 raspberrypi weewx[3211]: manager: Added record 2019-11-15 04:45:00 CET (1573789500) to daily summary in 'weewx.sdb'
Dec 10 00:30:21 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:30:23 raspberrypi weewx[3211]: manager: Added record 2019-11-15 05:00:00 CET (1573790400) to database 'weewx.sdb'
Dec 10 00:30:23 raspberrypi weewx[3211]: manager: Added record 2019-11-15 05:00:00 CET (1573790400) to daily summary in 'weewx.sdb'
Dec 10 00:30:26 raspberrypi weewx[3211]: manager: Added record 2019-11-15 05:15:00 CET (1573791300) to database 'weewx.sdb'
Dec 10 00:30:26 raspberrypi weewx[3211]: manager: Added record 2019-11-15 05:15:00 CET (1573791300) to daily summary in 'weewx.sdb'
Dec 10 00:30:29 raspberrypi weewx[3211]: manager: Added record 2019-11-15 05:30:00 CET (1573792200) to database 'weewx.sdb'
Dec 10 00:30:30 raspberrypi weewx[3211]: manager: Added record 2019-11-15 05:30:00 CET (1573792200) to daily summary in 'weewx.sdb'
Dec 10 00:30:31 raspberrypi weewx[3211]: manager: Added record 2019-11-15 05:45:00 CET (1573793100) to database 'weewx.sdb'
Dec 10 00:30:31 raspberrypi weewx[3211]: manager: Added record 2019-11-15 05:45:00 CET (1573793100) to daily summary in 'weewx.sdb'
Dec 10 00:30:33 raspberrypi weewx[3211]: manager: Added record 2019-11-15 06:00:00 CET (1573794000) to database 'weewx.sdb'
Dec 10 00:30:33 raspberrypi weewx[3211]: manager: Added record 2019-11-15 06:00:00 CET (1573794000) to daily summary in 'weewx.sdb'
Dec 10 00:30:39 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:30:42 raspberrypi weewx[3211]: manager: Added record 2019-11-15 06:15:00 CET (1573794900) to database 'weewx.sdb'
Dec 10 00:30:42 raspberrypi weewx[3211]: manager: Added record 2019-11-15 06:15:00 CET (1573794900) to daily summary in 'weewx.sdb'
Dec 10 00:30:42 raspberrypi weewx[3211]: manager: Added record 2019-11-15 06:30:00 CET (1573795800) to database 'weewx.sdb'
Dec 10 00:30:42 raspberrypi weewx[3211]: manager: Added record 2019-11-15 06:30:00 CET (1573795800) to daily summary in 'weewx.sdb'
Dec 10 00:30:44 raspberrypi weewx[3211]: manager: Added record 2019-11-15 06:45:00 CET (1573796700) to database 'weewx.sdb'
Dec 10 00:30:44 raspberrypi weewx[3211]: manager: Added record 2019-11-15 06:45:00 CET (1573796700) to daily summary in 'weewx.sdb'
Dec 10 00:30:49 raspberrypi weewx[3211]: manager: Added record 2019-11-15 07:00:00 CET (1573797600) to database 'weewx.sdb'
Dec 10 00:30:49 raspberrypi weewx[3211]: manager: Added record 2019-11-15 07:00:00 CET (1573797600) to daily summary in 'weewx.sdb'
Dec 10 00:30:56 raspberrypi weewx[3211]: manager: Added record 2019-11-15 07:15:00 CET (1573798500) to database 'weewx.sdb'
Dec 10 00:30:56 raspberrypi weewx[3211]: manager: Added record 2019-11-15 07:15:00 CET (1573798500) to daily summary in 'weewx.sdb'
Dec 10 00:31:02 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:31:04 raspberrypi weewx[3211]: manager: Added record 2019-11-15 07:30:00 CET (1573799400) to database 'weewx.sdb'
Dec 10 00:31:04 raspberrypi weewx[3211]: manager: Added record 2019-11-15 07:30:00 CET (1573799400) to daily summary in 'weewx.sdb'
Dec 10 00:31:05 raspberrypi weewx[3211]: manager: Added record 2019-11-15 07:45:00 CET (1573800300) to database 'weewx.sdb'
Dec 10 00:31:05 raspberrypi weewx[3211]: manager: Added record 2019-11-15 07:45:00 CET (1573800300) to daily summary in 'weewx.sdb'
Dec 10 00:31:08 raspberrypi weewx[3211]: manager: Added record 2019-11-15 08:00:00 CET (1573801200) to database 'weewx.sdb'
Dec 10 00:31:08 raspberrypi weewx[3211]: manager: Added record 2019-11-15 08:00:00 CET (1573801200) to daily summary in 'weewx.sdb'
Dec 10 00:31:10 raspberrypi weewx[3211]: manager: Added record 2019-11-15 08:15:00 CET (1573802100) to database 'weewx.sdb'
Dec 10 00:31:10 raspberrypi weewx[3211]: manager: Added record 2019-11-15 08:15:00 CET (1573802100) to daily summary in 'weewx.sdb'
Dec 10 00:31:12 raspberrypi weewx[3211]: manager: Added record 2019-11-15 08:30:00 CET (1573803000) to database 'weewx.sdb'
Dec 10 00:31:12 raspberrypi weewx[3211]: manager: Added record 2019-11-15 08:30:00 CET (1573803000) to daily summary in 'weewx.sdb'
Dec 10 00:31:22 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:31:24 raspberrypi weewx[3211]: manager: Added record 2019-11-15 08:45:00 CET (1573803900) to database 'weewx.sdb'
Dec 10 00:31:24 raspberrypi weewx[3211]: manager: Added record 2019-11-15 08:45:00 CET (1573803900) to daily summary in 'weewx.sdb'
Dec 10 00:31:26 raspberrypi weewx[3211]: manager: Added record 2019-11-15 09:00:00 CET (1573804800) to database 'weewx.sdb'
Dec 10 00:31:26 raspberrypi weewx[3211]: manager: Added record 2019-11-15 09:00:00 CET (1573804800) to daily summary in 'weewx.sdb'
Dec 10 00:31:29 raspberrypi weewx[3211]: manager: Added record 2019-11-15 09:15:00 CET (1573805700) to database 'weewx.sdb'
Dec 10 00:31:30 raspberrypi weewx[3211]: manager: Added record 2019-11-15 09:15:00 CET (1573805700) to daily summary in 'weewx.sdb'
Dec 10 00:31:31 raspberrypi weewx[3211]: manager: Added record 2019-11-15 09:30:00 CET (1573806600) to database 'weewx.sdb'
Dec 10 00:31:31 raspberrypi weewx[3211]: manager: Added record 2019-11-15 09:30:00 CET (1573806600) to daily summary in 'weewx.sdb'
Dec 10 00:31:35 raspberrypi weewx[3211]: manager: Added record 2019-11-15 09:45:00 CET (1573807500) to database 'weewx.sdb'
Dec 10 00:31:35 raspberrypi weewx[3211]: manager: Added record 2019-11-15 09:45:00 CET (1573807500) to daily summary in 'weewx.sdb'
Dec 10 00:31:41 raspberrypi weewx[3211]: vantage: DMPAFT try #1; error: Timeout in get_data_with_crc16
Dec 10 00:31:42 raspberrypi weewx[3211]: manager: Added record 2019-11-15 10:00:00 CET (1573808400) to database 'weewx.sdb'
Dec 10 00:31:42 raspberrypi weewx[3211]: manager: Added record 2019-11-15 10:00:00 CET (1573808400) to daily summary in 'weewx.sdb'
Dec 10 00:31:44 raspberrypi weewx[3211]: manager: Added record 2019-11-15 10:15:00 CET (1573809300) to database 'weewx.sdb'
Dec 10 00:31:44 raspberrypi weewx[3211]: manager: Added record 2019-11-15 10:15:00 CET (1573809300) to daily summary in 'weewx.sdb'
-
Todos esos Added record es que está volcando los datos del datalogger a la base de datos de weewx.
Cuando termine de leer datalogger empezará a generar el index.html y demás archivos ya actualizados cada cuarto de hora.
-
Hola... Acabo de encender mi pantalla para ver que tal iba todo, y me encuentro con una pantalla negra en la que pone lo siguiente:
Raspbian GNU/Linux raspberry tty1
Raspberrypi login: root (automatic login)
Last login: Mon Dec 10 21:11:03 CET 2019 on tty1
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 10:45:11 BST 2019 armv71
The programa incluye with the Debian GNU/Linux system are free Software; te exactamente distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debían GNU/Linux comes with ABSOLUTELY NO WARRANTY, todos the estén permitted by applicable law.
root@raspberrypi:~#
No entiendo nada y me estoy asustando...
-
El corrector del móvil ha traducido el texto a sus anchas...
-
Pues la Raspberry ha arrancado en modo consola (tty1) y como root… le has cambiado el arranque ? entraba antes al escritorio ?
-
No he tocado nada, ahora he hecho login con pi y sale igual solo que ahora los comandos los ejecuta pi. Estoy en una especie de loop, ya que pulso exit para salir del terminal y se me vuelve a abrir el terminal con lo mismo
-
sudo reboot now
y a ver cómo arranca
-
Me sale lo mismo otra vez
-
Sigue estas instrucciones para cambiar el arranque:
https://geekland.eu/iniciar-raspberry-pi-en-modo-consola/
La opción para entrar como usuario pi en el escritorio sería la B4 en la última imagen.
-
Acabo de hacerlo, pero me vuelve a salir lo mismo, solo que no tengo que logearme como pi. Pero me sale el terminal a pantalla completa con el mensaje de antes. Por lo que veo usando alt + (f1... f6) me voy moviendo por los 6 tty (no se lo que es). He hecho login en todos como pi pero no pasa nada... Es muy extraño, en Internet no he visto nadie al que le haya pasado de la misma manera que me ha pasado a mi. No existe algún comando para ir al escritorio?
-
Pues ahora de repente la raspi se ha reiniciado y me ha llevado al escritorio... Pues ya está esa parte solucionada, pero /var/www/html/weewx/index.html sigue a fecha del 30 de noviembre desactualizado. Ya mañana vemos que hacemos si puedes. Muchas gracias por toda tu ayuda
-
Ok
Adjunta como zip en tu próximo mensaje /var/log/weewx.log
No copies y pegues su contenido aquí ya que puede ser bastante grande ya.
Es la manera de que nos dé pistas de qué ocurre.
-
Madre mía y te dije mañana... He tenido mucho lío y no he tenido nada de tiempo para dedicarle a la raspi. Mañana por la tarde me pondré un rato. De veras que lo siento
-
Bueno, pues he estado tocando cosas y puedo afirmar que he avanzado bastante: he conseguido que se actualice index.html. La siguiente cosa en la que estoy atrancado es que, cuando copio meteoclimatic.htm.tmpl a la carpeta de skins Seasons (la que ahora va activada por defecto), no me genera ninguna plantilla meteoclimatic.htm en /var/www/html/weewx. Sabrías alguna solución? Gracias de antemano
-
Has puesto la configuración de la plantilla en ese skin ?
-
Sí, tengo lo de cod y sig en el archivo meteoclimatic.htm.tmpl y ese lo tengo en la carpeta Seasons
-
Primero lo puse en Standard, ya que no me di cuenta de que había que ponerlo en seasons, y desde standard lo moví a seasons
-
Además, me ha cambiado el service weewx status, ahora me sale esto:
dic 31 13:45:16 raspberrypi weewx[1349]: manager: Added record 2019-12-31 13:45:00 CET (1577796300) to database 'weewx.sdb'
dic 31 13:45:16 raspberrypi weewx[1349]: manager: Added record 2019-12-31 13:45:00 CET (1577796300) to daily summary in 'weewx.sdb'
dic 31 13:45:21 raspberrypi weewx[1349]: cheetahgenerator: Generated 8 files for report SeasonsReport in 3.02 seconds
dic 31 13:45:23 raspberrypi weewx[1349]: imagegenerator: Generated 14 images for SeasonsReport in 2.12 seconds
dic 31 13:45:23 raspberrypi weewx[1349]: copygenerator: copied 0 files to /var/www/html/weewx
dic 31 14:00:16 raspberrypi weewx[1349]: manager: Added record 2019-12-31 14:00:00 CET (1577797200) to database 'weewx.sdb'
dic 31 14:00:16 raspberrypi weewx[1349]: manager: Added record 2019-12-31 14:00:00 CET (1577797200) to daily summary in 'weewx.sdb'
dic 31 14:00:22 raspberrypi weewx[1349]: cheetahgenerator: Generated 8 files for report SeasonsReport in 4.21 seconds
dic 31 14:00:29 raspberrypi weewx[1349]: imagegenerator: Generated 28 images for SeasonsReport in 6.49 seconds
dic 31 14:00:29 raspberrypi weewx[1349]: copygenerator: copied 0 files to /var/www/html/weewx
-
Sí, tengo lo de cod y sig en el archivo meteoclimatic.htm.tmpl y ese lo tengo en la carpeta Seasons
No no… no se trata de poner sólo la plantilla en la carpeta de ese skin sino de si has puesto las líneas de la plantilla en el skin.conf
Aquí tienes la imagen:
(http://wiki.meteoclimatic.net/es/images/9/97/Skin.conf.png)
Como ves en esa sección que debes de localizar dentro del skin.conf debes añadir las dos últimas líneas referentes a la plantilla de meteoclimatic.
Y ojo al ponerlas, ponlas a la misma altura, ni un espacio más ni uno menos que las demás si usas pluma, nano o cualquier editor de texto. Si no respetas la sangría (espacio entre el margen izquierdo y donde empiezan las demás líneas) en Python puede que no se genere, ya se ha dado el caso.
-
Pues era eso, lo siento por no haberte entendido bien :;
He seguido con el tutorial y he hecho lo que me pusiste en la primera página de este post del crontab, y se supone que debería estar enviando datos, pero en la página de meteoclimatic no sale nada. ¿Hago service weewx restart?
-
Dónde has instalado los archivos de la utilidad de envío Linux ? Te está generando la plantilla weewx ?
-
Los archivos están en /home/pi/meteoclimatic (una carpeta que cree para guardarlos). Sí, la plantilla meteoclimatic.htm se me genera y funciona.
-
La ruta está bien en el archivo meteoclimatic.ini, así que no se que puede fallar, debería ser algo del crontab
-
Qué te pone al intentar subir manualmente la plantilla ?
Ejecuta /home/pi/meteoclimatic/meteoclimatic.sh en el terminal Linux a ver qué sale
-
Esta madrugada lo veo, de momento agradecerte toda tu ayuda y desearte feliz año :)
-
/home/pi/meteoclimatic/meteoclimatic.sh: línea 5: php: orden no encontrada
-
Vale, ese problema está solucionado: no tenía php. Ahora he conseguido enviar 1 vez a meteoclimatic, pero no se actualiza. Sin embargo, el archivo index.html y meteoclimatic.htm sí actualizan. ¿A qué puede deberse esto?
-
Resulta que meteoclimatic solo actualiza cuando ejecuto en el terminal meteoclimatic.sh manualmente, aunque meteoclimatic.sh tenga permisos de ejecución
-
Lo primero Feliz Año Nuevo :)
Si no tuviera permisos de ejecución no se ejecutaría... por lo tanto algo debe de ocurrir en el crontab.
Pon el resultado de ejecutar crontab -l (ele minúscula) en el terminal
-
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
15,30,45,59 * * * * /home/pi/meteoclimatic/meteoclimatic.sh
-
A partir de las 3:30 de la madrugada empezó a enviar datos automáticamente tras hacer un service weewx restart, pero me he dado cuenta de algo extraño: la página de meteoclimatic interpreta como plantilla de por ejemplo, las 13:00, la plantilla de las 12:45. Es decir, que sube los datos de meteoclimatic.htm con 15 minutos de retraso. Esto es así o puede solucionarse?
-
La línea de crontab está bien por lo que debería de ejecutarse a las horas indicadas.
En cuanto a lo de las horas de envío... cada cuanto se genera la plantilla de meteoclimatic y en general los archivos del skin ? Lo suyo sería cada 5 minutos.
Creo que la utilidad de Linux sobrescribe la fecha de la plantilla poniendo la hora a la que la envía y no la que tiene la plantilla.
Lo del minuto en el envío 59 lo puse yo para que a las 11:59 envíe la última plantilla con datos válidos del día que se va a quedar grabada en la BBDD de meteoclimatic.
Las actualizaciones se llevan produciendo desde las 4 de anoche de manera ininterrumpida por lo que se está subiendo bien la plantilla.
-
Tanto index.html como meteoclimatic.htm se actualizan cada 15 minutos
-
Y lo de la hora de envío me refiero a que por ejemplo:
-Se genera plantilla meteoclimatic.htm (x) a las 14:00
-Se genera plantilla meteoclimatic.htm (y) a las 14:15
-Meteoclimatic publica la plantilla x a las 14:15, e indica que los datos de x han ocurrido a las 14:15 cuando en realidad han sido a las 14:00
-
Por ponerte un ejemplo más concreto, ahora mismo (18:45) se me acaba de actualizar meteoclimatic.htm poniendo entre otros 12,8ºC, 1036,2hPa O 86% de humedad.
A las 18:51, se sube la plantilla a meteoclimatic. Debería ser la de las 18:45 que indica 12,8ºC, pero es la de las 18:30 cuando habían 12,9ºC o 1036hPa. En la sección última actualización pone 17:45:02 UTC pero con los datos de 17:30:02 UTC.
-
Se me ha ocurrido una posible causa (aunque no estoy seguro para nada). Al generarse cada 15min, cuando meteoclimatic sube los datos a las 10:59, se ve obligado a coger la plantilla de las 10:45 (porque se me genera cada 15 minutos). Después, a las 11:15, tiene que coger las de las 11:00 y así se crea ese retardo. Como habías dicho antes, será problema de generar plantilla cada 15 minutos, y poniéndolo a cada 5 debería arreglarse, el problema es que no sé como hacerlo
-
A ver, te explico un poco los tiempos de la plantilla.
Meteoclimatic publica los datos actualizados en los minutos 7, 22, 37 y 52 aproximadamente de cada hora (cada cuarto de hora) y en ella aparece la última plantilla leída.
Así que por ejemplo la plantilla generada por weewx de las 18:45 y subida a su vez por la utilidad de envío linux no se va a ver hasta las 18:52 ó 18:53. A las 18:45 verás todavía la plantilla de las 18:30 ya que no ha leído nueva plantilla.
-
Como habías dicho antes, será problema de generar plantilla cada 15 minutos, y poniéndolo a cada 5 debería arreglarse, el problema es que no sé como hacerlo
Modificar tiempos de registros y generación de archivos significa ponerle ese mismo intervalo al datalogger (5 minutos) de la Davis (se puede poner con weewx con un comando) y hacer que weewx genere su archive_interval en weewx.conf cada 300 segundos (5 minutos)
-
Entonces pruebo a cambiar el archive_interval o lo dejó como esta?
-
A ver, te explico un poco los tiempos de la plantilla.
Meteoclimatic publica los datos actualizados en los minutos 7, 22, 37 y 52 aproximadamente de cada hora (cada cuarto de hora) y en ella aparece la última plantilla leída.
Así que por ejemplo la plantilla generada por weewx de las 18:45 y subida a su vez por la utilidad de envío linux no se va a ver hasta las 18:52 ó 18:53. A las 18:45 verás todavía la plantilla de las 18:30 ya que no ha leído nueva plantilla.
Me refiero a que a las 18:53 esta la plantilla de las 18:30
-
A ver, te explico un poco los tiempos de la plantilla.
Meteoclimatic publica los datos actualizados en los minutos 7, 22, 37 y 52 aproximadamente de cada hora (cada cuarto de hora) y en ella aparece la última plantilla leída.
Así que por ejemplo la plantilla generada por weewx de las 18:45 y subida a su vez por la utilidad de envío linux no se va a ver hasta las 18:52 ó 18:53. A las 18:45 verás todavía la plantilla de las 18:30 ya que no ha leído nueva plantilla.
Me refiero a que a las 18:53 esta la plantilla de las 18:30
Entonces puede darse que cuando la utilidad de envío envía la plantilla weewx todavía no la haya generado, de hecho puede tardar unos segundos a partir, del ejemplo que estamos poniendo de las 18:45.
Mejor pon datalogger de la Davis cada cinco minutos. Para ello cierras weewx y ejecutas en el terminal sudo wee_device --set-interval=5
Nunca lo he hecho con weewx pero supongo que primeramente borrará datalogger por lo que pondrá algún mensaje de confirmación o algo en la operación.
También mira que en weewx.conf tengas archive_interval = 300 que si no lo has tocado es el que estará por defecto.
Arranca weewx y ya debería de ir con ese intervalo generando los archivos.
También modifica el crontab con 16,31,46,59 en vez de 15,30,45,59 a ver si sube la plantilla justamente creada.
A ver si lo vamos dejando optimizado.
-
Pues cambiando lo que me has dicho, ya se generan plantillas cada 5 minutos y se meteoclimatic actualiza a la última plantilla disponible. Muchísimas gracias por todo, sin tu ayuda no hubiera sido capaz de poner en funcionamiento todo esto que parecía imposible para mí
-
Ok me alegro de que vaya todo bien... en esta vida todo es... ponerse a ello cuando se quiere algo.
saludos