Software > WeeWX
¿ como hacer que un "skin" sea el predeterminado ?
kocher:
Muchas gracias jmviper
Ya ves el despiste que llevo je je
Estaba encantado con el "skin" de Belchertown pero, al haberlo configurado hace años, ahora no soy capaz de repetir la hazaña.
En weewx.conf he puesto la siguiente configuración:
[StdReport]
HTML_ROOT = /var/www/html/weewx
----
---
[[SeasonsReport]]
skin/Seasons
enable = true
[[NeowxMaterialReport]]
HTML_ROOT = /var/www/html/weewx/neowx
skin = neowx
enable = true
jmviper:
--- Código: ---[StdReport]
HTML_ROOT = /var/www/html/weewx
----
---
[[SeasonsReport]]
skin = Seasons
enable = false
[[NeowxMaterialReport]]
HTML_ROOT = /var/www/html/weewx/neowx
skin = neowx
enable = true
--- Fin del código ---
Ponlo así y reinicia weewx. Dejará de generar Seasons y generará neowx en /var/www/html/weewx/neowx
No sé si es por que lo has copiado mal pero en las líneas que has puesto está:
[[SeasonsReport]]
skin/Seasons
enable = true
Esa línea en negrita está mal. Es skin = Seasons
Ya lo he puesto bien en el código de más arriba ;)
kocher:
Gracias jmviper
Es un error mío ya que no puedo utilizar el copia / pega
Ya he hecho lo que me sugieres; es decir: desactivar Seasons y activar neowx, pero no hay manera; deja de actualizarse Seasons pero no se actualiza neowx
He revisado la carpeta del skin y, me parece, tiene todos los archivos necesarios para generarse.
Estoy muy muy despistado uff
jantoni:
Veamos.....
en el skin, en html_root tienes que declarar la carpeta de forma relativa, no absoluta y es en relación a lo declarado en weewx_root
De este modo, primero nos vamos a ver weewx_root
--- Código: ---# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2021 Tom Keffer <[email protected]>
# 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 = /home/weewx
# Whether to log successful operations
log_success = True
# Whether to log unsuccessful operations
log_failure = False
# 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 = 4.5.1
--- Fin del código ---
Le digo que el directorio de Weewx es /home/weewx (yo uso instalación con setup.py en este ordenador). Tu tendrás seguramente /var/www o algo similar.
Y luego vamos a los skin
--- Código: ---[StdReport]
# Where the skins reside, relative to WEEWX_ROOT
SKIN_ROOT = skins
# Where the generated reports should go, relative to WEEWX_ROOT
HTML_ROOT = public_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 = True
# 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.
[[NeowxMaterialReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = neowx-material
enable = true
HTML_ROOT = public_html/test/davis1
[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
enable = true
HTML_ROOT = public_html/davis1
--- Fin del código ---
De este modo, NeoWxMaterial se genera en /home/weewx/public_html/test/davis1
kocher:
je je, perdona jmviper
--- Citar ---en el skin, en html_root tienes que declarar la carpeta de forma relativa, no absoluta y es en relación a lo declarado en weewx_root
De este modo, primero nos vamos a ver weewx_root
--- Fin de la cita ---
No entiendo a que te refieres; ¿ que archivo tengo que editar?
Está visto que hoy no doy una :;
Navegación
[#] Página Siguiente
[*] Página Anterior
Ir a la versión completa