Nada lo volví a reinstalar todo y ya lo tengo todo correcto.......el problema que tengo ahora es el de siempre, alojo los archivos de la utilidad de subida en /home/pi y la plantilla en /etc/weewx/skins/Standard........modifico meteoclimatic. sh y dejo esto
#!/bin/bash
cd /home/pi
#Si no quieres log
php meteoclimatic_http.php.old
#Si quieres log
php meteoclimatic_http.php.old >> /var/log/meteoclimatic.log
exit
en meteoclimatic.ini pongo el codigo de mi estacion y el SIG donde corresponde
Añado esta linea al crontab:
1-59/5 * * * * root /home/pi/meteoclimatic.sh
La plantilla se me actualiza correctamente en : /var/www/html/weewx
el weewx.log todo correcto tambien:
Oct 9 12:36:18 raspberrypi weewx[377]: engine: Initializing weewx version 3.7.1
Oct 9 12:36:18 raspberrypi weewx[377]: engine: Using Python 2.7.13 (default, Jan 19 2017, 14:48:08) #012[GCC 6.3.0 20170124]
Oct 9 12:36:18 raspberrypi weewx[377]: engine: Platform Linux-4.9.41-v7+-armv7l-with-debian-9.1
Oct 9 12:36:18 raspberrypi weewx[377]: engine: Locale is 'en_GB.UTF-8'
Oct 9 12:36:18 raspberrypi weewx[377]: engine: pid file is /var/run/weewx.pid
Oct 9 12:36:18 raspberrypi weewx[304]: Starting weewx weather system: weewx.
Oct 9 12:36:18 raspberrypi weewx[447]: engine: Using configuration file /etc/weewx/weewx.conf
Oct 9 12:36:18 raspberrypi weewx[447]: engine: Loading station type Vantage (weewx.drivers.vantage)
Oct 9 12:36:18 raspberrypi weewx[447]: import of driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0' (<class 'serial.serialutil.SerialException'>)
Oct 9 12:36:18 raspberrypi weewx[447]: engine: Unable to load driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Oct 9 12:36:18 raspberrypi weewx[447]: **** Exiting...
Oct 9 12:38:09 raspberrypi weewx[1048]: Stopping weewx weather system: weewx not running....
Oct 9 12:43:45 raspberrypi weewx[1488]: engine: Initializing weewx version 3.7.1
Oct 9 12:43:45 raspberrypi weewx[1488]: engine: Using Python 2.7.13 (default, Jan 19 2017, 14:48:08) #012[GCC 6.3.0 20170124]
Oct 9 12:43:45 raspberrypi weewx[1488]: engine: Platform Linux-4.9.41-v7+-armv7l-with-debian-9.1
Oct 9 12:43:45 raspberrypi weewx[1488]: engine: Locale is 'en_GB.UTF-8'
Oct 9 12:43:45 raspberrypi weewx[1488]: engine: pid file is /var/run/weewx.pid
Oct 9 12:43:45 raspberrypi weewx[1492]: engine: Using configuration file /etc/weewx/weewx.conf
Oct 9 12:43:45 raspberrypi weewx[1492]: engine: Loading station type Vantage (weewx.drivers.vantage)
Oct 9 12:43:45 raspberrypi weewx[1477]: Starting weewx weather system: weewx.
Oct 9 12:43:45 raspberrypi weewx[1492]: engine: StdConvert target unit is 0x1
Oct 9 12:43:46 raspberrypi weewx[1492]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Oct 9 12:43:46 raspberrypi weewx[1492]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Oct 9 12:43:46 raspberrypi weewx[1492]: engine: Archive will use data binding wx_binding
Oct 9 12:43:46 raspberrypi weewx[1492]: engine: Record generation will be attempted in 'hardware'
Oct 9 12:43:46 raspberrypi weewx[1492]: engine: Using archive interval of 300 seconds (specified by hardware)
Oct 9 12:43:46 raspberrypi weewx[1492]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Oct 9 12:43:46 raspberrypi weewx[1492]: manager: Starting backfill of daily summaries
Oct 9 12:43:46 raspberrypi weewx[1492]: restx: StationRegistry: Registration not requested.
Oct 9 12:43:46 raspberrypi weewx[1492]: restx: Wunderground: Posting not enabled.
Oct 9 12:43:46 raspberrypi weewx[1492]: restx: PWSweather: Posting not enabled.
Oct 9 12:43:46 raspberrypi weewx[1492]: restx: CWOP: Posting not enabled.
Oct 9 12:43:46 raspberrypi weewx[1492]: restx: WOW: Posting not enabled.
Oct 9 12:43:46 raspberrypi weewx[1492]: restx: AWEKAS: Posting not enabled.
Oct 9 12:43:46 raspberrypi weewx[1492]: engine: Starting up weewx version 3.7.1
Oct 9 12:43:46 raspberrypi weewx[1492]: engine: Clock error is -51.41 seconds (positive is fast)
Oct 9 12:43:46 raspberrypi weewx[1492]: vantage: Clock set to 2017-10-09 12:43:47 UTC (1507553027)
Oct 9 12:43:47 raspberrypi weewx[1492]: manager: Added record 2017-10-09 12:40:00 UTC (1507552800) to database 'weewx.sdb'
Oct 9 12:43:47 raspberrypi weewx[1492]: manager: Added record 2017-10-09 12:40:00 UTC (1507552800) to daily summary in 'weewx.sdb'
Oct 9 12:43:50 raspberrypi weewx[1492]: engine: Starting main packet loop.
Oct 9 12:43:53 raspberrypi weewx[1530]: Reloading weewx weather system: weewx.
Oct 9 12:43:53 raspberrypi weewx[1492]: engine: Received signal HUP. Restarting.
Oct 9 12:43:53 raspberrypi weewx[1492]: engine: Using configuration file /etc/weewx/weewx.conf
Oct 9 12:43:53 raspberrypi weewx[1492]: engine: Loading station type Vantage (weewx.drivers.vantage)
Oct 9 12:43:53 raspberrypi weewx[1492]: engine: StdConvert target unit is 0x1
Oct 9 12:43:53 raspberrypi weewx[1492]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Oct 9 12:43:53 raspberrypi weewx[1492]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Oct 9 12:43:53 raspberrypi weewx[1492]: engine: Archive will use data binding wx_binding
Oct 9 12:43:53 raspberrypi weewx[1492]: engine: Record generation will be attempted in 'hardware'
Oct 9 12:43:53 raspberrypi weewx[1492]: engine: Using archive interval of 300 seconds (specified by hardware)
Oct 9 12:43:53 raspberrypi weewx[1492]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Oct 9 12:43:53 raspberrypi weewx[1492]: manager: Starting backfill of daily summaries
Oct 9 12:43:53 raspberrypi weewx[1492]: restx: StationRegistry: Registration not requested.
Oct 9 12:43:53 raspberrypi weewx[1492]: restx: Wunderground: Posting not enabled.
Oct 9 12:43:54 raspberrypi weewx[1492]: restx: PWSweather: Posting not enabled.
Oct 9 12:43:54 raspberrypi weewx[1492]: restx: CWOP: Posting not enabled.
Oct 9 12:43:54 raspberrypi weewx[1492]: restx: WOW: Posting not enabled.
Oct 9 12:43:54 raspberrypi weewx[1492]: restx: AWEKAS: Posting not enabled.
Oct 9 12:43:54 raspberrypi weewx[1492]: engine: Starting up weewx version 3.7.1
Oct 9 12:43:54 raspberrypi weewx[1492]: engine: Clock error is 0.98 seconds (positive is fast)
Oct 9 12:43:54 raspberrypi weewx[1492]: engine: Starting main packet loop.
Oct 9 12:44:29 raspberrypi weewx[1492]: vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead
Oct 9 12:44:34 raspberrypi weewx[1492]: vantage: LOOP try #2; error: Expected to read 99 chars; got 0 instead
Oct 9 12:44:38 raspberrypi weewx[1492]: vantage: LOOP try #3; error: Expected to read 99 chars; got 0 instead
Oct 9 12:44:42 raspberrypi weewx[1492]: vantage: LOOP try #4; error: Expected to read 99 chars; got 0 instead
Oct 9 12:44:42 raspberrypi weewx[1492]: vantage: LOOP max tries (4) exceeded.
Oct 9 12:44:42 raspberrypi weewx[1492]: engine: Caught WeeWxIOError: Max tries exceeded while getting LOOP data.
Oct 9 12:44:42 raspberrypi weewx[1492]: **** Waiting 60 seconds then retrying...
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: retrying...
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: Using configuration file /etc/weewx/weewx.conf
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: Loading station type Vantage (weewx.drivers.vantage)
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: StdConvert target unit is 0x1
Oct 9 12:45:42 raspberrypi weewx[1492]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware
Oct 9 12:45:42 raspberrypi weewx[1492]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: Archive will use data binding wx_binding
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: Record generation will be attempted in 'hardware'
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: Using archive interval of 300 seconds (specified by hardware)
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Oct 9 12:45:42 raspberrypi weewx[1492]: manager: Starting backfill of daily summaries
Oct 9 12:45:42 raspberrypi weewx[1492]: restx: StationRegistry: Registration not requested.
Oct 9 12:45:42 raspberrypi weewx[1492]: restx: Wunderground: Posting not enabled.
Oct 9 12:45:42 raspberrypi weewx[1492]: restx: PWSweather: Posting not enabled.
Oct 9 12:45:42 raspberrypi weewx[1492]: restx: CWOP: Posting not enabled.
Oct 9 12:45:42 raspberrypi weewx[1492]: restx: WOW: Posting not enabled.
Oct 9 12:45:42 raspberrypi weewx[1492]: restx: AWEKAS: Posting not enabled.
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: Starting up weewx version 3.7.1
Oct 9 12:45:42 raspberrypi weewx[1492]: engine: Clock error is 0.32 seconds (positive is fast)
Oct 9 12:45:42 raspberrypi weewx[1492]: manager: Added record 2017-10-09 12:45:00 UTC (1507553100) to database 'weewx.sdb'
Oct 9 12:45:42 raspberrypi weewx[1492]: manager: Added record 2017-10-09 12:45:00 UTC (1507553100) to daily summary in 'weewx.sdb'
Oct 9 12:45:43 raspberrypi weewx[1492]: engine: Starting main packet loop.
Oct 9 12:50:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 12:50:00 UTC (1507553400) to database 'weewx.sdb'
Oct 9 12:50:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 12:50:00 UTC (1507553400) to daily summary in 'weewx.sdb'
Oct 9 12:50:26 raspberrypi weewx[1492]: cheetahgenerator: Generated 14 files for report StandardReport in 9.63 seconds
Oct 9 12:50:28 raspberrypi weewx[1492]: imagegenerator: Generated 12 images for StandardReport in 1.93 seconds
Oct 9 12:50:28 raspberrypi weewx[1492]: copygenerator: copied 9 files to /var/www/html/weewx
Oct 9 12:55:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 12:55:00 UTC (1507553700) to database 'weewx.sdb'
Oct 9 12:55:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 12:55:00 UTC (1507553700) to daily summary in 'weewx.sdb'
Oct 9 12:55:21 raspberrypi weewx[1492]: cheetahgenerator: Generated 15 files for report StandardReport in 2.29 seconds
Oct 9 12:55:22 raspberrypi weewx[1492]: imagegenerator: Generated 12 images for StandardReport in 1.22 seconds
Oct 9 12:55:22 raspberrypi weewx[1492]: copygenerator: copied 0 files to /var/www/html/weewx
Oct 9 13:00:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:00:00 UTC (1507554000) to database 'weewx.sdb'
Oct 9 13:00:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:00:00 UTC (1507554000) to daily summary in 'weewx.sdb'
Oct 9 13:00:21 raspberrypi weewx[1492]: cheetahgenerator: Generated 15 files for report StandardReport in 2.22 seconds
Oct 9 13:00:28 raspberrypi weewx[1492]: imagegenerator: Generated 24 images for StandardReport in 6.95 seconds
Oct 9 13:00:28 raspberrypi weewx[1492]: copygenerator: copied 0 files to /var/www/html/weewx
Oct 9 13:05:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:05:00 UTC (1507554300) to database 'weewx.sdb'
Oct 9 13:05:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:05:00 UTC (1507554300) to daily summary in 'weewx.sdb'
Oct 9 13:05:21 raspberrypi weewx[1492]: cheetahgenerator: Generated 15 files for report StandardReport in 2.23 seconds
Oct 9 13:05:23 raspberrypi weewx[1492]: imagegenerator: Generated 12 images for StandardReport in 2.27 seconds
Oct 9 13:05:23 raspberrypi weewx[1492]: copygenerator: copied 0 files to /var/www/html/weewx
Oct 9 13:10:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:10:00 UTC (1507554600) to database 'weewx.sdb'
Oct 9 13:10:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:10:00 UTC (1507554600) to daily summary in 'weewx.sdb'
Oct 9 13:10:21 raspberrypi weewx[1492]: cheetahgenerator: Generated 15 files for report StandardReport in 2.26 seconds
Oct 9 13:10:23 raspberrypi weewx[1492]: imagegenerator: Generated 12 images for StandardReport in 2.30 seconds
Oct 9 13:10:23 raspberrypi weewx[1492]: copygenerator: copied 0 files to /var/www/html/weewx
Oct 9 13:15:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:15:00 UTC (1507554900) to database 'weewx.sdb'
Oct 9 13:15:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:15:00 UTC (1507554900) to daily summary in 'weewx.sdb'
Oct 9 13:15:22 raspberrypi weewx[1492]: cheetahgenerator: Generated 15 files for report StandardReport in 2.16 seconds
Oct 9 13:15:24 raspberrypi weewx[1492]: imagegenerator: Generated 12 images for StandardReport in 1.79 seconds
Oct 9 13:15:24 raspberrypi weewx[1492]: copygenerator: copied 0 files to /var/www/html/weewx
Oct 9 13:20:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:20:00 UTC (1507555200) to database 'weewx.sdb'
Oct 9 13:20:16 raspberrypi weewx[1492]: manager: Added record 2017-10-09 13:20:00 UTC (1507555200) to daily summary in 'weewx.sdb'
Oct 9 13:20:21 raspberrypi weewx[1492]: cheetahgenerator: Generated 15 files for report StandardReport in 2.17 seconds
Oct 9 13:20:22 raspberrypi weewx[1492]: imagegenerator: Generated 12 images for StandardReport in 1.22 seconds
Oct 9 13:20:22 raspberrypi weewx[1492]: copygenerator: copied 0 files to /var/www/html/weewx
Pero voy al meteoclimatic.log y me aparece en blanco
no sé que es lo que hago mal