Software > WeeWX

Problemas con la Plantilla o configuración

(1/3) > >>

sunbloquer:
En algun paso me he perdido o no he realizado bien, vamos a repasar.

Me voy a http://www.meteoclimatic.net/index/pg.0.plantilles.html?station_id=ESAST3300000033314A y me descargo la plantilla que he visto contiene mis datos, la ID y el SIG.

Hice lo que se habla en http://wiki.meteoclimatic.net/wiki/WeeWX_y_Meteoclimatic hay que indicar en la ficha de tu estación que vas a usar el software Weather Display y le cambie el nombre a meteoclimatic.htm.tmpl este archivo se encuentra en situado en

pi@raspberrypi:/etc/weewx/skins/Standard

*VER=DATA2
*COD=ESAST3300000033314A
*SIG= AQUI MI SIG
*UPD=%date% %time%
*TMP=%temp%
*WND=%10minavspeedinkmh%
*AZI=%avdir10minute%
*BAR=%baro%
*HUM=%hum%
*SUN=%VPsolar%
*UVI=%VPuv%
*DHTM=%maxtemp%
*DLTM=%mintemp%
*DHHM=%highhum%
*DLHM=%lowhum%
*DHBR=%highbaro%
*DLBR=%lowbaro%
*DGST=%todaygustspeedinkmh%
*DSUN=%highsolar%
*DHUV=%highuv%
*DPCP=%dayrn%
*WRUN=%windruntoday%
*MHTM=%monthtodatemaxtempcelsius%
*MLTM=%monthtodatemintemp%
*MHHM=%monthtodatemaxhum%
*MLHM=%monthtodateminhum%
*MHBR=%monthtodatemaxbaromb%
*MLBR=%monthtodateminbaromb%
*MGST=%monthtodatemaxgustkmh%
*MSUN=%mrecordhighsolar%
*MHUV=%mrecordhighuv%
*MPCP=%monthraininmm%
*YHTM=%yrecordhightemp%
*YLTM=%yrecordlowtemp%
*YHHM=%yrecordhighhum%
*YLHM=%yrecordlowhum%
*YHBR=%yrecordhighbaro%
*YLBR=%yrecordlowbaro%
*YGST=%yrecordwindgust%
*YSUN=%yrecordhighsolar%
*YHUV=%yrecordhighuv%
*YPCP=%yearlyraininmm%
*EOT*

Voy a sudo nano skin.conf y añado

        [[[MobileRadar]]]
            template = smartphone/radar.html.tmpl

        [[[MeteoClimatic]]]
            template = meteoclimatic.htm.tmpl

Me voy a la utilidad para el envio de datos, descargo el archivo y llevo los 4 a home/pi
 
sudo chown root:root meteoclimatic.sh
sudo chmod +x meteoclimatic.sh

introduzco los datos en meteoclimatic.ini es el fichero con la configuración de nuestra estación
Para los usuarios de mi imagen para weewx, debéis usar meteoclimatic_http.php
e inserto

Añado a /etc/crontab

# Envía datos a Meteoclimatic cada 15 minutos, empezando en el minuto 2 de cada hora
2-59/15 *   * * *   root    /root/meteoclimatic.sh

La plantilla, en Weewx suele ser:
/var/www/weewx/meteoclimatic.htm
o
/var/www/weewx/meteoclimatic.html
el archivo meteoclimatic.htm lo tengo en  pi@raspberrypi:/var/www/html/weewx

sudo /etc/init.d/weewx restart

Quizas sea algo obvio que se me pasa, de todas formas voy a cambiar para obtener el log que ahora esta deshabilitado y en el proximo post lo pongo.

El log a pesar de tenerlo como aparece por defecto en /var/log/meteoclimatic.log me lo crea en /home/pi

-- 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

Veo que la Key esta vacio a pesar de estar puesta bien, sera eso?

[Global]
Stations=ESAST3300000033314A
DigestKey=

[ESAST3300000033314A]
Path=/var/www/html/weewx/meteoclimatic.htm
Password= AQUI MI SIG
StationVendor=Davis
StationModel=Vantage Vue


Gracias

sunbloquer:
Mirando esto y ya digo de antemano que no tengo ni pajorela idea de esto, en la parte de añadir en /etc/crontab

