Software > Software de Meteoclimatic

Problema subiendo datos a meteoclimatic

(1/2) > >>

jmfernandezz:
Hola,
Me he dado cuenta que llevo un par de dias que no subo datos a Meteoclimatic.
Uso Weewx y la utilidad de Linux.
El caso es que los ultimos datos fueron subidos el pasado dia 08/04/2016 11:32:02 UTC.
He mirado el log de meteoclimatic.sh y hay algo extraño:
_____________________________________________________
-- 08/04/2016 11:32:07 --
HTTP/1.1 202 Accepted
Date: Fri, 08 Apr 2016 11:32:02 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: ESAND2900000029700D
Query Length: 143
202: Accepted

DATA2
ESAND2900000029700D
cfbf35caf46
_____________________________________________________
La cuestión es que no ha terminado es escribir completamente el log. Por ejemplo, en el registro anterior, el log incluye todos los datos junto con las medidas de la consola.

La verdad, no se por donde empezar para ver donde está el problema. Adjunto el log de meteoclimatic.
¿Me podéis ayudar?
Saludos,

jmfernandezz:
Algunas prueba.

He ejecutado el comando "grep meteoclimatic syslog" y el ultimo registro fue el 8 de abril, precisamente el último dia que dejo de subir datos a Meteoclimatic.

Tambien he probado ls -la /root:

pi@raspberrypi ~ $ sudo ls -la /root
total 56
drwx------  8 root root 4096 mar 27 17:32 .
drwxr-xr-x 24 root root 4096 ene 30  2015 ..
-rw-------  1 root root 6693 abr 10 00:06 .bash_history
drwx------  3 root root 4096 ago 25  2014 .cache
drwx------  3 root root 4096 ago 25  2014 .config
-rw-------  1 root root  684 mar 27 18:02 .joe_state
-rw-------  1 root root   64 may  1  2015 .lesshst
drwx------  3 root root 4096 ago 25  2014 .local
drwxr-xr-x  2 root root 4096 mar 27 17:32 meteoclimatic
-rw-------  1 root root   32 abr  9 13:42 .nano_history
-rw-------  1 root root   28 mar  3  2015 .sqlite_history
drwx------  2 root root 4096 nov  5  2014 .ssh
drwxr-xr-x  2 root root 4096 oct  7  2014 .wicd

Y tambien ls -la /root/meteoclimatic:
pi@raspberrypi ~ $ sudo ls -la /root/meteoclimatic
total 40
drwxr-xr-x 2 root root  4096 mar 27 17:32 .
drwx------ 8 root root  4096 mar 27 17:32 ..
-rw-r--r-- 1 root root 19626 oct 11 10:26 meteoclimatic_http.php
-rw-r--r-- 1 root root   191 abr  8 13:32 meteoclimatic.ini
-rw-r--r-- 1 root root   320 oct 11 10:26 meteoclimatic.log
-rwxr-xr-x 1 root root   163 mar 28 07:53 meteoclimatic.sh

Mi crontab es el siguiente (creo que va bien ya que la copia de seguridad la hace bien):
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

# Copia de seguridad de Weewx en disco de red
00 06   * * *   root    /home/pi/JMF/backupBD

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

jmfernandezz:
Tambien he ejecutado "php meteoclimatic_http.php" y el resultado es el siguiente (por cierto, estos datos si se han subido a Meteclimatic):

DATA2
ESAND2900000029700D
cfb---------------------a901
10-04-2016 01:34
14.4
7
292
1012.8
53
N/A
N/A
15.0
14.4
56
52
1013.5
1012.8
15
N/A
N/A
0.0

21.6
8.8
96
15
1019.9
1005.4
54
N/A
N/A
33.6
25.0
4.7
96
15
1036.5
1004.0
64
N/A
N/A
64.1


10-04-2016 01:34

GET /?
T=2K;2Q;2K;3U;1Q;42;l&H=r;u;q;1Y;F;1Y;F&B=2dM;2dT;2dM;2eV;2cA;2hB;2bw&W=4i;18;;2Q;8i;AK&P=;5Q;AL&S=;;;&V=;;;&U=3a;ESAND2900000029700D;76f811c6d2 HTTP/1.0
HOST: pool.meteoclimatic.com
User-Agent: Meteoclimatic_HTTP/1.0 (PCE FWS-20)

-- 09/04/2016 23:41:38 --
HTTP/1.1 202 Accepted
Date: Sat, 09 Apr 2016 23:41:32 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: ESAND2900000029700D
Query Length: 144
202: Accepted

jantoni:
Lo primero es ver el log de la utilidad linux.

jantoni:
Nos hemos cruzado.....veo que estás subiendo datos a meteoclimatic.

¿has modificado el fichero /etc/hosts?

En principio, todo está funcionando bien......las cosas, con esto, no funcionan ahora sí, luego no......salvo lo del error 401

Saludos.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

Ir a la versión completa