weather/types.go

25 lines
591 B
Go

package main
// WeatherConfig is the main configuration
type WeatherConfig struct {
WeatherAppID string
WeatherCities []string
WeatherMeasurements []string
InfluxURL string
InfluxAddr string
InfluxUser string
InfluxPass string
InfluxDB string
}
// Data is the struct for temperature and humidity for a city
type Data struct {
City string `json:"name"`
Main struct {
Temperature float64 `json:"temp"`
Humidity int64 `json:"humidity"`
Pressure float64 `json:"pressure"`
}
Points map[string]interface{}
}