Autor Tema: Utilidad para subir datos a Meteoclimatic con Linux  (Leído 173897 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #45 en: 26 de Abril del 2016, 15:52:55 pm »
Solo hay que cambiarlos tal como se indica en la ventana anterior, verás que lo único que se modifica son esos dos campos.

Pero las etiquetas de WD y Weewx, por eso, Weewx no entiende que es %temp%

También puedes copiar esto:

http://wiki.meteoclimatic.net/wiki/Meteoclimatic.htm.tmpl

Desconectado GarciaMiguel

  • Newbie
  • *
  • Mensajes: 35
    • Ver Perfil
  • Estación: ESAND1800000018410A
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #46 en: 29 de Abril del 2016, 16:44:07 pm »
¡Muchas gracias! Ya lo tengo enviando datos a Meteoclimatic desde ayer por la tarde y funciona correctamente, sin errores. Lo que al guardar meteoclimatic.sh en home/pi/meteoclimatic/ cambié la dirección dentro del script, ya que sino lo buscaba en root/.

Gracias.

Un saludo.

Desconectado GarciaMiguel

  • Newbie
  • *
  • Mensajes: 35
    • Ver Perfil
  • Estación: ESAND1800000018410A
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #47 en: 29 de Abril del 2016, 17:37:35 pm »
¡Muchas gracias! Ya lo tengo enviando datos a Meteoclimatic desde ayer por la tarde y funciona correctamente, sin errores. Lo que al guardar meteoclimatic.sh en home/pi/meteoclimatic/ cambié la dirección dentro del script, ya que sino lo buscaba en root/.

Gracias.

Un saludo.

Me acabo de dar cuenta que en la plantilla se está rellenando con los datos de viento en m/s  :-X. En el Weewx lo tengo en:

target_unit = US

La http://IP/weewx/week.html también me lo genera en m/s.

¿Debo introducir algun parámetro más en la plantilla para realizar la conversión?

Un saludo.

Desconectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #48 en: 29 de Abril del 2016, 17:58:26 pm »
No, no hace falta más que esto:

Vete a /etc/weewx/skins/Standard

Abre skin.conf con nano

Código: [Seleccionar]
sudo nano skin.conf
Localiza [[Groups]]

Y modifícalo a tu gusto.

Para cambiar m/s por km/h tendrás que cambiar group_speed y group_speed2 y en lugar de meter_per_second y meter_per_second2 tendrás que poner km_per hour y km_per_hour2

Citar
    [[Groups]]
        # For each group of measurements, this section sets what units to
        # use for it.
        # NB: The unit is always in the singular. I.e., 'mile_per_hour',
        # NOT 'miles_per_hour'

        group_altitude     = meter                 # Options are 'foot' or 'meter'
        group_degree_day   = degree_C_day         # Options are 'degree_F_day' or 'degree_C_day'
        group_direction    = degree_compass
        group_moisture     = centibar
        group_percent      = percent
        group_pressure     = hPa                 # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
        group_radiation    = watt_per_meter_squared
        group_rain         = mm                 # Options are 'inch', 'cm', or 'mm'
        group_rainrate     = mm_per_hour        # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
        group_speed        = km_per_hour        # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
        group_speed2       = km_per_hour2       # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
        group_temperature  = degree_C             # Options are 'degree_F' or 'degree_C'
        group_uv           = uv_index
        group_volt         = volt

        # The following are used internally and should not be changed:
        group_count        = count
        group_interval     = minute
        group_time         = unix_epoch
        group_elapsed      = second

Desconectado GarciaMiguel

  • Newbie
  • *
  • Mensajes: 35
    • Ver Perfil
  • Estación: ESAND1800000018410A
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #49 en: 29 de Abril del 2016, 19:23:19 pm »
Hola.

Gracias jantoni. He hecho lo que me has dicho pero no hace caso sigue saliendo la plantilla y el index.html igual y de hecho en skin.conf me aparecen las unidades en US:

[[Groups]]
        # For each group of measurements, this section sets what units to
        # use for it.
        # NB: The unit is always in the singular. I.e., 'mile_per_hour',
        # NOT 'miles_per_hour'

        group_altitude     = foot                 # Options are 'foot' or 'meter'
        group_degree_day   = degree_F_day         # Options are 'degree_F_day' or 'degree_C_day'
        group_direction    = degree_compass
        group_moisture     = centibar
        group_percent      = percent
        group_pressure     = inHg                 # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
        group_radiation    = watt_per_meter_squared
        group_rain         = inch                 # Options are 'inch', 'cm', or 'mm'
        group_rainrate     = inch_per_hour        # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
        group_speed        = km_per_hour        # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
        group_speed2       = km_per_hour2       # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
        group_temperature  = degree_F             # Options are 'degree_F' or 'degree_C'


Es como si no hiciera caso de skin.conf.

Entonces he deshecho éste cambio y he ido a modificar el archivo weewx.conf, en el apartado StdReport, y allí las unidades son exactamente las que me salen en las plantillas (meteoclimatic.htm e index.html) pero si modifico aquí meter_per_hour por km_per_hour entonces no me genera las citadas plantillas (meteoclimatic.htm e index.html), hay algo que le provoca confusión:

[StdReport]

    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins

    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = /var/www/weewx

    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding

    # Each of the following subsections defines a report that will be run.

    [[StandardReport]]
        # See the customizing guide to change the units, plot types and line
        # colors, modify the fonts, display additional sensor data, and other
        # customizations. Many of those changes can be made here by overriding
        # parameters, or by modifying templates within the skin itself.

        # The StandardReport uses the 'Standard' skin, which contains the
        # images, templates and plots for the report.
        skin = Standard
        [[[Units]]]
            [[[[Groups]]]]
                group_altitude = meter
                group_speed2 = meter_per_second2
                group_pressure = mbar
                group_rain = mm
                group_rainrate = mm_per_hour
                group_temperature = degree_C
                group_degree_day = degree_C_day
                group_speed = meter_per_second


Por tanto, si lo modifico en skin.conf no me hace caso, y si lo modifico en weewx.conf no me genera las plantillas.

Sigo investigando...

Desconectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #50 en: 29 de Abril del 2016, 19:36:52 pm »
Solo te diré que estos son mis parámetros:

weewx.conf

Citar
    [[StandardReport]]
        # See the customizing guide to change the units, plot types and line
        # colors, modify the fonts, display additional sensor data, and other
        # customizations.  Many of those changes can be made here by overriding
        # parameters, or by modifying templates within the skin itself.
       
        # The StandardReport uses the 'Standard' skin, which contains the
        # images, templates and plots for the report.
        skin = Standard
   
#    #[[[Units]]]
    #    [[[[Groups]]]]
    #        group_altitude = meter
    #        group_speed2 = meter_per_second2
    #        group_pressure = mbar
    #        group_rain = mm
    #        group_rainrate = mm_per_hour
    #        group_temperature = degree_C
    #        group_degree_day = degree_C_day
    #        group_speed = meter_per_second
   


skin.conf
Citar
[Units]
    # This section is for managing the selection and formatting of units.
   
    [[Groups]]
        # For each group of measurements, this section sets what units to
        # use for it.
        # NB: The unit is always in the singular. I.e., 'mile_per_hour',
        # NOT 'miles_per_hour'

        group_altitude     = meter                 # Options are 'foot' or 'meter'
        group_degree_day   = degree_C_day         # Options are 'degree_F_day' or 'degree_C_day'
        group_direction    = degree_compass
        group_moisture     = centibar
        group_percent      = percent
        group_pressure     = hPa                 # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'
        group_radiation    = watt_per_meter_squared
        group_rain         = mm                 # Options are 'inch', 'cm', or 'mm'
        group_rainrate     = mm_per_hour        # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
        group_speed        = km_per_hour        # Options are 'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
        group_speed2       = km_per_hour2       # Options are 'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
        group_temperature  = degree_C             # Options are 'degree_F' or 'degree_C'
        group_uv           = uv_index
        group_volt         = volt

        # The following are used internally and should not be changed:
        group_count        = count
        group_interval     = minute
        group_time         = unix_epoch
        group_elapsed      = second

Recuerda que si modificas weewx.conf tienes que recargar los parámetros con restart o reload. Las modificaciones de skin.conf toman efecto en la siguiente generación, aunque puedes adelantar con el comando wee_reports

Saludos.

Desconectado GarciaMiguel

  • Newbie
  • *
  • Mensajes: 35
    • Ver Perfil
  • Estación: ESAND1800000018410A
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #51 en: 29 de Abril del 2016, 20:11:45 pm »
Hola,

Ya está funcionando!! Muchas gracias, no había recargado después de modificar weewx.conf, modificando skin.conf no me hace caso, cosa que no entiendo.

Gracias y un saludo.

Postdata: aunque no envía decimales. Sólo números enteros. Trabajo para mañana ya... :( (SOLUCIONADO: modificando el scrpt meteoclimatic.sh indicando meteoclimatic_http.php en lugar de meteoclimatic_http.php.old)
« Última modificación: 01 de Mayo del 2016, 16:25:42 pm por GarciaMiguel »

Desconectado errea

  • Full Member
  • ***
  • Mensajes: 118
    • Ver Perfil
    • Banaries - Huesca
  • Estación: ESARA2200000022194A - Huesca - Banariés
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #52 en: 08 de Diciembre del 2016, 16:46:45 pm »
Funcionando 100%, con mi Mele A2000.  Duda que tengo, tenía hecho un script por mi cuenta para actualizar una página de internet, para que lo cogiese de allí.

Vaya por hablar ahora me dice que no estoy autorizado. Ahora si.... bueno lo dejo en observación.

root@mele:/home/user/script# php meteoclimatic_http.php.old
-- 08/12/2016 16:24:27 --
HTTP/1.1 202 Accepted
Date: Thu, 08 Dec 2016 16:24:22 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: ESARA5000000050600B
Query Length: 138
202: Accepted


root@mele:/home/user/script#
« Última modificación: 08 de Diciembre del 2016, 17:26:26 pm por errea »

Desconectado meteozgz

  • Newbie
  • *
  • Mensajes: 16
    • Ver Perfil
  • Estación: ESARA5000000050014B
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #53 en: 25 de Enero del 2017, 01:26:13 am »
Buenas a todos,

Tengo un problema para copiar la plantilla que me descargo de meteoclimatic (y en general, para cualquier cosa). El sistema me dice: 'Error al mover el archivo: Permiso denegado'. He intentado cambiar los permisos, ya que pone que cambiar el contenido solo para administrador, y tampoco me deja cambiarlo para cualquiera.

¿sabéis cuál puede ser el problema?

También he de decir que he hecho antes el Linux-PHP que Copiar la plantilla descargada en la carpeta de Skins/Standard.


Muchas gracias

Desconectado meteozgz

  • Newbie
  • *
  • Mensajes: 16
    • Ver Perfil
  • Estación: ESARA5000000050014B
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #54 en: 25 de Enero del 2017, 01:29:40 am »
Buenas a todos,

Tengo un problema para copiar la plantilla que me descargo de meteoclimatic (y en general, para cualquier cosa). El sistema me dice: 'Error al mover el archivo: Permiso denegado'. He intentado cambiar los permisos, ya que pone que cambiar el contenido solo para administrador, y tampoco me deja cambiarlo para cualquiera.

¿sabéis cuál puede ser el problema?

También he de decir que he hecho antes el Linux-PHP que Copiar la plantilla descargada en la carpeta de Skins/Standard.


Muchas gracias

Solucionado... He cambiado los permisos a través de la terminal...

Desconectado jantoni

  • Hero Member
  • *****
  • Mensajes: 3.754
    • Ver Perfil
  • Estación: ESMAD2800000028522A
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #55 en: 25 de Enero del 2017, 21:46:52 pm »
Si, el tema de los permisos es uno de los escollos a "sufrir" por los usuarios de plataforma Microsoft.

Pero nada que no se soluciones en 20 o 30 años de práctica ;D ;D ;D ;D

Desconectado burgati

  • Full Member
  • ***
  • Mensajes: 246
    • Ver Perfil
  • Estación: "Burgos-Plaza san Agustín- ESCYL0900000009001D"
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #56 en: 07 de Junio del 2017, 08:57:08 am »
Hola, estoy intentando poner a funcionar la utilidad de subida de datos de linux pero no lo acabo de conseguir, creo que es por algún pequeño detalle de ubicacion de archivos o plantilla en los diferentes directorios...os paso como lo tengo configurado todo vía imagen para a ver si os da al ojo algo:

1º) he descargado la utilidad pra el envío de datos y los archivos les he descomprimido y llevado a /home/pi:

Sin título by david nuño, en Flickr

2º) he modificado con sudo nano meteoclimatic.ini, y lo he dejado pues con el codigo de mi estacion y mi sig, así:

