Skip to content

Instantly share code, notes, and snippets.

import datetime
import pytz
import requests
import time as time_mod
FORECAST_TEMPLATE = 'https://api.forecast.io/forecast/{apikey}/{latitude},{longitude}{time}{si}'
class Forecast(object):
import datetime
import pytz
import requests
import time as time_mod
FORECAST_TEMPLATE = 'https://api.forecast.io/forecast/{apikey}/{latitude},{longitude}{time}{si}'
class Forecast(object):