Hola Jantoni, gracias por responder. Estoy ahora intentando duplicar los skins como dijiste pero hay algo que no termina de funcionar...
Comento lo que he hecho hasta ahora:
-He creado una carpeta,
/etc/weewx/skins/Standard_sabi, donde he metido los mismos skins que en Standard, pero he modificado el skin.conf de esa carpeta para que no se generen tantos archivos (de momento para las pruebas sobra, además los skins que quiero enviar al otro servidor serán diferentes). No he tocado nada más de ese skin.conf
-He creado otro directorio,
/var/www/weewx/sabi, donde quiero que se generen los skins que subiré al nuevo servidor.
-He modificado el weewx.conf de esta manera:
[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/weewx
# The database binding indicates which data should be used in reports.
data_binding = wx_binding
# Each of the following subsections defines a report that will be 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 = km_per_hour2
group_pressure = mbar
group_rain = mm
group_rainrate = mm_per_hour
group_temperature = degree_C
group_degree_day = degree_C_day
group_speed = km_per_hour
[[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 = Usuario_servidor_1
password = Contraseña_servidor_1
server = Servidor_1
path = /.
# Set to True for a secure FTP (SFTP) 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/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 as to the user account on the remote machine where the files
# will be copied.
#
# The following three lines determine where files will be sent.
#server = replace with the rsync server name, e.g, www.threefools.org
#path = replace with the rsync destination directory (e.g., /weather)
#user = replace with the rsync 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
[[Meteosabi]]
# 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_sabi
[[[Units]]]
[[[[Groups]]]]
group_altitude = meter
group_speed2 = km_per_hour2
group_pressure = mbar
group_rain = mm
group_rainrate = mm_per_hour
group_temperature = degree_C
group_degree_day = degree_C_day
group_speed = km_per_hour
[[FTP2]]
# 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 = Usuario_servidor_2
password = Contraseña_servidor_2
server = Servidor_2
path = /.
# Set to True for a secure FTP (SFTP) 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/weewx/sabi
# Most FTP servers use port 21
port = 22
# Set to 1 to use passive mode, zero for active mode
passive = 1
En la configuración del servidor 2, he probado las distintas combinaciones entre Port 21 ó 22, y Secure_FTP=true/false. He descomentado el HTML_ROOT con la ruta del directorio en el que deben estar los archivos a subir al nuevo servidor.
El problema es que en ese directorio no aparece nada, así que malamente se van a subir al servidor... Creo que me habré dejado algo por algún sitio, que de alguna manera "fuerce" a que los archivos se guarden en ese directorio, y lo lógico a mi entender es que estuviera en el skin.conf, pero allí no he encontrado alusiones al directorio donde se suben normalmente.
Por otra parte, en el log aparece lo siguiente:
Sep 28 14:16:04 pi1 weewx[21708]: cheetahgenerator: Generated 32 files for report StandardReport in 44.73 seconds
Sep 28 14:16:08 pi1 weewx[21708]: genimages: Generated 8 images for StandardReport in 4.43 seconds
Sep 28 14:16:28 pi1 weewx[21708]: reportengine: ftp'd 57 files in 19.36 seconds
Sep 28 14:16:54 pi1 weewx[21708]: cheetahgenerator: Generated 5 files for report Meteosabi in 25.60 seconds
Sep 28 14:16:57 pi1 weewx[21708]: genimages: Generated 7 images for Meteosabi in 3.84 seconds
Sep 28 14:16:59 pi1 weewx[21708]: reportengine: ftp'd 0 files in 1.27 seconds
Es decir, de alguna forma se están generando los archivos para el nuevo servidor (Meteosabi), pero ni se suben ni aparecen en el directorio... creo que se generan en el directorio normal,
/var/www/weewx, dadas las fechas de modificación de los archivos (hay precisamente 7 imágenes y 5 archivos generados 1 minuto más tarde que los otros).
Tampoco sé si con arreglar esto se solucionará el problema, ya que dependiendo de la elección del puerto o de secure_FTP=true/false, en el log aparecían time-outs por parte del servidor...
Espero estar a punto de conseguirlo y que sea algo sencillo que haya pasado por alto. A ver si me podéis echar un cable...
Gracias, y un saludo