[Global]
Stations=ESCYL0900000009001D
DigestKey=

[ESCYL0900000009001D]
Path=/var/www/weewx/meteoclimatic.htm
Password=b2...........................................e7
StationVendor=Davis
StationModel=Vantage Vue


3º) he hecho sudo nano meteoclimatic.sh y lo he dejado así, creo que igual que en el hilo:

#!/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


4º) sudo nano etc /contrab, me queda como sigue:

# /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
#57 23   * * *   root   /etc/weewx/backup

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



Luego en /var/www/weewx/....... tengo la plantilla; y esta tal cual copiada de la pagina de meteoclimatic cambiando mi cod y mi sig:

*VER=DATA2
*COD=ESCYL0900000009001D
*SIG=b.....................................e7
*UPD=$current.dateTime.format("%d-%m-%Y %H:%M")
*TMP=$current.outTemp.formatted
*WND=$current.windSpeed.formatted
*AZI=$current.windDir.formatted
*BAR=$current.barometer.formatted
*HUM=$current.outHumidity.formatted
*SUN=$current.radiation.formatted
*UVI=$current.UV.formatted
*DHTM=$day.outTemp.max.formatted
*DLTM=$day.outTemp.min.formatted
*DHHM=$day.outHumidity.max.formatted
*DLHM=$day.outHumidity.min.formatted
*DHBR=$day.barometer.max.formatted
*DLBR=$day.barometer.min.formatted
*DGST=$day.windGust.max.formatted
*DSUN=$day.radiation.max.formatted
*DHUV=$day.UV.max.formatted
*DPCP=$day.rain.sum.formatted
*WRUN=
*MHTM=$month.outTemp.max.formatted
*MLTM=$month.outTemp.min.formatted
*MHHM=$month.outHumidity.max.formatted
*MLHM=$month.outHumidity.min.formatted
*MHBR=$month.barometer.max.formatted
*MLBR=$month.barometer.min.formatted
*MGST=$month.windGust.max.formatted
*MSUN=$month.radiation.max.formatted
*MHUV=$month.UV.max.formatted
*MPCP=$month.rain.sum.formatted
*YHTM=$year.outTemp.max.formatted
*YLTM=$year.outTemp.min.formatted
*YHHM=$year.outHumidity.max.formatted
*YLHM=$year.outHumidity.min.formatted
*YHBR=$year.barometer.max.formatted
*YLBR=$year.barometer.min.formatted
*YGST=$year.windGust.max.formatted
*YSUN=$year.radiation.max.formatted
*YHUV=$year.UV.max.formatted
*YPCP=$year.rain.sum.formatted
*EOT*



