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

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

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 #165 en: 02 de Enero del 2019, 18:20:00 pm »
No tenía instalado el tal Sofaskin, me lo he descargado y copiado a /etc/weewx/skins/Sofaskin le he puesto lo de la plantilla de meteoclimatic a su skin.conf y en weewx.conf he puesto en su sección:

#   This section specifies what reports, using which skins, to generate.

[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/html/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 = Sofaskin
        [[[Units]]]
            [[[[Groups]]]]
                group_altitude = meter
                group_speed2 = km_per_hour2
                group_pressure = hPa
                group_rain = mm
                group_rainrate = mm_per_hour
                group_temperature = degree_C
                group_degree_day = degree_C_day
                group_speed = km_per_hour

Tiene el mismo nombre el skin que la carpeta en la que está ??


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

www.meteoarchena.es

Desconectado ogalvan

  • Newbie
  • *
  • Mensajes: 29
    • Ver Perfil
  • Estación: Parque Oriente Zaragoza ESARA5000000050014C
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #166 en: 02 de Enero del 2019, 18:55:17 pm »
Lo tengo así como dices.

¿donde se puede ver el log de CheetahGenerator ?

Estaba probando con el Skin de Neowx, y es lo mismo, bien generados los ficheros de la web y de meteoclimatic nada.


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 #167 en: 02 de Enero del 2019, 20:24:00 pm »
Si has instalado weewx con el script de jantoni lo verás en /var/log/weewx.log, si no lo verás en syslog. Como es muy grande deberías de verlo con sudo tail -50 /var/log/syslog

De todas formas ya te digo que con esa última configuración que he puesto a mí me genera el sofaskin y la plantilla de meteoclimatic sin problemas.

Si no te funciona copia y pega esa sección [StdReport] del weewx.conf que he puesto además de qué archivos tienes en /etc/weewx/skins/Sofaskin y en /var/www/HTML/weewx


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

www.meteoarchena.es

Desconectado ogalvan

  • Newbie
  • *
  • Mensajes: 29
    • Ver Perfil
  • Estación: Parque Oriente Zaragoza ESARA5000000050014C
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #168 en: 02 de Enero del 2019, 20:46:35 pm »
Estoy ahora usando el Skin neowx


  GNU nano 2.7.4                                                                                       Fichero: /etc/weewx/weewx.conf                                                                                                   

##############################################################################

#   This section specifies what reports, using which skins, to generate.

[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/html/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 = neowx
        [[[Units]]]
            [[[[Groups]]]]
                group_altitude = meter
                group_speed2 = km_per_hour2
                group_pressure = hPa
                group_rain = mm
                group_rainrate = mm_per_hour
                group_temperature = degree_C
                group_degree_day = degree_C_day
                group_speed = km_per_hour

    [[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp

        # If you wish to use FTP, uncomment and fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        #user = replace with the ftp username
        #password = replace with the ftp password
        #server = replace with the ftp server name, e.g, www.threefools.org
        #path = replace with the ftp destination directory (e.g., /weather)

        user = xxxxxxxxxxxxx
        password = xxxxxxxxxxxxxxx
        server = xxxxxxxxxxxxxx
        path = /

        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = false

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        HTML_ROOT = /var/www/html/weewx

        # Most FTP servers use port 21
        port = 21
----------------------------------------------------------------------------------------

pi@weewx:/etc/weewx/skins/neowx $ ls

archive.html.tmpl  main.min.js     meteoclimatic.htm.tmpl  rss.xml.tmpl  weather-icons
img                manifest.json   month.html.tmpl         skin.conf     week.html.tmpl
index.html.tmpl    maps.html.tmpl  NOAA                    style.css     year.html.tmpl

----------------------------------------------------------------------------------------

pi@weewx:/etc/weewx/skins/neowx $ sudo nano skin.conf

  GNU nano 2.7.4                                  Fichero: skin.conf                                               


[CheetahGenerator]
    # This section is used by the generator CheetahGenerator, and specifies
    # which files are to be generated from which template.

    # Possible encodings are 'html_entities', 'utf8', or 'strict_ascii'
    encoding = utf8

    [[SummaryByMonth]]
        # Reports that summarize "by month"
        [[[NOAA_month]]]
            encoding = strict_ascii
            template = NOAA/NOAA-YYYY-MM.txt.tmpl

    [[SummaryByYear]]
        # Reports that summarize "by year"
        [[[NOAA_year]]]
            encoding = strict_ascii
            template = NOAA/NOAA-YYYY.txt.tmpl

    [[ToDate]]
        # Reports that show statistics "to date", such as day-to-date,
        # week-to-date, month-to-date, etc.
        [[[day]]]
            template = index.html.tmpl

        [[[week]]]
            template = week.html.tmpl

        [[[month]]]
            template = month.html.tmpl

        [[[year]]]
            template = year.html.tmpl

        [[[RSS]]]
            template = rss.xml.tmpl

        [[[archive_overview]]]
            template = archive.html.tmpl

        [[[maps]]]
            template = maps.html.tmpl

        [[[Meteoclimatic]]]
            template = meteoclimatic.htm.tmpl

###############################################################################


----------------------------------------------------------------------------------------

pi@weewx:/etc/weewx/skins/neowx $ sudo nano meteoclimatic.htm.tmpl

  GNU nano 2.7.4                            Fichero: meteoclimatic.htm.tmpl                                       

*VER=DATA2
*COD=ESARA5000000050014C
*SIG=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*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*


Yo creo que esto está bien. Los ficheros para la web se generan bien pero la plantilla de meteoclimatic no; será una tontería pero no encuentro el fallo.

¿Algún problema de permisos?
¿La codificación UTF8 o ....?

No soy nada experto en Linux, sigo peleando...
« Última modificación: 02 de Enero del 2019, 20:57:50 pm por ogalvan »

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 #169 en: 02 de Enero del 2019, 20:58:45 pm »
Qué sale con ls -l /var/www/HTML/weewx ?


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

www.meteoarchena.es

Desconectado ogalvan

  • Newbie
  • *
  • Mensajes: 29
    • Ver Perfil
  • Estación: Parque Oriente Zaragoza ESARA5000000050014C
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #170 en: 02 de Enero del 2019, 21:09:07 pm »
Qué sale con ls -l /var/www/HTML/weewx ?

pi@weewx:~ $ ls -l /var/www/html/weewx
total 3308
-rw-r--r-- 1 root root   4215 ene  2 12:45 404.html
-rw-r--r-- 1 root root   6780 ene  2 20:05 archive.html
drwxr-xr-x 3 root root   4096 ago 23 21:34 css
-rw-r--r-- 1 root root  66043 ene  2 20:05 daybarometer.png
-rw-r--r-- 1 root root  44206 ene  2 20:05 dayhumidity.png
-rw-r--r-- 1 root root  55563 ene  2 20:05 dayinside.png
-rw-r--r-- 1 root root   2945 ene  2 15:05 daypond.png
-rw-r--r-- 1 root root  22944 ene  2 20:05 dayradiation.png
-rw-r--r-- 1 root root  30289 ene  2 20:05 dayrain.png
-rw-r--r-- 1 root root  75767 ene  2 20:05 dayrx.png
-rw-r--r-- 1 root root  70278 ene  2 20:05 daytempchill.png
-rw-r--r-- 1 root root  74010 ene  2 20:05 daytempdew.png
-rw-r--r-- 1 root root  21164 ene  2 20:05 dayuv.png
-rw-r--r-- 1 root root  72703 ene  2 20:05 daywinddir.png
-rw-r--r-- 1 root root 131716 ene  2 20:05 daywind.png
-rw-r--r-- 1 root root 186194 ene  2 20:05 daywindvec.png
-rw-r--r-- 1 root root   1150 ago 23 21:34 favicon.ico
-rw-r--r-- 1 root root   9481 ene  2 20:05 #FTP.last
drwxr-xr-x 3 root root   4096 ene  2 15:11 img
-rw-r--r-- 1 root root  17176 ene  2 20:05 index.html
drwxr-xr-x 2 root root   4096 ago 23 21:34 js
-rw-r--r-- 1 root root   4069 ago 23 21:34 LICENSE.txt
-rw-r--r-- 1 root root 192576 ene  2 20:05 main.min.js
-rw-r--r-- 1 root root   5838 ene  2 20:05 maps.html
-rw-r--r-- 1 root root  56307 ene  2 18:01 monthbarometer.png
-rw-r--r-- 1 root root  18142 ene  2 20:05 month.html
-rw-r--r-- 1 root root  52840 ene  2 18:01 monthhumidity.png
-rw-r--r-- 1 root root  67790 ene  2 18:01 monthinside.png
-rw-r--r-- 1 root root   2918 ene  2 15:00 monthpond.png
-rw-r--r-- 1 root root  23176 ene  2 18:01 monthradiation.png
-rw-r--r-- 1 root root  27503 ene  2 18:01 monthrain.png
-rw-r--r-- 1 root root  49023 ene  2 18:01 monthrx.png
-rw-r--r-- 1 root root  63161 ene  2 18:01 monthtempchill.png
-rw-r--r-- 1 root root  75569 ene  2 18:01 monthtempdew.png
-rw-r--r-- 1 root root  21421 ene  2 18:01 monthuv.png
-rw-r--r-- 1 root root  53203 ene  2 18:01 monthwinddir.png
-rw-r--r-- 1 root root  66394 ene  2 18:01 monthwind.png
-rw-r--r-- 1 root root  51289 ene  2 18:01 monthwindvec.png
drwxr-xr-x 2 root root   4096 ene  2 20:05 NOAA
-rw-r--r-- 1 root root     91 ago 23 21:34 README.md
-rw-r--r-- 1 root root     42 ene  2 12:45 robots.txt
drwxr-xr-x 2 root root   4096 ene  2 15:05 RSS
-rw-r--r-- 1 root root   6150 ene  2 20:05 rss.xml
-rw-r--r-- 1 root root 421911 ago 23 21:34 Screenshot.png
-rw-r--r-- 1 root root  59306 ene  2 20:05 style.css
-rw-r--r-- 1 root root  21095 ene  2 12:45 touch-icon.png
drwxr-xr-x 4 root root   4096 ene  2 15:11 weather-icons
-rw-r--r-- 1 root root  81912 ene  2 20:00 weekbarometer.png
-rw-r--r-- 1 root root  18151 ene  2 20:05 week.html
-rw-r--r-- 1 root root  68493 ene  2 20:00 weekhumidity.png
-rw-r--r-- 1 root root 104313 ene  2 20:00 weekinside.png
-rw-r--r-- 1 root root   3288 ene  2 15:00 weekpond.png
-rw-r--r-- 1 root root  23396 ene  2 20:01 weekradiation.png
-rw-r--r-- 1 root root  30678 ene  2 20:00 weekrain.png
-rw-r--r-- 1 root root  76985 ene  2 20:00 weekrx.png
-rw-r--r-- 1 root root  86642 ene  2 20:00 weektempchill.png
-rw-r--r-- 1 root root 105926 ene  2 20:00 weektempdew.png
-rw-r--r-- 1 root root  21615 ene  2 20:01 weekuv.png
-rw-r--r-- 1 root root  91600 ene  2 20:00 weekwinddir.png
-rw-r--r-- 1 root root 107761 ene  2 20:00 weekwind.png
-rw-r--r-- 1 root root  94506 ene  2 20:01 weekwindvec.png
-rw-r--r-- 1 root root   3328 ene  2 00:00 yearbarometer.png
-rw-r--r-- 1 root root   3602 ene  2 00:00 yearhilow.png
-rw-r--r-- 1 root root  18123 ene  2 20:05 year.html
-rw-r--r-- 1 root root  12810 ene  2 15:11 yearhumidity.png
-rw-r--r-- 1 root root   3903 ene  2 00:00 yearinside.png
-rw-r--r-- 1 root root   2687 ene  2 00:00 yearpond.png
-rw-r--r-- 1 root root   2623 ene  2 00:00 yearradiation.png
-rw-r--r-- 1 root root   2852 ene  2 00:00 yearrain.png
-rw-r--r-- 1 root root   4381 ene  2 00:00 yearrx.png
-rw-r--r-- 1 root root   3623 ene  2 00:00 yeartempchill.png
-rw-r--r-- 1 root root   3514 ene  2 00:00 yeartempdew.png
-rw-r--r-- 1 root root   2540 ene  2 00:00 yearuv.png
-rw-r--r-- 1 root root   3232 ene  2 00:00 yearwinddir.png
-rw-r--r-- 1 root root   3383 ene  2 00:00 yearwind.png
-rw-r--r-- 1 root root   3678 ene  2 00:00 yearwindvec.png

_________________________________________________

pi@weewx:/etc/weewx/skins/neowx $ ls -l
total 444
-rw-r--r-- 1 root root  12132 ene  2 14:57 archive.html.tmpl
drwxr-xr-x 3 root root   4096 ene  2 14:57 img
-rw-r--r-- 1 root root  26595 ene  2 14:57 index.html.tmpl
-rw-r--r-- 1 root root 192576 ene  2 14:57 main.min.js
-rw-r--r-- 1 root root   1094 ene  2 14:57 manifest.json
-rw-r--r-- 1 root root  11507 ene  2 14:57 maps.html.tmpl
-rw-r--r-- 1 root root   1406 ene  2 19:18 meteoclimatic.htm.tmpl
-rw-r--r-- 1 root root  27099 ene  2 14:57 month.html.tmpl
drwxr-xr-x 2 root root   4096 ene  2 14:57 NOAA
-rw-r--r-- 1 root root   7371 ene  2 14:57 rss.xml.tmpl
-rw-r--r-- 1 root root  25176 ene  2 17:56 skin.conf
-rw-r--r-- 1 root root  59306 ene  2 14:57 style.css
drwxr-xr-x 4 root root   4096 ene  2 14:57 weather-icons
-rw-r--r-- 1 root root  27021 ene  2 14:57 week.html.tmpl
-rw-r--r-- 1 root root  27021 ene  2 14:57 year.html.tmpl

---------------------------------------------------------------
Gracias por tu paciencia!
« Última modificación: 02 de Enero del 2019, 21:12:15 pm por ogalvan »

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 #171 en: 02 de Enero del 2019, 21:20:00 pm »
Ok... adjunta en un zip en tu próximo mensaje el skin.conf que usas y el weewx.conf. Borra antes información sensible como bien has hecho antes de contraseñas de la cuenta FTP, awekas, wunderground etc etc del weewx.conf

Como dices será una tontería por algún lío que se pueda haber hecho pero hay que verla.



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

www.meteoarchena.es

Desconectado ogalvan

  • Newbie
  • *
  • Mensajes: 29
    • Ver Perfil
  • Estación: Parque Oriente Zaragoza ESARA5000000050014C
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #172 en: 02 de Enero del 2019, 21:35:36 pm »
Ok... adjunta en un zip en tu próximo mensaje el skin.conf que usas y el weewx.conf. Borra antes información sensible como bien has hecho antes de contraseñas de la cuenta FTP, awekas, wunderground etc etc del weewx.conf

Como dices será una tontería por algún lío que se pueda haber hecho pero hay que verla.

https://www.dropbox.com/s/slgntcx73yx9jqk/config.zip?dl=0

Ahi lo he puesto. Gracias por tu tiempo.

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 #173 en: 02 de Enero del 2019, 23:32:55 pm »
Bueno... pues gracias por subirlo porque tras casi una hora de pruebas he logrado, parece ser, ver donde está el fallo... cosa que sospechaba pero que gracias a Notepad++ he podido verlo.

Verás, weewx está escrito en Python y éste es un lenguaje con indentado o sangrado en el que los espacios o tabulaciones crean nuevas jerarquias. Copiar y pegar lo que ponemos aquí directamente en los archivos de configuración de weewx no es muy buena idea ya que puede que la tabulación del sangrado no lleve los suficientes espacios.

Como ya he dicho lo he visto en Notepad++ y en nano aparece que está con una tabulación la línea [[[Meteoclimatic]]] del skin.conf ya que si le das a la tecla de retroceso del teclado estando el cursor en el primer corchete te la lleva al principio y con las otras superiores no, van con espacios simples.

Me ha costado verlo pero si lo editas con nano quita la tabulación que tiene y déjalo con los mismos espacios en blanco o indentación que los superiores.

De todas formas te adjunto el skin para que lo pongas directamente correctamente indentado.

A ver si ya te la genera
« Última modificación: 02 de Enero del 2019, 23:34:32 pm por jmviper »


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

www.meteoarchena.es

Desconectado ogalvan

  • Newbie
  • *
  • Mensajes: 29
    • Ver Perfil
  • Estación: Parque Oriente Zaragoza ESARA5000000050014C
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #174 en: 03 de Enero del 2019, 01:06:15 am »
Bueno... pues gracias por subirlo porque tras casi una hora de pruebas he logrado, parece ser, ver donde está el fallo... cosa que sospechaba pero que gracias a Notepad++ he podido verlo.

Verás, weewx está escrito en Python y éste es un lenguaje con indentado o sangrado en el que los espacios o tabulaciones crean nuevas jerarquias. Copiar y pegar lo que ponemos aquí directamente en los archivos de configuración de weewx no es muy buena idea ya que puede que la tabulación del sangrado no lleve los suficientes espacios.

Como ya he dicho lo he visto en Notepad++ y en nano aparece que está con una tabulación la línea [[[Meteoclimatic]]] del skin.conf ya que si le das a la tecla de retroceso del teclado estando el cursor en el primer corchete te la lleva al principio y con las otras superiores no, van con espacios simples.

Me ha costado verlo pero si lo editas con nano quita la tabulación que tiene y déjalo con los mismos espacios en blanco o indentación que los superiores.

De todas formas te adjunto el skin para que lo pongas directamente correctamente indentado.

A ver si ya te la genera

Ostras vaya tela !
Esto ya es de nota el darse cuenta de ese detalle, una tabulación en vez de espacios.... Sí! ya genera la plantilla, muchísimas gracias por tu ayuda!

Después de este pequeño atasco, voy a ver si continuo y puedo subir ya los datos

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 #175 en: 03 de Enero del 2019, 10:14:12 am »
Ok perfecto. Has puesto la hora UTC ya en la ficha de tu estación y ya salen los datos de tu estación.

Lo dicho, al editar ficheros de Python o leídos por él mejor no copiar y pegar lo que se ponga en el foro ya que es muy sensible a los espacios en blanco.

Saludos


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

www.meteoarchena.es

Desconectado ogalvan

  • Newbie
  • *
  • Mensajes: 29
    • Ver Perfil
  • Estación: Parque Oriente Zaragoza ESARA5000000050014C
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #176 en: 17 de Abril del 2019, 08:49:08 am »
Hola

He estado subiendo mis datos a Meteoclimatic mediante el método que el robot lea la plantilla en mi servidor web; ahora he instalado el script para que sea yo quien suba los datos cada 15 minutos, en principio funciona bien todo, mi duda para no meter la pata:

¿debo cambiar algo en mi perfil de la estación?

En principio veo que automáticamente se ha cambiado la url donde tenia anteriormente la web donde debía coger la plantilla.

Los datos se actualizan correctamente cada 15 minutos según he puesto en el crontab siguiendo las indicaciones del hilo y veo en los datos de mi estación.

Gracias

Desconectado Audit

  • Moderador Global
  • Sr. Member
  • ******
  • Mensajes: 331
    • Ver Perfil
  • Estación: Auditorías
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #177 en: 17 de Abril del 2019, 12:15:57 pm »
No, no hay que cambiar nada. Como ya hemos dicho en más ocasiones, cuando se detecta un envío con el sistema directo, automáticamente se modifica la dirección.

Por ello, hay que tener cuidado cuando se hace al revés, si queremos subir a nuestro servidor, y se inicia el programa accidentalmente, nos borrará la dirección URL.












Desconectado ogalvan

  • Newbie
  • *
  • Mensajes: 29
    • Ver Perfil
  • Estación: Parque Oriente Zaragoza ESARA5000000050014C
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #178 en: 17 de Abril del 2019, 16:36:41 pm »
No, no hay que cambiar nada. Como ya hemos dicho en más ocasiones, cuando se detecta un envío con el sistema directo, automáticamente se modifica la dirección.

Por ello, hay que tener cuidado cuando se hace al revés, si queremos subir a nuestro servidor, y se inicia el programa accidentalmente, nos borrará la dirección URL.

Gracias por la aclaración 

Desconectado macipbarrda

  • Newbie
  • *
  • Mensajes: 23
    • Ver Perfil
    • meteosantmateu
  • Estación: ESPVA1200000012170B
Re:Utilidad para subir datos a Meteoclimatic con Linux
« Respuesta #179 en: 25 de Julio del 2019, 12:56:33 pm »
buenos dias. Llevo varios dias intentando pasar de Cumulus a CumulusMX. ya puestos, tambien he decidido cambiar de un ordenador portatil con windows 7 a una raspberry pi 3 . He podido instalar el programas cumulusMX y he podido crear las plantillas , que se actualizan con los datos que envia mi PCE FWS 20. todo esto me ha costado bastante, pero llevo un par de dias atascado en el dichoso contrab para que se automaticen las subidas.
Ejecutando :
sudo contrab -e la respuesta es  sudo: contrab: command not found
Si voy a /var/spool/cron/crontabs,  con un explorador de archivos de rsapbian, no puedo entrar en esa carpeta que es donde supongo debe estar el contrab. Me dice que no tengo permisos.

Cualquier ayuda, sera muy bien recibida . Gracias