weather/types.go

23 lines
526 B
Go
Raw Normal View History

2019-07-07 13:09:55 +02:00
package main
// WeatherConfig is the main configuration
type WeatherConfig struct {
2019-07-14 21:10:20 +02:00
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
2019-07-15 01:16:36 +02:00
Humidity int64
2019-07-14 21:10:20 +02:00
Main map[string]float64
2019-07-07 13:09:55 +02:00
}