16
Incidencias / Re:Sin acceso a meteoclimatic.net
« en: 26 de Septiembre del 2022, 09:51:15 am »
Ya funciona, problemas de cache DNS

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.
[Homepage]
[[llamps]]
title = "Número i distància dels llamps"
type = column
yAxis_label = ""
[[[lightning_strike_count]]]
name = "Número de llamps"
stacking = normal
[[[lightning_distance]]]
name = "Distància llamps (km)"
stacking = normal
[llamps]
title = Llamps
show_button = true
button_text = Llamps
time_length = year
#aggregate_type = max
aggregate_interval = 86400 # 1 day
gapsize = 86400000
type = column
yAxis_label = ""
[[llamps]]
title = "Número i distància dels llamps (diari)"
[[[numero_diari_llamps]]]
name = "Número diari de llamps"
aggregate_type = sum
observation_type = lightning_strike_count
stacking = normal
[[[dist_mitj_llamps_diari]]]
name = "Distància mitjana llamps (km)"
aggregate_type = avg
observation_type = lightning_distance
stacking = normal
#yAxis = 1
[[llamps_mensuals]]
xAxis_groupby = month
xAxis_categories = 'Gen.','Febr.', 'Març', 'Abr.', 'Maig', 'Juny', 'Jul.', 'Ag.', 'Set.', 'Oct.', 'Nov.', 'Des.'
title = "Número i distància dels llamps (mensual)"
#time_length = month
#xAxis_groupby = day
[[[num_llamps_mes]]]
name = "Número de llamps"
aggregate_type = sum
observation_type = lightning_strike_count
stacking = normal
##yAxis = 1
[[[dist_mit_llamps]]]
name = "Distància mitjana llamps (km)"
aggregate_type = avg
observation_type = lightning_distance
stacking = normal
#yAxis = 0
[[[[StringFormats]]]]
count = %.0f
De momento la BD weewx.sdb está rellenando los datos con 00 cuando antes era NULL, lógico porque no hay rayos a la vista, pero todo sigue funcionando. A la plantilla de belchertown le he puesto un gráfico al final para que registre algo. Si funciona ya completare todas las plantillas, lo importante es que se están grabando los datos en la base datos.
Ha creado dos etiquetas:
[lightning_strike_count] y [lightning_distance]
A ver si funciona.
Lo tengo montado en https://meteoelx.com
Gracias
Bruno
[StdCalibrate]
[[Corrections]]
lightning_distance = None if lightning_strike_count == 0 or lightning_strike_count is None else lightning_distance
count = %.0f
[[lightning_strike_count]]