Meteoclimatic

Software => WeeWX => Mensaje iniciado por: Secure440 en 25 de Marzo del 2016, 16:12:53 pm

Título: No descarga plantilla
Publicado por: Secure440 en 25 de Marzo del 2016, 16:12:53 pm
Pues eso, que no me genera la plantilla ni se descarga de la pagina cuando le doy al enlace. http://www.meteoclimatic.net/addons/tpl.php?station_id=ESCAT0800000008490G  :;
Título: Re:No descarga plantilla
Publicado por: kocher en 25 de Marzo del 2016, 22:33:57 pm
Quizás encuentre la solución aquí:
 

http://wiki.meteoclimatic.net/wiki/FAQ,_preguntas_frecuentes#La_plantilla_de_Meteoclimatic (http://wiki.meteoclimatic.net/wiki/FAQ,_preguntas_frecuentes#La_plantilla_de_Meteoclimatic)
Título: Re:No descarga plantilla
Publicado por: Ubik en 25 de Marzo del 2016, 22:41:17 pm
Tienes que quitar el FreeWX y poner otro programa, he comprobado que  te descara bien, pero no con ese programa.

Si vas a usar Linux, pásate por la zona de weewx y ahí te aconsejarán mejor qué es lo que tienes que hacer.

Título: Re:No descarga plantilla
Publicado por: Secure440 en 25 de Marzo del 2016, 23:10:28 pm
Entiendo de qué tengo que cambiar de sof para bajarme la plantilla, por ejemplo Wather Display, y luego modificarla para wewx. Es correcto?
Título: Re:No descarga plantilla
Publicado por: jantoni en 26 de Marzo del 2016, 09:36:17 am
La solución está en la wiki.
Título: Re:No descarga plantilla
Publicado por: Ubik en 26 de Marzo del 2016, 09:36:28 am
Sí,  es así, pero muevo la consulta al foro de Weewx, Jantoni  y los compañeros que lo usan podrán ayudarte mejor.
Título: Re:No descarga plantilla
Publicado por: Secure440 en 26 de Marzo del 2016, 15:42:33 pm
Gracias, me pongo a ello.
Título: Re:No descarga plantilla
Publicado por: Secure440 en 01 de Abril del 2016, 02:38:02 am
Bueno, una vez seguido el tutorial de la wiki y del compañero jantoni, como se si hice todo bien y meteoclimatc recibe mis datos?
Título: Re:No descarga plantilla
Publicado por: jantoni en 01 de Abril del 2016, 09:26:03 am
Una vez que empiezas a mandar datos, y estos son admitidos por el robot de Meteoclimatic,  aparecerás en el listado de estaciones de tu provincia,

Si no apareces es que algo pasa.

Título: Re:No descarga plantilla
Publicado por: Wlarues en 01 de Abril del 2016, 12:58:57 pm
Cuando dices que has seguido el tutorial, ¿te refieres a este?:
http://wiki.meteoclimatic.net/wiki/WeeWX_y_Meteoclimatic (http://wiki.meteoclimatic.net/wiki/WeeWX_y_Meteoclimatic)

Saludos
Título: Re:No descarga plantilla
Publicado por: Secure440 en 01 de Abril del 2016, 17:37:54 pm
Cuando dices que has seguido el tutorial, ¿te refieres a este?:
http://wiki.meteoclimatic.net/wiki/WeeWX_y_Meteoclimatic (http://wiki.meteoclimatic.net/wiki/WeeWX_y_Meteoclimatic)

Saludos

Si, y el Paso 3-a para subirla
Título: Re:No descarga plantilla
Publicado por: Wlarues en 01 de Abril del 2016, 19:59:02 pm
Hmmm, entonces no te puedo ayudar, ya que yo seguí el 3b  :-\
Título: Re:No descarga plantilla
Publicado por: jantoni en 01 de Abril del 2016, 20:01:35 pm
En el script se indica como activar el log para ver lo que ocurre.

Mira en el fichero llamado meteoclimatic.sh para activar el log.

Saludos.
Título: Re:No descarga plantilla
Publicado por: Secure440 en 03 de Abril del 2016, 18:41:51 pm
Esto es lo que me sale en el archivo meteoclimatic.log

Could not open input file: meteoclimatic_http.php
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?
/var/www/weewx/meteoclimatic.htm?


DATA2
ESCAT0800000008490G
8970058cb46a0e471d88742622948f30
%date% %time%
%temp%
%10minavspeedinkmh%
%avdir10minute%
%baro%
%hum%
%VPsolar%
%VPuv%
%maxtemp%
%mintemp%
%highhum%
%lowhum%
%highbaro%
%lowbaro%
%todaygustspeedinkmh%
%highsolar%
%highuv%
%dayrn%
%windruntoday%
%monthtodatemaxtempcelsius%
%monthtodatemintemp%
%monthtodatemaxhum%
%monthtodateminhum%
%monthtodatemaxbaromb%
%monthtodateminbaromb%
%monthtodatemaxgustkmh%
%mrecordhighsolar%
%mrecordhighuv%
%monthraininmm%
%yrecordhightemp%
%yrecordlowtemp%
%yrecordhighhum%
%yrecordlowhum%
%yrecordhighbaro%
%yrecordlowbaro%
%yrecordwindgust%
%yrecordhighsolar%
%yrecordhighuv%
%yearlyraininmm%


