Software > WeeWX
instalacion utilidad subida datos meteoclimatic y plantilla no encontrada
burgati:
Hola amigos del linux xtrem.......resulta que subía datos a meteoclimatic a través de una cuenta de hosting que me ha caducado y como hay que pagar paso . En esto que me enteré que hay una utilidad para subir datos a meteoclimatic para linux y en esas me puse...seguí los tutoriales y tras mucho trastear conseguí que apareciese el punto de mi estación en el mapa y una actuañlización de la plantilla, tras lo cual no volvió a actualizar.
El weewx.log parece que va descargando y actualizando correctamente, dejo un extracto de las últimas lineas:
Jun 8 19:55:19 raspberrypi weewx[2479]: cheetahgenerator: Generated 15 files for report StandardReport in 2.19 seconds
Jun 8 19:55:21 raspberrypi weewx[2479]: imagegenerator: Generated 8 images for StandardReport in 1.28 seconds
Jun 8 19:55:21 raspberrypi weewx[2479]: copygenerator: copied 0 files to /var/www/weewx
Jun 8 19:55:21 raspberrypi weewx[2479]: copygenerator: copied 0 files to /var/www/weewx/ss
Jun 8 19:55:21 raspberrypi weewx[2479]: cheetahgenerator: Generated 2 files for report SteelSeries in 0.17 seconds
Jun 8 19:55:23 raspberrypi weewx[2479]: imagegenerator: Generated 11 images for SteelSeries in 2.37 seconds
Jun 8 20:00:15 raspberrypi weewx[2479]: manager: Added record 2017-06-08 20:00:00 UTC (1496952000) to database '/var/lib/weewx/weewx.sdb'
Jun 8 20:00:16 raspberrypi weewx[2479]: manager: Added record 2017-06-08 20:00:00 UTC (1496952000) to daily summary in '/var/lib/weewx/weewx.sdb'
Jun 8 20:00:19 raspberrypi weewx[2479]: cheetahgenerator: Generated 15 files for report StandardReport in 2.25 seconds
Jun 8 20:00:23 raspberrypi weewx[2479]: imagegenerator: Generated 16 images for StandardReport in 3.96 seconds
Jun 8 20:00:23 raspberrypi weewx[2479]: copygenerator: copied 0 files to /var/www/weewx
Jun 8 20:00:23 raspberrypi weewx[2479]: copygenerator: copied 0 files to /var/www/weewx/ss
Jun 8 20:00:24 raspberrypi weewx[2479]: cheetahgenerator: Generated 2 files for report SteelSeries in 0.17 seconds
Jun 8 20:00:25 raspberrypi weewx[2479]: imagegenerator: Generated 11 images for SteelSeries in 1.45 seconds
Jun 8 20:05:15 raspberrypi weewx[2479]: manager: Added record 2017-06-08 20:05:00 UTC (1496952300) to database '/var/lib/weewx/weewx.sdb'
Jun 8 20:05:16 raspberrypi weewx[2479]: manager: Added record 2017-06-08 20:05:00 UTC (1496952300) to daily summary in '/var/lib/weewx/weewx.sdb'
Jun 8 20:05:19 raspberrypi weewx[2479]: cheetahgenerator: Generated 15 files for report StandardReport in 2.27 seconds
Jun 8 20:05:21 raspberrypi weewx[2479]: imagegenerator: Generated 8 images for StandardReport in 1.28 seconds
Jun 8 20:05:21 raspberrypi weewx[2479]: copygenerator: copied 0 files to /var/www/weewx
Jun 8 20:05:21 raspberrypi weewx[2479]: copygenerator: copied 0 files to /var/www/weewx/ss
Jun 8 20:05:21 raspberrypi weewx[2479]: cheetahgenerator: Generated 2 files for report SteelSeries in 0.17 seconds
Jun 8 20:05:23 raspberrypi weewx[2479]: imagegenerator: Generated 11 images for SteelSeries in 2.37 seconds
Jun 8 20:10:15 raspberrypi weewx[2479]: manager: Added record 2017-06-08 20:10:00 UTC (1496952600) to database '/var/lib/weewx/weewx.sdb'
Jun 8 20:10:16 raspberrypi weewx[2479]: manager: Added record 2017-06-08 20:10:00 UTC (1496952600) to daily summary in '/var/lib/weewx/weewx.sdb'
Jun 8 20:10:19 raspberrypi weewx[2479]: cheetahgenerator: Generated 15 files for report StandardReport in 2.19 seconds
Jun 8 20:10:21 raspberrypi weewx[2479]: imagegenerator: Generated 8 images for StandardReport in 1.30 seconds
Jun 8 20:10:21 raspberrypi weewx[2479]: copygenerator: copied 0 files to /var/www/weewx
Jun 8 20:10:21 raspberrypi weewx[2479]: copygenerator: copied 0 files to /var/www/weewx/ss
Jun 8 20:10:21 raspberrypi weewx[2479]: cheetahgenerator: Generated 2 files for report SteelSeries in 0.17 seconds
Jun 8 20:10:22 raspberrypi weewx[2479]: imagegenerator: Generated 11 images for SteelSeries in 1.47 seconds
Por donde podríamos empezar a ver donde está el fallo?.....gracias y paciencia conmigo, soy nuevo en linux y bastante tarugo
jmviper:
Parece que ya te lee de nuevo la estación weewx :)
Ahora toca seguir por donde lo dejamos en un anterior post con la utilidad de envío de la plantilla. A ver qué dice el log.
http://forum.meteoclimatic.net/index.php/topic,32.msg11061.html#msg11061
burgati:
Buenos días jmviper
A ver si arreglamos el asunto hoy ya, jeje... te comento:
La plantilla la tengo alojada en /var/www/weewx
y lo del log que no entiendo muy bien lo tengo configurado tal como me pusiste, osea, tengo puesto esto:
#!/bin/bash
cd /root/meteoclimatic
#Si no quieres log
#php meteoclimatic_http.php.old
#Si quieres log
php meteoclimatic_http.php.old >> /var/log/meteoclimatic.log
exit
y el archivo meteoclimatic.log que tengo alojado en home/pi me pone esto:
-- 15/03/2015 10:01:07 --
HTTP/1.1 202 Accepted
Date: Sun, 15 Mar 2015 10:01:01 GMT
Server: Apache/2.2.22 (Debian)
X-Powered-By: PHP/5.4.36-0+deb7u3
X-Error: 202 Accepted
X-DigestKey:
Vary: Accept-Encoding
Content-Length: 69
Content-Type: text/plain
Ver: 3a - ID: ESMAD2800000028522A
Query Length: 141
202: Accepted
Ahí figura el código de la estación que viene por defecto en el tutorial, pongo el código de la mía no?
jmviper:
Se explica muy bien paso a paso en la configuración de la utilidad:
http://forum.meteoclimatic.net/index.php/topic,32.msg113.html#msg113
Hay que leerlo bien y seguir los pasos configurando también el archivo meteoclimatic.ini con el código de tu estación, la ruta donde está la plantilla rellenada meteoclimatic.htm y la contraseña con la que entras en tu estación en meteoclimatic.
El log que has puesto es el que viene por defecto de cuando se hizo el tutorial. El log de subida de la plantilla debe de crearse en /var/log/meteoclimatic.log por que así lo pone en meteoclimatic.sh.
El crontab lo tendrás que editar con la subida tal y como lo pone en ese hilo.
Pero lo primero que debes de ver es si weewx te está rellenando la plantilla de meteoclimatic:
http://wiki.meteoclimatic.net/wiki/WeeWX_y_Meteoclimatic
burgati:
skin.conf , puse al final el apartado [[[Meteoclimatic]]]
[[ToDate]]
# Reports that show statistics "to date", such as day-to-date,
# week-to-date, month-to-date, etc.
[[[day]]]
template = index.html.tmpl
[[[week]]]
template = week.html.tmpl
[[[month]]]
template = month.html.tmpl
[[[year]]]
template = year.html.tmpl
[[[RSS]]]
template = RSS/weewx_rss.xml.tmpl
[[[Mobile]]]
template = mobile.html.tmpl
[[[MobileSmartphone]]]
template = smartphone/index.html.tmpl
[[[MobileTempOutside]]]
template = smartphone/temp_outside.html.tmpl
[[[MobileRain]]]
template = smartphone/rain.html.tmpl
[[[MobileBarometer]]]
template = smartphone/barometer.html.tmpl
[[[MobileWind]]]
template = smartphone/wind.html.tmpl
[[[MobileRadar]]]
template = smartphone/radar.html.tmpl
[[[Meteoclimatic]]]
template = meteoclimatic.htm.tmpl
la plantilla alojada en /var/www/weewx/meteoclimatic.htm me la actualiza correctamente:
*VER=DATA2
*COD=ESCYL0900000009001D
*SIG=b.................................................1e7
*UPD=09-06-2017 09:25
*TMP=19,6
*WND=6
*AZI=45
*BAR=1013,4
*HUM=74
*SUN= N/A
*UVI= N/A
*DHTM=19,8
*DLTM=14,1
*DHHM=95
*DLHM=73
*DHBR=1013,5
*DLBR=1011,4
*DGST=27
*DSUN= N/A
*DHUV= N/A
*DPCP=0,0
*WRUN=
*MHTM=29,5
*MLTM=11,8
*MHHM=95
*MLHM=24
*MHBR=1017,6
*MLBR=1008,9
*MGST=40
*MSUN= N/A
*MHUV= N/A
*MPCP=1,6
*YHTM=29,5
*YLTM=11,8
*YHHM=95
*YLHM=24
*YHBR=1019,0
*YLBR=1008,9
*YGST=42
*YSUN= N/A
*YHUV= N/A
*YPCP=1,6
*EOT*
© jantoni (02/2015)
En /etc/weewx/skins/Standard tengo el archivo meteoclimatic.htm.tmpl y le abro y aparece la plantilla digamos sin rellenar:
*VER=DATA2
*COD=ESCYL0900000009001D
*SIG=b2..........................................1e7
*UPD=$current.dateTime.format("%d-%m-%Y %H:%M")
*TMP=$current.outTemp.formatted
*WND=$current.windSpeed.formatted
*AZI=$current.windDir.formatted
*BAR=$current.barometer.formatted
*HUM=$current.outHumidity.formatted
*SUN=$current.radiation.formatted
*UVI=$current.UV.formatted
*DHTM=$day.outTemp.max.formatted
*DLTM=$day.outTemp.min.formatted
*DHHM=$day.outHumidity.max.formatted
*DLHM=$day.outHumidity.min.formatted
*DHBR=$day.barometer.max.formatted
*DLBR=$day.barometer.min.formatted
*DGST=$day.windGust.max.formatted
*DSUN=$day.radiation.max.formatted
*DHUV=$day.UV.max.formatted
*DPCP=$day.rain.sum.formatted
*WRUN=
*MHTM=$month.outTemp.max.formatted
*MLTM=$month.outTemp.min.formatted
*MHHM=$month.outHumidity.max.formatted
*MLHM=$month.outHumidity.min.formatted
*MHBR=$month.barometer.max.formatted
*MLBR=$month.barometer.min.formatted
*MGST=$month.windGust.max.formatted
*MSUN=$month.radiation.max.formatted
*MHUV=$month.UV.max.formatted
*MPCP=$month.rain.sum.formatted
*YHTM=$year.outTemp.max.formatted
*YLTM=$year.outTemp.min.formatted
*YHHM=$year.outHumidity.max.formatted
*YLHM=$year.outHumidity.min.formatted
*YHBR=$year.barometer.max.formatted
*YLBR=$year.barometer.min.formatted
*YGST=$year.windGust.max.formatted
*YSUN=$year.radiation.max.formatted
*YHUV=$year.UV.max.formatted
*YPCP=$year.rain.sum.formatted
*EOT*
© jantoni (02/2015)
Este tema de la plantilla lo tengo bien configurado y ubicado no?.....o meteoclimatic.htm debería estar tambien alojada en /etc/weewx/skins/Standard y no donde la tengo ahora en var/www/weewx?????? :o
Navegación
[#] Página Siguiente
Ir a la versión completa