Dfinity Oracles is a framework for building blockchain oracles for the Internet Computer.
Dfinity Weather Oracle Example is a sample project using Dfinity Oracles to retrieve the current weather from a number of different weather APIs, summarize them, and write the results to a software canister.
Dfinity Crypto Oracle Example is another sample project, using Dfinity Oracles to retrieve current ETH and BTC prices.
Also see the Dfinity Oracles tutorial for step-by-step instructions about writing oracles from scratch.
To build the weather oracle:
go build
To run the weather oracle, you'll need API keys for WeatherAPI, WeatherBit, and OpenWeatherMap. After obtaining these, you can then provide them to the oracle via environment variables:
export WEATHERAPI_API_KEY='WEATHERAPI_API_KEY_GOES_HERE'
export WEATHERBIT_API_KEY='WEATHERBIT_API_KEY_GOES_HERE'
export OPENWEATHERMAP_API_KEY='OPENWEATHERMAP_API_KEY_GOES_HERE'
./dfinity-weather-oracle