%date% %time%

GET /?
T=;;;;;;&H=;;;;;;&B=;;;;;;&W=;;;;;&P=;;&S=;;;&V=;;;&U=3a;ESCAT0800000008490G;bfbbed03a7 HTTP/1.0
HOST: pool.meteoclimatic.com
User-Agent: Meteoclimatic_HTTP/1.0 (PCE FWS-20)

-- 03/04/2016 18:02:02 --
HTTP/1.0 401 Unauthorized
Date: Sun, 03 Apr 2016 18:02:02 GMT
Server: Apache/2.2.16
X-Powered-By: PHP/5.3.3-7+squeeze19
X-Error: 401 Unauthorized
Vary: Accept-Encoding
Content-Length: 21
Content-Type: text/plain
X-Cache: MISS from siberiana.patimlameteo.com
X-Cache-Lookup: MISS from siberiana.patimlameteo.com:80
Via: 1.1 siberiana.patimlameteo.com:80 (squid/2.7.STABLE9)
Connection: close

401: Unauthorized



Título: Re:No descarga plantilla
Publicado por: Secure440 en 03 de Abril del 2016, 20:24:52 pm
E echo lo que pone en el hilo del 401, modificar el archivo hosts en win7 y sigue dándome el mismo error

%date% %time%

GET /?
T=;;;;;;&H=;;;;;;&B=;;;;;;&W=;;;;;&P=;;&S=;;;&V=;;;&U=3a;ESCAT0800000008490G;412a84a25b HTTP/1.0
HOST: pool.meteoclimatic.com
User-Agent: Meteoclimatic_HTTP/1.0 (PCE FWS-20)

-- 03/04/2016 18:17:02 --
HTTP/1.0 401 Unauthorized
Date: Sun, 03 Apr 2016 18:17:02 GMT
Server: Apache/2.2.16
X-Powered-By: PHP/5.3.3-7+squeeze19
X-Error: 401 Unauthorized
Vary: Accept-Encoding
Content-Length: 21
Content-Type: text/plain
X-Cache: MISS from siberiana.patimlameteo.com
X-Cache-Lookup: MISS from siberiana.patimlameteo.com:80
Via: 1.1 siberiana.patimlameteo.com:80 (squid/2.7.STABLE9)
Connection: close

401: Unauthorized


Me corrijo, lo cambie en win7 y no en la raspi :;
de errores se aprende
Título: Re:No descarga plantilla
Publicado por: jantoni en 04 de Abril del 2016, 16:45:36 pm
Ok. Entonces aclarado el tema del error 401.

En cuanto al otro problema, es que has descargado la plantilla desde Meteoclimatic, que viene para Weather Display, y luego tendrías que haberla modificado para Weewx.

Voy a ver la wiki, a ver si ese paso estaba claro.
Título: Re:No descarga plantilla
Publicado por: jantoni en 04 de Abril del 2016, 16:56:18 pm
Bueno, creo que ahora, la wiki ha quedado un poco más clara:

http://wiki.meteoclimatic.net/wiki/WeeWX_y_Meteoclimatic
Título: Re:No descarga plantilla
Publicado por: Secure440 en 04 de Abril del 2016, 17:28:56 pm
En la wiki estaba un poco confuso y con lo fácil que seria la descarga automática de la plantilla para weewx  ::) , pero eso ya es faena del webmaster :P
Ahora a ver si sube mi estacion los datos a meteoclimatic y a esperar si hay algun error.
Si todo va bien el siguente paso es crear una web personal :;( ala a meterme en otro fregao), si es que no paro jajaja ;D
Título: Re:No descarga plantilla
Publicado por: jantoni en 04 de Abril del 2016, 17:31:34 pm
Si, le tenemos que poner una vela al webmaster para que nos incorpore el Weewx a la lista de software.

Pero bastante tiene con mantener todo en orden.

Saludos.
Título: Re:No descarga plantilla
Publicado por: Secure440 en 04 de Abril del 2016, 17:50:27 pm
Bueno, o malo, no se si es pero consulto si sube datos y me responde esto

