Estaciones Meteoclimatic > Envío de datos a Meteoclimatic

Utilidad para subir datos a Meteoclimatic con Linux

<< < (37/43) > >>

jmviper:
Hola macipbarrda

Revisa la ortografía, no es contrab sino crontab

macipbarrda:
Priemro que nada jmviper, darte las gracias por tu rapida respuesta y por lu realmete util que me ha sido ya que, por fin, he podido editar el crontab y al parecer si envia los datos de la plantilla

Al ejecutar CumulusMX, esto es lo que responde:

pi@raspberrypi:~/CumulusMX $ sudo mono CumulusMX.exe
Current culture: Spanish (Spain)
Serial: 74FECEABEB2DA94ECB5EBA0CD11A7137
Cumulus MX v.3.0.0 build 3050
Today.ini = data/today.ini
Last update=2019-07-25T12:50:00
Looking for Fine Offset station
Fine Offset station found
Connected to station
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
26/07/2019 8:02:06
Type Ctrl-C to terminate
Normal running

y desde el navegador puedo ver los datos de la estacion en tiempo real

he podido editar el crontab y al editarlo ahora me sale:

pi@raspberrypi:~ $ sudo crontab -l
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command
15,30,45,59 * * * * /home/pi/star_meteoclimatic_linux/meteoclimatic.sh

Al ejecutar la aplicacion de envio :

pi@raspberrypi:~ $ sudo /home/pi/star_meteoclimatic_linux/meteoclimatic.sh

DATA2
ESPVA1200000012170B

26/07/2019 08:15
20.5
0.1
S
1012.6
58
0
0.0
23.6
17.6
66
57
1014.9
1012.5
1.1


0.0
4.9
35.0
-0.6
95
12
1022.3
1012.5
11.2


2009.3
35.0
-0.6
95
12
1022.3
1012.5
11.2


2117.3


26/07/2019 08:15
PHP Warning:  A non-numeric value encountered in /home/pi/star_meteoclimatic_linux/meteoclimatic_http.php on line 86
PHP Warning:  A non-numeric value encountered in /home/pi/star_meteoclimatic_linux/meteoclimatic_http.php on line 87
PHP Warning:  A non-numeric value encountered in /home/pi/star_meteoclimatic_linux/meteoclimatic_http.php on line 88
PHP Warning:  A non-numeric value encountered in /home/pi/star_meteoclimatic_linux/meteoclimatic_http.php on line 90
PHP Warning:  A non-numeric value encountered in /home/pi/star_meteoclimatic_linux/meteoclimatic_http.php on line 91
PHP Warning:  A non-numeric value encountered in /home/pi/star_meteoclimatic_linux/meteoclimatic_http.php on line 92

GET /?
T=3J;3o;2q;5e;-6;5e;-6&H=w;14;v;1X;C;1X;C&B=2dK;2dh;2dJ;2et;2dJ;2et;2dJ&W=2u;1;n;B;1o;1o&P=;5E5;5VV&S=;;;&V=;;;&U=3a;ESPVA1200000012170B;2b42ca9c57 HTTP/1.0
HOST: pool.meteoclimatic.com
User-Agent: Meteoclimatic_HTTP/1.0 (Davis Vantage Vue)

-- 26/07/2019 06:18:50 --
HTTP/1.1 202 Accepted
Date: Fri, 26 Jul 2019 06:18:45 GMT
Server: Apache/2.4.10 (Debian)
X-Error: 202 Accepted
X-DigestKey:
Content-Length: 69
Content-Type: text/plain;charset=UTF-8

Ver: 3a - ID: ESPVA1200000012170B
Query Length: 147
202: Accepted


Estos son los envios que hace y que aparecen en los datos de la pagina web de Meteoclimatic en el apartado MIS ESTACIONES
y en el apartado Ultima actualizacion.

*VER=DATA3a
*COD=ESPVA1200000012170B
*TK=1564123502
*UPD=26/07/2019 06:45:02 UTC    #siempre aparece como 2 horas menos de la real ¿?
*TMP=23.3
*HUM=49
*WND=0.3
*AZI=135
*WRUN=5
*BAR=1012.8
*HUM=49
*SUN=0
*UVI=0
*DHTM=23.6
*DLTM=17.6
*DHHM=66
*DLHM=48
*DHBR=1014.9
*DLBR=1012.5
*DGST=1.1
*DSUN=0
*DHUV=0
*DPCP=0
*MHTM=35
*MLTM=-0.6
*MHHM=95
*MLHM=12
*MHBR=1022.3
*MLBR=1012.5
*MGST=11.2
*MSUN=0
*MHUV=0
*MPCP=2009.3
*YHTM=35
*YLTM=-0.6
*YHHM=95
*YLHM=12
*YHBR=1022.3
*YLBR=1012.5
*YGST=11.2
*YSUN=0
*YHUV=0
*YPCP=2117.3
*AGENT=Meteoclimatic_HTTP/1.0 (Davis Vantage Vue)
*IP=
*ERR=
*EOT*

 Estos datos se van actualizando, sin embargo en el apartado de la pagina web de Meteoclimatic (MIS DATOS) con mi estacion siempre esta el mismo dato:

