package main // WeatherConfig is the main configuration type WeatherConfig struct { WeatherVersion string WeatherAppID string WeatherCities []string WeatherMeasurements []string WeatherTable 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 float64 Main map[string]float64 }