la plantilla esta debería estar ahí o en etc/weewx/skins/Standard ????


Por último dejo los últimos reportes del log de ayer noche:

Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Using configuration file /etc/weewx/weewx.conf
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Loading station type Simulator (weewx.drivers.simulator)
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: StdConvert target unit is 0x10
Jun  7 00:57:53 raspberrypi weewx[2147]: 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
Jun  7 00:57:53 raspberrypi weewx[2147]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Archive will use data binding wx_binding
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Record generation will be attempted in 'hardware'
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Using archive interval of 300 seconds (specified in weewx configuration)
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Jun  7 00:57:53 raspberrypi weewx[2147]: manager: Starting backfill of daily summaries
Jun  7 00:57:53 raspberrypi weewx[2147]: restx: StationRegistry: Registration not requested.
Jun  7 00:57:53 raspberrypi weewx[2147]: restx: Wunderground: Posting not enabled.
Jun  7 00:57:53 raspberrypi weewx[2147]: restx: PWSweather: Posting not enabled.
Jun  7 00:57:53 raspberrypi weewx[2147]: restx: CWOP: Posting not enabled.
Jun  7 00:57:53 raspberrypi weewx[2147]: restx: WOW: Posting not enabled.
Jun  7 00:57:53 raspberrypi weewx[2147]: restx: AWEKAS: Posting not enabled.
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Starting up weewx version 3.7.1
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Clock error is -0.26 seconds (positive is fast)
Jun  7 00:57:53 raspberrypi weewx[2147]: engine: Starting main packet loop.
Jun  7 01:00:15 raspberrypi weewx[2147]: engine: Caught unrecoverable exception in engine:
Jun  7 01:00:15 raspberrypi weewx[2147]:     ****  Unit system of incoming record (0x10) differs from 'archive' table in 'weewx.sdb' database (0x01)
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****  Traceback (most recent call last):
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/engine.py", line 871, in main
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      engine.run()
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/engine.py", line 201, in run
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/engine.py", line 223, in dispatchEvent
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      callback(event)
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/engine.py", line 569, in post_loop
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      self._software_catchup()
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/engine.py", line 633, in _software_catchup
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD, record=record, origin='software'))
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/engine.py", line 223, in dispatchEvent
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      callback(event)
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/engine.py", line 588, in new_archive_record
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      dbmanager.addRecord(event.record, accumulator=self.old_accumulator)
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/manager.py", line 242, in addRecord
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      self._updateHiLo(accumulator, cursor)
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/manager.py", line 1200, in _updateHiLo
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      self._set_day_summary(_stats_dict, accumulator.timespan.stop, cursor)
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/manager.py", line 1515, in _set_day_summary
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      self._check_unit_system(day_accum.unit_system)
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****    File "/usr/share/weewx/weewx/manager.py", line 656, in _check_unit_system
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****      self.std_unit_system))
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****  UnitError: Unit system of incoming record (0x10) differs from 'archive' table in 'weewx.sdb' database (0x01)
Jun  7 01:00:16 raspberrypi weewx[2147]:     ****  Exiting.



