weather/types.go

23 lines
526 B
Go

package main
// WeatherConfig is the main configuration
type WeatherConfig struct {
WeatherVersion string
WeatherAppID string
WeatherCities []string
WeatherMeasurements []string
InfluxHost string
InfluxPort int
InfluxUser string
InfluxPass string
InfluxDB string
}
// Data is object for temperature and humidity for a city
type Data struct {
City string `json:"name"`
Temperature float64
Humidity int64
Main map[string]float64
}