Anachron / i3blocks

Additional/custom blocks which fit my needs
GNU General Public License v3.0
585 stars 106 forks source link

I have a question CITY_ID and API_KEY? #16

Closed elhackerlibre closed 8 years ago

elhackerlibre commented 8 years ago

Hi. I am using your scripts weather . I think an excellent script. but I have a question? on the line: id=${CITY_ID}&appid=${API_KEY} I have to replace my CITY_ID by the city, and API_KEY , which has given me the site http://api.openweathermap.org ? appreciate your help !

Anachron commented 8 years ago

Hey @elhackerlibre it seems like they have changed their website! Type in your city name here: http://openweathermap.org/ And then on the result page the weather id is in the URL.

Example for London: http://openweathermap.org/city/2643743

So 2643743 is the city ID. The API_KEY you get when you register there.

elhackerlibre commented 8 years ago

thanks for taking the time to answer me! and understood how it works ! I have to add the API_KEY to escripts , then the ID_CITY instance my city in the blocks example: instance = 3647651 if you wrote the script , I congratulate you on this excellent work , it has worked very well so far

Anachron commented 8 years ago

I'll close this, please comment if you have further issues.