Changed method of getting whether is raining or not