Fixed APRS weather rain reports.
This commit is contained in:
parent
be7b90392f
commit
eee4a99b7d
|
|
@ -502,12 +502,15 @@ AprsMarker.prototype.getInfoHTML = function(name, receiverMarker = null) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.weather.rain && (this.weather.rain.day>0)) {
|
if (this.weather.rain) {
|
||||||
weatherString += Utils.makeListItem('Rain',
|
var rain = this.weather.rain.hour>0? this.weather.rain.hour.toFixed(0) + ' mm/h' : '';
|
||||||
this.weather.rain.hour.toFixed(0) + ' mm/h, ' +
|
if (this.weather.rain.day>0) {
|
||||||
this.weather.rain.day.toFixed(0) + ' mm/day'
|
rain += (rain!=''? ', ' : '') + this.weather.rain.day.toFixed(0) + ' mm/day';
|
||||||
|
}
|
||||||
// this.weather.rain.sincemidnight + ' mm since midnight'
|
// this.weather.rain.sincemidnight + ' mm since midnight'
|
||||||
);
|
if (rain!='') {
|
||||||
|
weatherString += Utils.makeListItem('Rain', rain);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.weather.snowfall) {
|
if (this.weather.snowfall) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue