Forum Archive

Weather where you are

ccc

Combine Pythonista's location.reverse_geocode() with weather data from openweathermap.org to print out the weather where you are. The openweathermap.org API offers lots more possibilities... https://gist.github.com/cclauss/8818324

kleerkoat

hey ccc, i don't think you meant to give me (monkeygrip) credit ;)

i'm new to github and how/when you are supposed to fork things. i think i forked it but didn't make any changes. think credit should goto kultprok

;)

ccc

Updated:

  1. CountryCode instead of Country in the URL in openweathermap.
  2. Add &units=metric to that URL for better temperature conversion.
  3. Give proper attribution to kultprok instead of kleerkoat/monkeygrip.
Sebastian

Nice! It prints out the information I need in a clean way, which makes it easy to read. Tanks for sharing!

I made something similar a while back, but instead of using country code and city, etc, I used latitude and longitude.

kleerkoat

thanks ccc.

can you give me a real brief intro on when to fork and when to clone, or if any of that is necessary and just copy paste? mainly dealing with gists. I'd appreciate it.