16
Nuevo sistema de envio a Meteoclimatic para estaciones con protocolos Wunderground y Ecowitt
https://forum.meteoclimatic.net/index.php/topic,5352
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.
belchertown_debug(options.chart.renderTo + ": " + s.obsType + " is on yAxis " + this_yAxis);
// yAxis AQI PlotLines
if (s.obsType == "pm2_5") {
belchertown_debug('yAxis plotLines true');
var yAxis_plotlines = [];
// PM25 EAQI (European Air Quality Index) levels, labels and belchertown's colors
// https://airindex.eea.europa.eu/Map/AQI/Viewer/
const eaqi = [{
color: "#71bc3c",
label: "Buena",
level: 10
}, {
color: "rgba(255,174,0,0.9)",
label: "Razonablemente buena",
level: 20
}, {
color: "rgba(255,127,0,1)",
label: "Regular",
level: 25
}, {
color: "rgba(255,69,69,1)",
label: "Desfavorable",
level: 50
}, {
color: "#b16286",
label: "Muy desfavorable",
level: 75
}];
for (i = 0; i < eaqi.length; i++) {
yAxis_plotlines.push({
color: eaqi[i].color,
value: eaqi[i].level,
label: {
text: eaqi[i].label,
x: 0,
y: 15,
style: {
color: eaqi[i].color,
fontWeight: 'bold'
}
},
width: 3,
dashStyle: 'longdashdot',
zIndex : 3
});
}
// Add plotlines to yAxis options
options.yAxis[this_yAxis].plotLines = yAxis_plotlines;
belchertown_debug(yAxis_plotlines);
}
Highcharts.setOptions({
global: {
//useUTC: false
timezoneOffset: $highcharts_timezoneoffset
},
lang: {
decimalPoint: "$highcharts_decimal",
thousandsSep: "$highcharts_thousands",
shortMonths: ['Gen', 'Feb', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Oct', 'Nov', 'Des']
}
});
sudo wee_reports
sudo service weewx restart
Highcharts.setOptions({
global: {
//useUTC: false
timezoneOffset: $highcharts_timezoneoffset
},
lang: {
months: moment.months(),
shortMonths: moment.monthsShort(),
weekdays: moment.weekdays(),
shortWeekdays: moment.weekdaysShort(),
decimalPoint: "$highcharts_decimal",
thousandsSep: "$highcharts_thousands"
}
});
de febr. 11 17:09:34 minipc python3[686874]: weewx[686874] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
de febr. 11 17:09:34 minipc python3[686874]: weewx[686874] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 324, in gen>
de febr. 11 17:09:34 minipc python3[686874]: weewx[686874] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
de febr. 11 17:09:34 minipc python3[686874]: weewx[686874] ERROR weewx.cheetahgenerator: **** File "_etc_weewx_skins_Belchertown_about_index_html_tmpl.py", line >
de febr. 11 17:09:34 minipc python3[686874]: weewx[686874] ERROR weewx.cheetahgenerator: **** File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 170>
de febr. 11 17:09:34 minipc python3[686874]: weewx[686874] ERROR weewx.cheetahgenerator: **** self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
de febr. 11 17:09:34 minipc python3[686874]: weewx[686874] ERROR weewx.cheetahgenerator: **** File "_etc_weewx_skins_Belchertown_about_inc.py", line 117, in resp>
de febr. 11 17:09:34 minipc python3[686874]: weewx[686874] ERROR weewx.cheetahgenerator: **** NameMapper.NotFound: cannot find 'wh25batt'
'wh25batt': 'wh25_battery',
'wh26batt': 'wh26_battery',
'wh40batt': 'wh40_battery',
'wh65batt': 'wh65_battery',