54
« en: 28 de Diciembre del 2015, 12:08:10 pm »
Mira que lo he intentado, pero no consigo enviar datos a meteoclimatic con la utilidad php....
No se que hare mal, el primer envio lo hace bien, pero hay se queda.
He repasado todo y nada.
Me podeis echar una mano?
Cambie a Weewx, asi que mover si procede al apartado correspondiente.
Un saludo y Felices Fiestas
Last login: Mon Dec 28 11:56:19 2015 from 192.168.1.48
root@raspberrypi:~# php /root/meteoclimatic/meteoclimatic_http.php.old-- 28/12/2015 12:05:57 --
HTTP/1.1 202 Accepted
Date: Mon, 28 Dec 2015 12:05:52 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: ESMAD2800000028792A
Query Length: 146
202: Accepted
crontab :
# /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 a las 23:57 de cada dia
57 23 * * * root /etc/weewx/backup
# Envía datos a Meteoclimatic cada 15 minutos, empezando en el minuto 2 de cada hora
1-59/15 * * * * root /root/meteoclimatic/meteoclimatic.sh
root/meteoclimatic/meteoclimatic.ini:
[Global]
Stations=ESMAD2800000028792A
DigestKey=
[ESMAD2800000028792A]
Path=/var/www/weewx/meteoclimatic.htm
Password=Mi sig logicamente no lo publico
StationVendor=PCE
StationModel=FWS-20
/root/meteoclimatic/meteoclimatic.sh
#!/bin/bash
cd /root/meteoclimatic
#Si no quieres log
php meteoclimatic_http.php.old
#Si quieres log
#php meteoclimatic_http.php.old >> /var/log/meteoclimatic.log
exit