I keep getting errors in my attempt to pull weather data for Detroit airport. I am able to manually go to wunderground.com to get the historical hourly data, so it does exist there for Detroit location. But R package keeps sending me errors. I used "KDTW" for the airport code but it did not work. I tried "72537" for the station ID, which I got by using getStationCode("Detroit). I will appreciate any help with getting hour historical data for any close to Detroit station for the time interval January 1, 2017 through March 28, 2017.
Here is what I tried:
install.packages("weatherData")
library ('weatherData')
getStationCode("Detroit")
checkDataAvailabilityForDateRange(station_type ="KARB", start_date="2017-01-01", end_date="2017-03-28")
checkDataAvailabilityForDateRange(station_id ="KDTW", start_date="2017-01-01", end_date="2017-03-28")
Thank you!