*VER=DATA3a
 *COD=ESCAT0800000008490G
 *TK=1459783022
 *UPD=04/04/2016 15:17:02 UTC
 *TMP=0
 *HUM=0
 *WND=0
 *AZI=
 *WRUN=0
 *BAR=0
 *HUM=0
 *SUN=0
 *UVI=0
 *DHTM=0
 *DLTM=0
 *DHHM=0
 *DLHM=0
 *DHBR=0
 *DLBR=0
 *DGST=0
 *DSUN=0
 *DHUV=0
 *DPCP=0
 *MHTM=0
 *MLTM=0
 *MHHM=0
 *MLHM=0
 *MHBR=0
 *MLBR=0
 *MGST=0
 *MSUN=0
 *MHUV=0
 *MPCP=0
 *YHTM=0
 *YLTM=0
 *YHHM=0
 *YLHM=0
 *YHBR=0
 *YLBR=0
 *YGST=0
 *YSUN=0
 *YHUV=0
 *YPCP=0
 *AGENT=Meteoclimatic_HTTP/1.0 (PCE FWS-20)
 *IP=88.5.239.66
 *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 < MHBR < 1070;950 < MLBR < 1070;950 < YHBR < 1070;950 < YLBR < 1070
 *EOT*
Título: Re:No descarga plantilla
Publicado por: jantoni en 04 de Abril del 2016, 18:15:35 pm
Adjúntame (recuerda de quitar el campo SIG):

/etc/weewx/skins/Standard/meteoclimatic.html.tmpl

/var/www/weewx/meteoclimatic.html

Título: Re:No descarga plantilla
Publicado por: Secure440 en 04 de Abril del 2016, 19:08:07 pm
*VER=DATA2
*COD=ESCAT0800000008490G
*SIG=xxxxxxxxxxxxxxxxxxxxxxxxx
*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*



*VER=DATA2
*COD=ESCAT0800000008490G
*SIG=xxxxxxxxxxxxxxxxxxxxxxxxx
*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*

Lo que veo es que en la ruta:
/var/www/weewx/meteoclimatic.html
el archivo que tengo no acaba con extensión .html, si no en htm, le falta la "L"
Título: Re:No descarga plantilla
Publicado por: jantoni en 04 de Abril del 2016, 19:11:50 pm
Pero no lo has modificado....sigues con las etiquetas de Weather Display.....tienes que cambiarlas por las de Weewx (en el skin).....la otra ya se cambia sola
Título: Re:No descarga plantilla
Publicado por: jantoni en 04 de Abril del 2016, 19:14:51 pm
Cierto....es htm.

Y me imagino que en /etc/weewx/skins/Standard/skin.conf habrás añadido:

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

Algo así:

Citar
[CheetahGenerator]
    # This section is used by the generator CheetahGenerator, and specifies
    # which files are to be generated from which template.

    # Possible encodings are 'html_entities', 'utf8', or 'strict_ascii'
    encoding = html_entities

    [[SummaryByMonth]]
        # Reports that summarize "by month"
        [[[NOAA_month]]]
            encoding = strict_ascii
            template = NOAA/NOAA-YYYY-MM.txt.tmpl

    [[SummaryByYear]]
        # Reports that summarize "by year"
        [[[NOAA_year]]]
            encoding = strict_ascii
            template = NOAA/NOAA-YYYY.txt.tmpl
       
    [[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


Título: Re:No descarga plantilla
Publicado por: Secure440 en 04 de Abril del 2016, 19:28:01 pm
Pero no lo has modificado....sigues con las etiquetas de Weather Display.....tienes que cambiarlas por las de Weewx (en el skin).....la otra ya se cambia sola
Ok, a ver,e editado el archivo /meteoclimatic.html.tmpl y e cambiado su contenido por esto que esta en azul
*VER=DATA2
*COD=ESCAT0800000008490G
*SIG=xxxxxxxxxxxxxxxxxxxxxxxxx
*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*

Y si en /etc/weewx/skins/Standard/skin.conf esta añadido:

        [[[Meteoclimatic]]]
            template = meteoclimatic.htm.tmpl
y ahora si me sale la "L"
Título: Re:No descarga plantilla
Publicado por: Secure440 en 04 de Abril del 2016, 19:46:31 pm
 apla3 apla3 apla3
A ver si creáis una sección que se titule "wiki para torpes" como yo jajajajajja
Gracias Jantoni por tu santa paciencia :;
Título: Re:No descarga plantilla
Publicado por: jantoni en 04 de Abril del 2016, 20:00:55 pm
Me alegro que al final la cosa vaya bien.

De todos modos, es que el formato wiki es una agonía para hacer documentos, sobre todo para darle formato.
Título: Re:No descarga plantilla
Publicado por: Ubik en 04 de Abril del 2016, 21:40:19 pm
Si, le tenemos que poner una vela al webmaster para que nos incorpore el Weewx a la lista de software.

Pero bastante tiene con mantener todo en orden.

Saludos.

En breve, en breve, . ..  en algún sitio ya está incluida, pero , . . .  un poco más de tiempo,  , , porfa, . . ;) ;)