modify index, let it call api to get current tempeature