2-59/15 *   * * *   root    /home/pi/meteoclimatic.sh

que es lo que hace eso, meteoclimatic.sh la unica rutina que tiene es realizar el log no? no enviar datos,  ::)

sunbloquer:
Me respondo a mi mismo, pi no tenia permisos para crear el log, cambio de permisos y

GET /?
T=;;;;;;&H=;;;;;;&B=;;;;;;&W=;;;;;&P=;;&S=;;;&V=;;;&U=3a;ESAST3300000033314A;4b285af9ba HTTP/1.0
HOST: pool.meteoclimatic.com
User-Agent: Meteoclimatic_HTTP/1.0 (Davis Vantage Vue)

-- 24/12/2016 13:32:06 --
HTTP/1.1 202 Accepted
Date: Sat, 24 Dec 2016 13:32:01 GMT
Server: Apache/2.4.10 (Debian)
X-Error: 202 Accepted
X-Errors: 1 < HUM < 100;1 < DHHM < 100;1 < DLHM < 100;1 < MHHM < 100;1 < MLHM < 100;1 < YHHM < 100;1 < YLHM < 100;950 < BAR < 1070;950 < DHBR < 1070;950 < DLBR < 1070;$
X-DigestKey:
Content-Length: 302
Content-Type: text/plain;charset=UTF-8

*ERR=1 < HUM < 100;1 < DHHM < 100;1 < DLHM < 100;1 < MHHM < 100;1 < MLHM < 100;1 < YHHM < 100;1 < YLHM < 100;950 < BAR < 1070;950 < DHBR < 1070;950 < DLBR < 1070;950 <$
Ver: 3a - ID: ESAST3300000033314A
Query Length: 87
202: Accepted

zapal:
Tu pones esto en tu archivo meteoclimatic.html.tmpl :

--- Citar ---*VER=DATA2
*COD=ESAST3300000033314A
*SIG= AQUI MI SIG
*UPD=%date% %time%
*TMP=%temp%
*WND=%10minavspeedinkmh%
*AZI=%avdir10minute%
*BAR=%baro%
*HUM=%hum%
*SUN=%VPsolar%
*UVI=%VPuv%
*DHTM=%maxtemp%
*DLTM=%mintemp%
*DHHM=%highhum%
*DLHM=%lowhum%
*DHBR=%highbaro%
*DLBR=%lowbaro%
*DGST=%todaygustspeedinkmh%
*DSUN=%highsolar%
*DHUV=%highuv%
*DPCP=%dayrn%
*WRUN=%windruntoday%
*MHTM=%monthtodatemaxtempcelsius%
*MLTM=%monthtodatemintemp%
*MHHM=%monthtodatemaxhum%
*MLHM=%monthtodateminhum%
*MHBR=%monthtodatemaxbaromb%
*MLBR=%monthtodateminbaromb%
*MGST=%monthtodatemaxgustkmh%
*MSUN=%mrecordhighsolar%
*MHUV=%mrecordhighuv%
*MPCP=%monthraininmm%
*YHTM=%yrecordhightemp%
*YLTM=%yrecordlowtemp%
*YHHM=%yrecordhighhum%
*YLHM=%yrecordlowhum%
*YHBR=%yrecordhighbaro%
*YLBR=%yrecordlowbaro%
*YGST=%yrecordwindgust%
*YSUN=%yrecordhighsolar%
*YHUV=%yrecordhighuv%
*YPCP=%yearlyraininmm%
*EOT*

--- Fin de la cita ---

Pero en el mismo manual que citas de la wiki te dice que lo rellenes con estos datos :

--- Citar ---*VER=DATA2
*COD=   <<<<<================= Indicar el código de estación en Meteoclimatic
*SIG=   <<<<<================= Indicar el churro de letras y números que aparecen en el cmapo SIG de la plantilla descargada
*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*

--- Fin de la cita ---

Creo que ese es tu error

jmviper:
Como te dice zapal has puesto la plantilla de Weather Display en vez de la de Weewx.

En la ficha de tu estación puedes poner Weewx como software utilizado y descargarte su plantilla o copiar y pegar a la que ya tienes los valores de Weewx.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

Ir a la versión completa