Right now Ethereum smart contracts don't have access to real world data from outside the Ethereum virtual machine. This is why most contracts are financial in nature.
There are projects attempting to fix that but so far nothing has materialized yet.
There are projects attempting to fix that but so far nothing has materialized yet.