Skip to content

Commit

Permalink
remove max and min temperature per day
Browse files Browse the repository at this point in the history
This data is redundant as it can be found from the more detailed hourly data.
  • Loading branch information
schachmat committed May 5, 2016
1 parent dfa313d commit 3269e60
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions backends/forecast.io.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ type forecastDataPoint struct {
PrecipIntensity *float32 `json:"precipIntensity"`
PrecipProb *float32 `json:"precipProbability"`
Temperature *float32 `json:"temperature"`
TemperatureMin *float32 `json:"temperatureMin"`
TemperatureMax *float32 `json:"temperatureMax"`
ApparentTemperature *float32 `json:"apparentTemperature"`
WindSpeed *float32 `json:"windSpeed"`
WindBearing *float32 `json:"windBearing"`
Expand Down
5 changes: 0 additions & 5 deletions backends/worldweatheronline.com.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ type wwoDay struct {
}
Date string
Hourly []wwoCond
MaxtempC *float32 `json:"maxtempC,string"`
MintempC *float32 `json:"mintempC,string"`
}

type wwoResponse struct {
Expand Down Expand Up @@ -184,9 +182,6 @@ func wwoParseDay(day wwoDay, index int) (ret iface.Day) {
ret.Date = date
}

ret.MaxtempC = day.MaxtempC
ret.MintempC = day.MintempC

if day.Hourly != nil && len(day.Hourly) > 0 {
for _, slot := range day.Hourly {
ret.Slots = append(ret.Slots, wwoParseCond(slot, date))
Expand Down
6 changes: 0 additions & 6 deletions iface/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ type Day struct {
// Date is the date of this Day.
Date time.Time

// MaxtempC is the maximum temperature on that day in degrees celsius.
MaxtempC *float32

// MintempC is the minimum temperature on that day in degrees celsius.
MintempC *float32

// Slots is a slice of conditions for different times of day. They should be
// ordered by the contained Time field.
Slots []Cond
Expand Down

0 comments on commit 3269e60

Please sign in to comment.