openweather-exporter
openweather-exporter copied to clipboard
Support IDs as an alternative to City, Country Format
I think it would be great to simply allow an array of IDs
Hey Netizen, i'm not sure what you mean by ID's here.
I use a Geo library (https://github.com/codingsince1985/geo-golang) to do the geo lookup for the coordinates to pass to the weather APIs to grab data. I'm not sure what an ID would quantify as in this case.
I believe he's pointing out that openweathermap.org has a different ID for each city.
For example, there are three Jonestown, US
cities. How should we specify which one we're interested in?
- https://openweathermap.org/find?q=jonestown%2C+us
- https://openweathermap.org/city/5195606
- https://openweathermap.org/city/4701592
- https://openweathermap.org/city/4432041