Skip to content

Commit

Permalink
formatted mesurades file
Browse files Browse the repository at this point in the history
  • Loading branch information
oscaromeu committed Dec 5, 2021
1 parent 6b3bbaf commit 44bdb80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesurades.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type MetadadesVariableEstacio struct {
// Lectura is an aggregate type which represents the data registered in the station. This value with a code represents
// a variable, e.g {"codi":5,"lectures":[{"data":"2021-01-06T10:00Z","dataExtrem":"2021-01-06T10:24Z","valor":8.7,"estat":" ","baseHoraria":"SH"}]}
type Lectura struct {
Data string `json:"data"`
Data string `json:"data"`
Valor float64 `json:"valor"`
Estat string `json:"estat"`
BaseHoraria string `json:"baseHoraria"`
Expand Down Expand Up @@ -210,7 +210,6 @@ func (m *Mesurades) MeasurementLast(p *Parameters) error {
return err
}


req.Header.Add("X-Api-Key", m.Key)

resp, err := m.client.Do(req)
Expand Down

0 comments on commit 44bdb80

Please sign in to comment.