Actualmente   Temperatura   Humedad   Barómetro   Viento
                  18.7                 63                 1     WSW 
y no se actualiza a pesar de que si lo hace los datos del envio de la plantilla
Por cierto, no se si tendra algo que ver pero en meteoclimatic.sh tengo :

#!/bin/bash
cd /home/pi/star_meteoclimatic_linux
#Si no quieres log
php meteoclimatic_http.php
#Si quieres log
#php meteoclimatic_http.php.old >> /var/log/meteoclimatic.log
exit

Mi estacion ha desaparecido del listado de estaciones de la provincia de Castellon

Si puedes echarme una mano seria fenomenal. Me he empecinado en hacer funcionar la raspberry con mi estacion y seguir mandando datos a Meteoclimatic. Gracias de nuevo



jmviper:
La plantilla está subiendo bien a meteoclimatic pero tienes tanto la precipitación mensual como la anual erróneas con más de 2000 mm cada una:

*VER=DATA3a
 *COD=ESPVA1200000012170B
 *TK=1564129802
 *UPD=26/07/2019 08:30:02 UTC
 *TMP=27.9
 *HUM=38
 *WND=1.5
 *AZI=90
 *WRUN=7.6
 *BAR=1012.6
 *HUM=38
 *SUN=0
 *UVI=0
 *DHTM=28.3
 *DLTM=17.6
 *DHHM=66
 *DLHM=36
 *DHBR=1014.9
 *DLBR=1012.5
 *DGST=3.4
 *DSUN=0
 *DHUV=0
 *DPCP=0
 *MHTM=35
 *MLTM=-0.6
 *MHHM=95
 *MLHM=12
 *MHBR=1022.3
 *MLBR=1012.5
 *MGST=11.2
 *MSUN=0
 *MHUV=0
 *MPCP=2009.3
 *YHTM=35
 *YLTM=-0.6
 *YHHM=95
 *YLHM=12
 *YHBR=1022.3
 *YLBR=1012.5
 *YGST=11.2
 *YSUN=0
 *YHUV=0
 *YPCP=2117.3
 *AGENT=Meteoclimatic_HTTP/1.0 (Davis Vantage Vue)
 *IP=
 *ERR=
 *EOT*

No te preocupes por lo de la hora de la plantilla de estar dos horas atrasada. Está en hora UTC y está bien.
También si alguna vez ves que no aparece la plantilla actualizada en meteoclimatic y sí está siendo enviada correctamente entra en el perfil de tu estación de meteoclimatic y en la parte superior te pondrá el motivo. Ahora mismo te pone 26-07-2019 05:47 UTC: Precipitación errónea. Puede que no sea por el valor anual pero sí dé el error por el mensual. De todas maneras tienes mal esos dos valores y tendrás que corregirlos.

Para corregirlos tendrás que ver dónde está ese valor erróneo en el archivo dayfile.txt de la carpeta data donde tengas instalado MX en la Raspi. Ten en cuenta que los acumulados de lluvia son la suma de las cantidades de lluvia diaria de ese archivo.


--- Citar ---
Me he empecinado en hacer funcionar la raspberry con mi estacion y seguir mandando datos a Meteoclimatic


--- Fin de la cita ---

Perfecto... con esa actitud se consiguen grandes cambios en la vida  :)

macipbarrda:
Hola jmviper. Encontrar gente como tu , dispuestos siempre a echar una mano , hace que persistamos en el intento. Los que valoramos mucho el tiempo (la gran mayoria), sabemos lo dificil que es administrarlo y el valor que tiene  dedicar algo de tu tiempo en ayudar a los demás y siempre es valorado por los que  recibimos la ayuda. Dicho esto, que considero necesario, voy a revisar esos datos aunque no tengo muy claro como editarlos. Con Cumulus resultaba muy intuitivo poder editarlos desde Cumulus o desde Cumulus Toolbox .
Tal vez sea abusar de tu generosidad si te pregunto como pasar los datos historicos desde Cumulus a CumulusMX?. Un saludo

jmviper:
Los históricos estarán en la carpeta data de tu antiguo Cumulus. Tendrás que copiar su contenido en la carpeta data de MX de la Raspi.

En cuanto a lo de editar el dayfile.txt se puede hacer con algún editor de texto como Notepad++. Mejor primero hacer copia de seguridad antes de editarlo. Tendrás que localizar la columna de la lluvia diaria a ver dónde está el fallo. Si copias el antiguo y está bien quizás se quite por sí solo.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa