Hola llevo dos días intentando subir datos. Todo el procedimiento lo he repetido varias veces y he leído todo lo que he visto por el foro.
Parece que sí genero la plantilla:
nano /var/www/html/weewx/ meteoclimatic.htm:
*VER=DATA2
*COD=ESCYL2400000024820A
*SIG=***********************
*UPD=10-04-2017 15:35
*TMP=22,4
*WND=6
*AZI=3
*BAR=1020,6
.........
Pero cuando ejecuto el código: root@raspberrypi:~# php /root/meteoclimatic/meteoclimatic_http.php
Me sale esto: /var/www/weewx/html/meteoclimatic.htm?
Parece que crontab está funcionando:
cd /var/log
grep meteoclimatic syslog
Apr 10 14:41:01 raspberrypi CRON[1103]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 14:46:01 raspberrypi CRON[1116]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 14:51:01 raspberrypi CRON[1144]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 14:56:01 raspberrypi CRON[1206]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 15:01:01 raspberrypi CRON[1250]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 15:06:02 raspberrypi CRON[1263]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 15:11:01 raspberrypi CRON[1339]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 15:16:01 raspberrypi CRON[1359]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 15:21:01 raspberrypi CRON[1383]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 15:26:01 raspberrypi CRON[1426]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Apr 10 15:31:01 raspberrypi CRON[1437]: (root) CMD (root /root/meteoclimatic/meteoclimatic.sh)
Y además el meteoclimatic.sh lo tengo así:
#!/bin/bash
cd /root/meteoclimatic
#Si no quieres log
#php meteoclimatic_http.php
#Si quieres log
php meteoclimatic_http.php >> /var/log/meteoclimatic.log
exit
Pero no veo el metoclimatic.log por ninguna parte:
root@raspberrypi:~# cd /var/log
root@raspberrypi:/var/log# ls
alternatives.log auth.log.1 daemon.log dmesg fsck lightdm samba user.log Xorg.0.log
apache2 boot.log daemon.log.1 dpkg.log kern.log messages syslog user.log.1 Xorg.0.log.old
apt bootstrap.log debug faillog kern.log.1 messages.1 syslog.1 weewx.log
auth.log btmp debug.1 fontconfig.log lastlog ntpstats syslog.2.gz wt
El caso es que creo que no sube la plantilla, aunque que ayer si consiguió hacerlo alguna vez. En mi estación no aparecen.
Socorro!!!!!!!