Software > WeeWX
No descarga plantilla
jantoni:
Adjúntame (recuerda de quitar el campo SIG):
/etc/weewx/skins/Standard/meteoclimatic.html.tmpl
/var/www/weewx/meteoclimatic.html
Secure440:
*VER=DATA2
*COD=ESCAT0800000008490G
*SIG=xxxxxxxxxxxxxxxxxxxxxxxxx
*UPD=%date% %time%
*TMP=%temp%
*WND=%10minavspeedinkmh%
*AZI=%avdir10minute%
*BAR=%baro%
*HUM=%hum%
*SUN=%VPsolar%
*UVI=%VPuv%
*DHTM=%maxtemp%
*DLTM=%mintemp%
*DHHM=%highhum%
*DLHM=%lowhum%
*DHBR=%highbaro%
*DLBR=%lowbaro%
*DGST=%todaygustspeedinkmh%
*DSUN=%highsolar%
*DHUV=%highuv%
*DPCP=%dayrn%
*WRUN=%windruntoday%
*MHTM=%monthtodatemaxtempcelsius%
*MLTM=%monthtodatemintemp%
*MHHM=%monthtodatemaxhum%
*MLHM=%monthtodateminhum%
*MHBR=%monthtodatemaxbaromb%
*MLBR=%monthtodateminbaromb%
*MGST=%monthtodatemaxgustkmh%
*MSUN=%mrecordhighsolar%
*MHUV=%mrecordhighuv%
*MPCP=%monthraininmm%
*YHTM=%yrecordhightemp%
*YLTM=%yrecordlowtemp%
*YHHM=%yrecordhighhum%
*YLHM=%yrecordlowhum%
*YHBR=%yrecordhighbaro%
*YLBR=%yrecordlowbaro%
*YGST=%yrecordwindgust%
*YSUN=%yrecordhighsolar%
*YHUV=%yrecordhighuv%
*YPCP=%yearlyraininmm%
*EOT*
*VER=DATA2
*COD=ESCAT0800000008490G
*SIG=xxxxxxxxxxxxxxxxxxxxxxxxx
*UPD=%date% %time%
*TMP=%temp%
*WND=%10minavspeedinkmh%
*AZI=%avdir10minute%
*BAR=%baro%
*HUM=%hum%
*SUN=%VPsolar%
*UVI=%VPuv%
*DHTM=%maxtemp%
*DLTM=%mintemp%
*DHHM=%highhum%
*DLHM=%lowhum%
*DHBR=%highbaro%
*DLBR=%lowbaro%
*DGST=%todaygustspeedinkmh%
*DSUN=%highsolar%
*DHUV=%highuv%
*DPCP=%dayrn%
*WRUN=%windruntoday%
*MHTM=%monthtodatemaxtempcelsius%
*MLTM=%monthtodatemintemp%
*MHHM=%monthtodatemaxhum%
*MLHM=%monthtodateminhum%
*MHBR=%monthtodatemaxbaromb%
*MLBR=%monthtodateminbaromb%
*MGST=%monthtodatemaxgustkmh%
*MSUN=%mrecordhighsolar%
*MHUV=%mrecordhighuv%
*MPCP=%monthraininmm%
*YHTM=%yrecordhightemp%
*YLTM=%yrecordlowtemp%
*YHHM=%yrecordhighhum%
*YLHM=%yrecordlowhum%
*YHBR=%yrecordhighbaro%
*YLBR=%yrecordlowbaro%
*YGST=%yrecordwindgust%
*YSUN=%yrecordhighsolar%
*YHUV=%yrecordhighuv%
*YPCP=%yearlyraininmm%
*EOT*
Lo que veo es que en la ruta:
/var/www/weewx/meteoclimatic.html
el archivo que tengo no acaba con extensión .html, si no en htm, le falta la "L"
jantoni:
Pero no lo has modificado....sigues con las etiquetas de Weather Display.....tienes que cambiarlas por las de Weewx (en el skin).....la otra ya se cambia sola
jantoni:
Cierto....es htm.
Y me imagino que en /etc/weewx/skins/Standard/skin.conf habrás añadido:
[[[Meteoclimatic]]]
template = meteoclimatic.htm.tmpl
Algo así:
--- Citar ---[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 = html_entities
[[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/weewx_rss.xml.tmpl
[[[Mobile]]]
template = mobile.html.tmpl
[[[MobileSmartphone]]]
template = smartphone/index.html.tmpl
[[[MobileTempOutside]]]
template = smartphone/temp_outside.html.tmpl
[[[MobileRain]]]
template = smartphone/rain.html.tmpl
[[[MobileBarometer]]]
template = smartphone/barometer.html.tmpl
[[[MobileWind]]]
template = smartphone/wind.html.tmpl
[[[MobileRadar]]]
template = smartphone/radar.html.tmpl
[[[Meteoclimatic]]]
template = meteoclimatic.htm.tmpl
--- Fin de la cita ---
Secure440:
--- Cita de: jantoni en 04 de Abril de 2016, 19:11:50 ---Pero no lo has modificado....sigues con las etiquetas de Weather Display.....tienes que cambiarlas por las de Weewx (en el skin).....la otra ya se cambia sola
--- Fin de la cita ---
Ok, a ver,e editado el archivo /meteoclimatic.html.tmpl y e cambiado su contenido por esto que esta en azul
*VER=DATA2
*COD=ESCAT0800000008490G
*SIG=xxxxxxxxxxxxxxxxxxxxxxxxx
*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*
Y si en /etc/weewx/skins/Standard/skin.conf esta añadido:
[[[Meteoclimatic]]]
template = meteoclimatic.htm.tmpl
y ahora si me sale la "L"
Navegación
[#] Página Siguiente
[*] Página Anterior
Ir a la versión completa