Estaciones Meteoclimatic > Envío de datos a Meteoclimatic

Utilidad para subir datos a Meteoclimatic con Linux

<< < (34/43) > >>

jmviper:
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á ??

ogalvan:
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.

jmviper:
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

ogalvan:
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...

jmviper:
Qué sale con ls -l /var/www/HTML/weewx ?

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa