import requests
import json
import os

def headline():
    url = "http://api.openweathermap.org/data/2.5/weather?id=4752046&units=metric"
    r = requests.get(url + "&APPID=" + os.environ['OWM_KEY'])
    decoder = json.JSONDecoder()
    data = decoder.decode(r.text)

    s = '{}: {} C'.format(data['name'], str(data['main']['temp']))
    return s

if __name__ == "__main__":
    headline()