A ver si me podéis echar un cable, gracias






Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #57 en: 07 de Junio del 2017, 12:51:40 pm »
Hola burgati

En meteoclimatic.ini debes de poner dónde tienes la plantilla meteoclimatic.htm. Si la ruta que le tienes puesta es como pones Path=/var/www/weewx/meteoclimatic.htm la plantilla la debes de tener en esa carpeta.

En segundo lugar si no se envía la plantilla se crea el log para ver qué es lo que puede fallar. Para ello edita el archivo meteoclimatic.sh para que quede así:

#!/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


o sea comentando la línea que ejecuta el script sin log y descomentando la que lo crea.

Entonces ya podrás ir a /var/log/meteoclimatic.log a ver qué es lo que puede fallar.

« Última modificación: 07 de Junio del 2017, 13:07:32 pm por jmviper »


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es

Desconectado burgati

  • Full Member
  • ***
  • Mensajes: 246
    • Ver Perfil
  • Estación: "Burgos-Plaza san Agustín- ESCYL0900000009001D"
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #58 en: 07 de Junio del 2017, 15:24:01 pm »


#!/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


o sea comentando la línea que ejecuta el script sin log y descomentando la que lo crea.

Entonces ya podrás ir a /var/log/meteoclimatic.log a ver qué es lo que puede fallar.

hola.....pues a que te refieres en lo de comentar o descomentar, quitar la almuhadilla a algo????: en princio yo lo tenía puesto tal cual lo has puesto tu en este post:

f by david nuño, en Flickr

Soy nuevo en esto de linux y hay muchas cosas que se me escapan

Desconectado jmviper

  • Investigación
  • Hero Member
  • ******
  • Mensajes: 4.403
  • "Vortex Complex"
    • Ver Perfil
    • www.meteoarchena.es
  • Estación: Archena - ESMUR3000000030600B
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #59 en: 07 de Junio del 2017, 15:57:18 pm »
Las líneas comentadas son las que empiezan por la almohadilla #. Esas líneas no son ejecutadas.

Fíjate en lo que te he puesto, la línea php meteoclimatic_http.php.old >> /var/log/meteoclimatic.log no está comentada al principio y se ejecuta escribiendo en el log.

La anterior línea de #php meteoclimatic_http.php.old es la que está comentada para que no se ejecute ya que no crea el log.


Archena, Valle de Ricote (Murcia). 120 msnm. 19.622 hab.
Davis Vantage Pro2 Plus

www.meteoarchena.es