iExecBlockchainComputing / iexec-apps

Dockerfile of all iExec apps
18 stars 23 forks source link

anemometer #33

Open Andy92Pac opened 4 years ago

Andy92Pac commented 4 years ago

Doracle address : 0xA4f68821bdA8d6117eA8b88afbe0A91c3c2dE119 Docker container : https://hub.docker.com/r/andy92pac/wind-feed Smart contract address : 0x65464777c27D8242A2d32bA48aE688b563BC4e4d

The Doracle is using DarkSky api to get general summary (string) and wind speed (uint256). Using this api, it is possible to get access to historical data as well as upcoming forecast. Past and future timestamps are therefore valid. The wind speed is fetched using SI units and then multiplied by 1000 by the Doracle to prevent a loss of precision.