diff --git a/pkg/weather/enrich.go b/pkg/weather/enrich.go index 5a3d2f7..7b958e5 100644 --- a/pkg/weather/enrich.go +++ b/pkg/weather/enrich.go @@ -13,7 +13,7 @@ func (u *WeatherUpdate) Enrich() { u.WindChillF = CalculateWindChill(u.TempOutdoorF, u.WindSpeedMPH) } - if u.DewPointF == 0 { + if u.DewPointF == 0 && (u.TempOutdoorF != 0 && u.HumidityOudoor != 0) { u.DewPointF = CalculateDewPoint(u.TempOutdoorF, float64(u.HumidityOudoor)) }