Skip to content

hyplabs/dfinity-oracle-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dfinity Weather Oracle Example

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.

Quickstart

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages