Weather API

# RapidAPI page https://rapidapi.com/weatherbit/api/weather/

# Begin Rapid API Code
import requests

# lat = input("Input a latitude ")
# lon = input("Input a longitude ")
# querystring = [str(lat), str(lon)]

headers = {
	"X-RapidAPI-Key": "d52614d761mshb67fc7102590b16p1838c8jsne4eb059fe469",  # place your key here
	"X-RapidAPI-Host": "weatherbit-v1-mashape.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers, params=querystring)

# print(response.text)
for state in response:
	if state["state_code"].casefold() == "NC":
		for key, value in country.items():
			print(key,value)
# print(lat["state_code"])

# Observe data from an API.  This is how data transports over the internet in a "JSON" text form
# - The JSON "text" is formed in dictionary {} and list [] divisions
# - To read the result, Data Scientist of  Developer converts JSON into human readable form
# - Review the first line, look for the keys --  "status" and "data"
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In [5], line 20
     18 # print(response.text)
     19 for state in response:
---> 20 	if state["state_code"].casefold() == "NC":
     21 		for key, value in country.items():
     22 			print(key,value)

TypeError: byte indices must be integers or slices, not str
# RapidAPI page https://rapidapi.com/weatherbit/api/weather/

# Begin Rapid API Code
import requests

url = "https://weatherbit-v1-mashape.p.rapidapi.com/forecast/3hourly"

querystring = {"lat":"35.5","lon":"-78.5"}

headers = {
	"X-RapidAPI-Key": "d52614d761mshb67fc7102590b16p1838c8jsne4eb059fe469",  # place your key here
	"X-RapidAPI-Host": "weatherbit-v1-mashape.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.json())
weather = response.json()
print(weather['state_code'])
# Observe data from an API.  This is how data transports over the internet in a "JSON" text form
# - The JSON "text" is formed in dictionary {} and list [] divisions
# - To read the result, Data Scientist of  Developer converts JSON into human readable form
# - Review the first line, look for the keys --  "status" and "data"
{'state_code': 'NC', 'lon': -78.5, 'lat': 35.5, 'timezone': 'America/New_York', 'data': [{'wind_cdir': 'WSW', 'rh': 78, 'pod': 'd', 'pres': 998, 'snow_depth': 0, 'vis': 19.392, 'wind_spd': 2.75, 'wind_cdir_full': 'west-southwest', 'slp': 1006, 'datetime': '2022-10-13:21', 'ts': 1665694800, 'dewpt': 19.4, 'uv': 1.6, 'dni': 655.91, 'wind_dir': 243, 'ghi': 276.89, 'dhi': 74.85, 'precip': 0, 'weather': {'description': 'Scattered clouds', 'icon': 'c02d', 'code': 802}, 'temp': 23.5, 'app_temp': 23.9, 'pop': 0, 'ozone': 293.5, 'clouds_hi': 100, 'clouds_low': 21, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-13T21:00:00', 'timestamp_local': '2022-10-13T17:00:00', 'wind_gust_spd': 5.08, 'clouds': 25, 'solar_rad': 259.79138}, {'wind_cdir': 'SSW', 'rh': 90, 'pod': 'n', 'pres': 998.5, 'snow_depth': 0, 'vis': 13.6, 'wind_spd': 2.02, 'wind_cdir_full': 'south-southwest', 'slp': 1007, 'datetime': '2022-10-14:00', 'ts': 1665705600, 'dewpt': 18.2, 'uv': 0, 'dni': 0, 'wind_dir': 197, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02n', 'code': 801}, 'temp': 19.9, 'app_temp': 20.3, 'pop': 0, 'ozone': 293.5, 'clouds_hi': 5, 'clouds_low': 2, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-14T00:00:00', 'timestamp_local': '2022-10-13T20:00:00', 'wind_gust_spd': 4.27, 'clouds': 2, 'solar_rad': 0}, {'wind_cdir': 'WSW', 'rh': 92, 'pod': 'n', 'pres': 1000, 'snow_depth': 0, 'vis': 12.8, 'wind_spd': 2.17, 'wind_cdir_full': 'west-southwest', 'slp': 1008.5, 'datetime': '2022-10-14:03', 'ts': 1665716400, 'dewpt': 17.2, 'uv': 0, 'dni': 0, 'wind_dir': 241, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02n', 'code': 801}, 'temp': 18.5, 'app_temp': 18.8, 'pop': 0, 'ozone': 290.8, 'clouds_hi': 0, 'clouds_low': 8, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-14T03:00:00', 'timestamp_local': '2022-10-13T23:00:00', 'wind_gust_spd': 5.54, 'clouds': 8, 'solar_rad': 0}, {'wind_cdir': 'NNW', 'rh': 82, 'pod': 'n', 'pres': 1002, 'snow_depth': 0, 'vis': 17.488, 'wind_spd': 6.66, 'wind_cdir_full': 'north-northwest', 'slp': 1010.5, 'datetime': '2022-10-14:06', 'ts': 1665727200, 'dewpt': 12.4, 'uv': 0, 'dni': 0, 'wind_dir': 355, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Scattered clouds', 'icon': 'c02n', 'code': 802}, 'temp': 15.5, 'app_temp': 15.5, 'pop': 0, 'ozone': 289.3, 'clouds_hi': 0, 'clouds_low': 33, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-14T06:00:00', 'timestamp_local': '2022-10-14T02:00:00', 'wind_gust_spd': 15.24, 'clouds': 33, 'solar_rad': 0}, {'wind_cdir': 'NNW', 'rh': 85, 'pod': 'n', 'pres': 1003.5, 'snow_depth': 0, 'vis': 15.896, 'wind_spd': 1.52, 'wind_cdir_full': 'north-northwest', 'slp': 1012.5, 'datetime': '2022-10-14:09', 'ts': 1665738000, 'dewpt': 11.4, 'uv': 0, 'dni': 0, 'wind_dir': 328, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Scattered clouds', 'icon': 'c02n', 'code': 802}, 'temp': 13.9, 'app_temp': 13.9, 'pop': 0, 'ozone': 285, 'clouds_hi': 0, 'clouds_low': 25, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-14T09:00:00', 'timestamp_local': '2022-10-14T05:00:00', 'wind_gust_spd': 4.73, 'clouds': 25, 'solar_rad': 0}, {'wind_cdir': 'NNW', 'rh': 78, 'pod': 'd', 'pres': 1006.5, 'snow_depth': 0, 'vis': 19.792, 'wind_spd': 2.2, 'wind_cdir_full': 'north-northwest', 'slp': 1015, 'datetime': '2022-10-14:12', 'ts': 1665748800, 'dewpt': 9.3, 'uv': 1.5, 'dni': 387.77, 'wind_dir': 337, 'ghi': 83.16, 'dhi': 43.69, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02d', 'code': 801}, 'temp': 13, 'app_temp': 13, 'pop': 0, 'ozone': 289.8, 'clouds_hi': 0, 'clouds_low': 3, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-14T12:00:00', 'timestamp_local': '2022-10-14T08:00:00', 'wind_gust_spd': 4.53, 'clouds': 3, 'solar_rad': 83.15951}, {'wind_cdir': 'NE', 'rh': 69, 'pod': 'd', 'pres': 1007.5, 'snow_depth': 0, 'vis': 24.592, 'wind_spd': 2.5, 'wind_cdir_full': 'northeast', 'slp': 1016.5, 'datetime': '2022-10-14:15', 'ts': 1665759600, 'dewpt': 11.8, 'uv': 4.1, 'dni': 842.9, 'wind_dir': 34, 'ghi': 614.03, 'dhi': 104.35, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02d', 'code': 801}, 'temp': 17.6, 'app_temp': 17.6, 'pop': 0, 'ozone': 291.5, 'clouds_hi': 0, 'clouds_low': 2, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-14T15:00:00', 'timestamp_local': '2022-10-14T11:00:00', 'wind_gust_spd': 3.23, 'clouds': 2, 'solar_rad': 593.45013}, {'wind_cdir': 'NE', 'rh': 54, 'pod': 'd', 'pres': 1006.5, 'snow_depth': 0, 'vis': 35.488, 'wind_spd': 0.55, 'wind_cdir_full': 'northeast', 'slp': 1015.5, 'datetime': '2022-10-14:18', 'ts': 1665770400, 'dewpt': 10.8, 'uv': 5.2, 'dni': 875.48, 'wind_dir': 43, 'ghi': 708.34, 'dhi': 110.48, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01d', 'code': 800}, 'temp': 20.4, 'app_temp': 19.9, 'pop': 0, 'ozone': 290.8, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-14T18:00:00', 'timestamp_local': '2022-10-14T14:00:00', 'wind_gust_spd': 3.24, 'clouds': 0, 'solar_rad': 686.5172}, {'wind_cdir': 'W', 'rh': 40, 'pod': 'd', 'pres': 1006.5, 'snow_depth': 0, 'vis': 0.49, 'wind_spd': 1.45, 'wind_cdir_full': 'west', 'slp': 1015, 'datetime': '2022-10-14:21', 'ts': 1665781200, 'dewpt': 7.1, 'uv': 1.9, 'dni': 651.84, 'wind_dir': 270, 'ghi': 271.86, 'dhi': 74.28, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01d', 'code': 800}, 'temp': 21.2, 'app_temp': 20.4, 'pop': 0, 'ozone': 291.8, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-14T21:00:00', 'timestamp_local': '2022-10-14T17:00:00', 'wind_gust_spd': 3.21, 'clouds': 0, 'solar_rad': 271.86}, {'wind_cdir': 'NW', 'rh': 51, 'pod': 'n', 'pres': 1008, 'snow_depth': 0, 'vis': 37.376, 'wind_spd': 2.28, 'wind_cdir_full': 'northwest', 'slp': 1016.5, 'datetime': '2022-10-15:00', 'ts': 1665792000, 'dewpt': 6.3, 'uv': 0, 'dni': 0, 'wind_dir': 320, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01n', 'code': 800}, 'temp': 16.5, 'app_temp': 16.5, 'pop': 0, 'ozone': 296.3, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-15T00:00:00', 'timestamp_local': '2022-10-14T20:00:00', 'wind_gust_spd': 2.7, 'clouds': 0, 'solar_rad': 0}, {'wind_cdir': 'E', 'rh': 64, 'pod': 'n', 'pres': 1009.5, 'snow_depth': 0, 'vis': 26.8, 'wind_spd': 0.65, 'wind_cdir_full': 'east', 'slp': 1018, 'datetime': '2022-10-15:03', 'ts': 1665802800, 'dewpt': 7, 'uv': 0, 'dni': 0, 'wind_dir': 85, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01n', 'code': 800}, 'temp': 13.7, 'app_temp': 13.7, 'pop': 0, 'ozone': 296.5, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-15T03:00:00', 'timestamp_local': '2022-10-14T23:00:00', 'wind_gust_spd': 2.71, 'clouds': 0, 'solar_rad': 0}, {'wind_cdir': 'SSW', 'rh': 72, 'pod': 'n', 'pres': 1009.5, 'snow_depth': 0, 'vis': 22, 'wind_spd': 2.32, 'wind_cdir_full': 'south-southwest', 'slp': 1018.5, 'datetime': '2022-10-15:06', 'ts': 1665813600, 'dewpt': 6.6, 'uv': 0, 'dni': 0, 'wind_dir': 208, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01n', 'code': 800}, 'temp': 11.5, 'app_temp': 11.5, 'pop': 0, 'ozone': 294, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-15T06:00:00', 'timestamp_local': '2022-10-15T02:00:00', 'wind_gust_spd': 2.35, 'clouds': 0, 'solar_rad': 0}, {'wind_cdir': 'SW', 'rh': 66, 'pod': 'n', 'pres': 1010, 'snow_depth': 0, 'vis': 25.792, 'wind_spd': 2.39, 'wind_cdir_full': 'southwest', 'slp': 1018.5, 'datetime': '2022-10-15:09', 'ts': 1665824400, 'dewpt': 4, 'uv': 0, 'dni': 0, 'wind_dir': 218, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02n', 'code': 801}, 'temp': 10.1, 'app_temp': 10.1, 'pop': 0, 'ozone': 294, 'clouds_hi': 0, 'clouds_low': 2, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-15T09:00:00', 'timestamp_local': '2022-10-15T05:00:00', 'wind_gust_spd': 3.91, 'clouds': 2, 'solar_rad': 0}, {'wind_cdir': 'SW', 'rh': 75, 'pod': 'd', 'pres': 1011, 'snow_depth': 0, 'vis': 20.8, 'wind_spd': 2.11, 'wind_cdir_full': 'southwest', 'slp': 1019.5, 'datetime': '2022-10-15:12', 'ts': 1665835200, 'dewpt': 5.1, 'uv': 1.5, 'dni': 381.17, 'wind_dir': 230, 'ghi': 80.44, 'dhi': 43.04, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01d', 'code': 800}, 'temp': 9.3, 'app_temp': 9.3, 'pop': 0, 'ozone': 295.5, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-15T12:00:00', 'timestamp_local': '2022-10-15T08:00:00', 'wind_gust_spd': 5.35, 'clouds': 0, 'solar_rad': 80.44}, {'wind_cdir': 'SSW', 'rh': 59, 'pod': 'd', 'pres': 1012.5, 'snow_depth': 0, 'vis': 24.096, 'wind_spd': 3.15, 'wind_cdir_full': 'south-southwest', 'slp': 1020, 'datetime': '2022-10-15:15', 'ts': 1665846000, 'dewpt': 11.8, 'uv': 4.1, 'dni': 841.6, 'wind_dir': 195, 'ghi': 609.61, 'dhi': 104.08, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01d', 'code': 800}, 'temp': 20, 'app_temp': 19.6, 'pop': 0, 'ozone': 295.5, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-15T15:00:00', 'timestamp_local': '2022-10-15T11:00:00', 'wind_gust_spd': 6.6, 'clouds': 0, 'solar_rad': 589.4473}, {'wind_cdir': 'SSW', 'rh': 42, 'pod': 'd', 'pres': 1011, 'snow_depth': 0, 'vis': 24.096, 'wind_spd': 4.59, 'wind_cdir_full': 'south-southwest', 'slp': 1018.5, 'datetime': '2022-10-15:18', 'ts': 1665856800, 'dewpt': 9.6, 'uv': 5.2, 'dni': 874.18, 'wind_dir': 197, 'ghi': 703.09, 'dhi': 110.2, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01d', 'code': 800}, 'temp': 23.3, 'app_temp': 22.7, 'pop': 0, 'ozone': 298.5, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-15T18:00:00', 'timestamp_local': '2022-10-15T14:00:00', 'wind_gust_spd': 5.6, 'clouds': 0, 'solar_rad': 703.09}, {'wind_cdir': 'S', 'rh': 46, 'pod': 'd', 'pres': 1010, 'snow_depth': 0, 'vis': 24.096, 'wind_spd': 4.85, 'wind_cdir_full': 'south', 'slp': 1017.5, 'datetime': '2022-10-15:21', 'ts': 1665867600, 'dewpt': 10.6, 'uv': 1.9, 'dni': 647.72, 'wind_dir': 186, 'ghi': 266.88, 'dhi': 73.72, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01d', 'code': 800}, 'temp': 22.8, 'app_temp': 22.3, 'pop': 0, 'ozone': 298, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-15T21:00:00', 'timestamp_local': '2022-10-15T17:00:00', 'wind_gust_spd': 6.9, 'clouds': 0, 'solar_rad': 258.74945}, {'wind_cdir': 'S', 'rh': 59, 'pod': 'n', 'pres': 1010.5, 'snow_depth': 0, 'vis': 24.096, 'wind_spd': 3.14, 'wind_cdir_full': 'south', 'slp': 1018, 'datetime': '2022-10-16:00', 'ts': 1665878400, 'dewpt': 9.9, 'uv': 0, 'dni': 0, 'wind_dir': 178, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01n', 'code': 800}, 'temp': 18, 'app_temp': 18, 'pop': 0, 'ozone': 299.5, 'clouds_hi': 1, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-16T00:00:00', 'timestamp_local': '2022-10-15T20:00:00', 'wind_gust_spd': 9.7, 'clouds': 0, 'solar_rad': 0}, {'wind_cdir': 'SSW', 'rh': 62, 'pod': 'n', 'pres': 1010, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 3.76, 'wind_cdir_full': 'south-southwest', 'slp': 1018, 'datetime': '2022-10-16:03', 'ts': 1665889200, 'dewpt': 9.2, 'uv': 0, 'dni': 0, 'wind_dir': 198, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02n', 'code': 801}, 'temp': 16.5, 'app_temp': 16.5, 'pop': 0, 'ozone': 301.5, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 5, 'timestamp_utc': '2022-10-16T03:00:00', 'timestamp_local': '2022-10-15T23:00:00', 'wind_gust_spd': 10.59, 'clouds': 5, 'solar_rad': 0}, {'wind_cdir': 'SSW', 'rh': 67, 'pod': 'n', 'pres': 1010, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 3.72, 'wind_cdir_full': 'south-southwest', 'slp': 1018, 'datetime': '2022-10-16:06', 'ts': 1665900000, 'dewpt': 9.4, 'uv': 0, 'dni': 0, 'wind_dir': 211, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02n', 'code': 801}, 'temp': 15.5, 'app_temp': 15.5, 'pop': 0, 'ozone': 298.5, 'clouds_hi': 7, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 5, 'timestamp_utc': '2022-10-16T06:00:00', 'timestamp_local': '2022-10-16T02:00:00', 'wind_gust_spd': 11.41, 'clouds': 5, 'solar_rad': 0}, {'wind_cdir': 'SW', 'rh': 70, 'pod': 'n', 'pres': 1009.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 3.26, 'wind_cdir_full': 'southwest', 'slp': 1017.5, 'datetime': '2022-10-16:09', 'ts': 1665910800, 'dewpt': 9.2, 'uv': 0, 'dni': 0, 'wind_dir': 219, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Broken clouds', 'icon': 'c03n', 'code': 803}, 'temp': 14.6, 'app_temp': 14.6, 'pop': 0, 'ozone': 295.5, 'clouds_hi': 5, 'clouds_low': 42, 'snow': 0, 'clouds_mid': 66, 'timestamp_utc': '2022-10-16T09:00:00', 'timestamp_local': '2022-10-16T05:00:00', 'wind_gust_spd': 11.05, 'clouds': 66, 'solar_rad': 0}, {'wind_cdir': 'SW', 'rh': 70, 'pod': 'd', 'pres': 1009.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 3.46, 'wind_cdir_full': 'southwest', 'slp': 1017.5, 'datetime': '2022-10-16:12', 'ts': 1665921600, 'dewpt': 9.3, 'uv': 1.5, 'dni': 374.41, 'wind_dir': 222, 'ghi': 77.72, 'dhi': 42.37, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02d', 'code': 801}, 'temp': 14.8, 'app_temp': 14.8, 'pop': 0, 'ozone': 295.3, 'clouds_hi': 5, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 1, 'timestamp_utc': '2022-10-16T12:00:00', 'timestamp_local': '2022-10-16T08:00:00', 'wind_gust_spd': 11.6, 'clouds': 1, 'solar_rad': 77.719986}, {'wind_cdir': 'WSW', 'rh': 42, 'pod': 'd', 'pres': 1010, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 5.24, 'wind_cdir_full': 'west-southwest', 'slp': 1018, 'datetime': '2022-10-16:15', 'ts': 1665932400, 'dewpt': 9.3, 'uv': 3.4, 'dni': 840.27, 'wind_dir': 256, 'ghi': 605.16, 'dhi': 103.81, 'precip': 0, 'weather': {'description': 'Scattered clouds', 'icon': 'c02d', 'code': 802}, 'temp': 22.9, 'app_temp': 22.4, 'pop': 0, 'ozone': 296.8, 'clouds_hi': 96, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 4, 'timestamp_utc': '2022-10-16T15:00:00', 'timestamp_local': '2022-10-16T11:00:00', 'wind_gust_spd': 9.11, 'clouds': 24, 'solar_rad': 600.8489}, {'wind_cdir': 'WSW', 'rh': 38, 'pod': 'd', 'pres': 1008, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 4.48, 'wind_cdir_full': 'west-southwest', 'slp': 1016, 'datetime': '2022-10-16:18', 'ts': 1665943200, 'dewpt': 10.1, 'uv': 1.7, 'dni': 872.85, 'wind_dir': 258, 'ghi': 697.85, 'dhi': 109.91, 'precip': 0, 'weather': {'description': 'Overcast clouds', 'icon': 'c04d', 'code': 804}, 'temp': 25.4, 'app_temp': 25, 'pop': 0, 'ozone': 294.8, 'clouds_hi': 100, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 96, 'timestamp_utc': '2022-10-16T18:00:00', 'timestamp_local': '2022-10-16T14:00:00', 'wind_gust_spd': 5.4, 'clouds': 96, 'solar_rad': 160.79834}, {'wind_cdir': 'WSW', 'rh': 44, 'pod': 'd', 'pres': 1007.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 2.86, 'wind_cdir_full': 'west-southwest', 'slp': 1015, 'datetime': '2022-10-16:21', 'ts': 1665954000, 'dewpt': 12, 'uv': 1.6, 'dni': 643.57, 'wind_dir': 240, 'ghi': 261.96, 'dhi': 73.15, 'precip': 0, 'weather': {'description': 'Scattered clouds', 'icon': 'c02d', 'code': 802}, 'temp': 25.1, 'app_temp': 24.8, 'pop': 0, 'ozone': 294.3, 'clouds_hi': 100, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 5, 'timestamp_utc': '2022-10-16T21:00:00', 'timestamp_local': '2022-10-16T17:00:00', 'wind_gust_spd': 4.3, 'clouds': 25, 'solar_rad': 251.26399}, {'wind_cdir': 'W', 'rh': 52, 'pod': 'n', 'pres': 1007.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 1.62, 'wind_cdir_full': 'west', 'slp': 1015, 'datetime': '2022-10-17:00', 'ts': 1665964800, 'dewpt': 10.2, 'uv': 0, 'dni': 0, 'wind_dir': 261, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Scattered clouds', 'icon': 'c02n', 'code': 802}, 'temp': 20.3, 'app_temp': 19.8, 'pop': 0, 'ozone': 290.5, 'clouds_hi': 98, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 36, 'timestamp_utc': '2022-10-17T00:00:00', 'timestamp_local': '2022-10-16T20:00:00', 'wind_gust_spd': 1.72, 'clouds': 36, 'solar_rad': 0}, {'wind_cdir': 'WNW', 'rh': 66, 'pod': 'n', 'pres': 1007, 'snow_depth': 0, 'vis': 23.744, 'wind_spd': 1.74, 'wind_cdir_full': 'west-northwest', 'slp': 1015, 'datetime': '2022-10-17:03', 'ts': 1665975600, 'dewpt': 12, 'uv': 0, 'dni': 0, 'wind_dir': 286, 'ghi': 0, 'dhi': 0, 'precip': 0.0625, 'weather': {'description': 'Overcast clouds', 'icon': 'c04n', 'code': 804}, 'temp': 18.4, 'app_temp': 18.1, 'pop': 10, 'ozone': 291.5, 'clouds_hi': 100, 'clouds_low': 3, 'snow': 0, 'clouds_mid': 100, 'timestamp_utc': '2022-10-17T03:00:00', 'timestamp_local': '2022-10-16T23:00:00', 'wind_gust_spd': 1.71, 'clouds': 100, 'solar_rad': 0}, {'wind_cdir': 'NNW', 'rh': 85, 'pod': 'n', 'pres': 1006, 'snow_depth': 0, 'vis': 17.952, 'wind_spd': 1.81, 'wind_cdir_full': 'north-northwest', 'slp': 1014, 'datetime': '2022-10-17:06', 'ts': 1665986400, 'dewpt': 14.2, 'uv': 0, 'dni': 0, 'wind_dir': 329, 'ghi': 0, 'dhi': 0, 'precip': 0.3125, 'weather': {'description': 'Overcast clouds', 'icon': 'c04n', 'code': 804}, 'temp': 16.7, 'app_temp': 16.7, 'pop': 30, 'ozone': 291.5, 'clouds_hi': 100, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 100, 'timestamp_utc': '2022-10-17T06:00:00', 'timestamp_local': '2022-10-17T02:00:00', 'wind_gust_spd': 1.82, 'clouds': 100, 'solar_rad': 0}, {'wind_cdir': 'N', 'rh': 94, 'pod': 'n', 'pres': 1005.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 2.26, 'wind_cdir_full': 'north', 'slp': 1013.5, 'datetime': '2022-10-17:09', 'ts': 1665997200, 'dewpt': 14.9, 'uv': 0, 'dni': 0, 'wind_dir': 4, 'ghi': 0, 'dhi': 0, 'precip': 0.6875, 'weather': {'description': 'Drizzle', 'icon': 'd02n', 'code': 301}, 'temp': 15.8, 'app_temp': 15.8, 'pop': 50, 'ozone': 292.8, 'clouds_hi': 100, 'clouds_low': 5, 'snow': 0, 'clouds_mid': 100, 'timestamp_utc': '2022-10-17T09:00:00', 'timestamp_local': '2022-10-17T05:00:00', 'wind_gust_spd': 5.01, 'clouds': 100, 'solar_rad': 0}, {'wind_cdir': 'ENE', 'rh': 90, 'pod': 'd', 'pres': 1005.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 2.79, 'wind_cdir_full': 'east-northeast', 'slp': 1013.5, 'datetime': '2022-10-17:12', 'ts': 1666008000, 'dewpt': 12.7, 'uv': 0.5, 'dni': 367.46, 'wind_dir': 67, 'ghi': 75, 'dhi': 41.68, 'precip': 0.125, 'weather': {'description': 'Overcast clouds', 'icon': 'c04d', 'code': 804}, 'temp': 14.3, 'app_temp': 14.3, 'pop': 15, 'ozone': 299.5, 'clouds_hi': 100, 'clouds_low': 36, 'snow': 0, 'clouds_mid': 100, 'timestamp_utc': '2022-10-17T12:00:00', 'timestamp_local': '2022-10-17T08:00:00', 'wind_gust_spd': 5.7, 'clouds': 100, 'solar_rad': 46.018112}, {'wind_cdir': 'S', 'rh': 75, 'pod': 'd', 'pres': 1005.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 1.08, 'wind_cdir_full': 'south', 'slp': 1013.5, 'datetime': '2022-10-17:15', 'ts': 1666018800, 'dewpt': 13.1, 'uv': 3.9, 'dni': 838.92, 'wind_dir': 177, 'ghi': 600.7, 'dhi': 103.53, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02d', 'code': 801}, 'temp': 17.6, 'app_temp': 17.6, 'pop': 0, 'ozone': 304.5, 'clouds_hi': 0, 'clouds_low': 5, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-17T15:00:00', 'timestamp_local': '2022-10-17T11:00:00', 'wind_gust_spd': 1.11, 'clouds': 5, 'solar_rad': 578.8584}, {'wind_cdir': 'WNW', 'rh': 62, 'pod': 'd', 'pres': 1003, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 2.22, 'wind_cdir_full': 'west-northwest', 'slp': 1011, 'datetime': '2022-10-17:18', 'ts': 1666029600, 'dewpt': 13.1, 'uv': 4.6, 'dni': 871.52, 'wind_dir': 282, 'ghi': 692.61, 'dhi': 109.62, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02d', 'code': 801}, 'temp': 20.6, 'app_temp': 20.3, 'pop': 0, 'ozone': 302.5, 'clouds_hi': 9, 'clouds_low': 13, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-17T18:00:00', 'timestamp_local': '2022-10-17T14:00:00', 'wind_gust_spd': 3.21, 'clouds': 13, 'solar_rad': 667.0405}, {'wind_cdir': 'WNW', 'rh': 64, 'pod': 'd', 'pres': 1001.5, 'snow_depth': 0, 'vis': 23.36, 'wind_spd': 3.34, 'wind_cdir_full': 'west-northwest', 'slp': 1009.5, 'datetime': '2022-10-17:21', 'ts': 1666040400, 'dewpt': 13.7, 'uv': 0.6, 'dni': 639.38, 'wind_dir': 298, 'ghi': 257.09, 'dhi': 72.58, 'precip': 0.1875, 'weather': {'description': 'Overcast clouds', 'icon': 'c04d', 'code': 804}, 'temp': 20.8, 'app_temp': 20.6, 'pop': 15, 'ozone': 297.5, 'clouds_hi': 43, 'clouds_low': 100, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-17T21:00:00', 'timestamp_local': '2022-10-17T17:00:00', 'wind_gust_spd': 5.51, 'clouds': 100, 'solar_rad': 87.72631}, {'wind_cdir': 'NNE', 'rh': 51, 'pod': 'n', 'pres': 1001.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 3.32, 'wind_cdir_full': 'north-northeast', 'slp': 1009.5, 'datetime': '2022-10-18:00', 'ts': 1666051200, 'dewpt': 8.3, 'uv': 0, 'dni': 0, 'wind_dir': 12, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02n', 'code': 801}, 'temp': 18.6, 'app_temp': 17.9, 'pop': 0, 'ozone': 296.5, 'clouds_hi': 18, 'clouds_low': 7, 'snow': 0, 'clouds_mid': 5, 'timestamp_utc': '2022-10-18T00:00:00', 'timestamp_local': '2022-10-17T20:00:00', 'wind_gust_spd': 6.11, 'clouds': 7, 'solar_rad': 0}, {'wind_cdir': 'N', 'rh': 43, 'pod': 'n', 'pres': 1003.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 4.88, 'wind_cdir_full': 'north', 'slp': 1011.5, 'datetime': '2022-10-18:03', 'ts': 1666062000, 'dewpt': 2.5, 'uv': 0, 'dni': 0, 'wind_dir': 4, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02n', 'code': 801}, 'temp': 15, 'app_temp': 15, 'pop': 0, 'ozone': 295.8, 'clouds_hi': 50, 'clouds_low': 20, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-18T03:00:00', 'timestamp_local': '2022-10-17T23:00:00', 'wind_gust_spd': 10.1, 'clouds': 20, 'solar_rad': 0}, {'wind_cdir': 'N', 'rh': 49, 'pod': 'n', 'pres': 1003.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 4.35, 'wind_cdir_full': 'north', 'slp': 1011.5, 'datetime': '2022-10-18:06', 'ts': 1666072800, 'dewpt': 2.5, 'uv': 0, 'dni': 0, 'wind_dir': 11, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Overcast clouds', 'icon': 'c04n', 'code': 804}, 'temp': 12.9, 'app_temp': 12.9, 'pop': 0, 'ozone': 293.8, 'clouds_hi': 27, 'clouds_low': 77, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-18T06:00:00', 'timestamp_local': '2022-10-18T02:00:00', 'wind_gust_spd': 8.5, 'clouds': 77, 'solar_rad': 0}, {'wind_cdir': 'N', 'rh': 52, 'pod': 'n', 'pres': 1003, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 3.02, 'wind_cdir_full': 'north', 'slp': 1011, 'datetime': '2022-10-18:09', 'ts': 1666083600, 'dewpt': 1.9, 'uv': 0, 'dni': 0, 'wind_dir': 7, 'ghi': 0, 'dhi': 0, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02n', 'code': 801}, 'temp': 11.4, 'app_temp': 11.4, 'pop': 0, 'ozone': 292.3, 'clouds_hi': 5, 'clouds_low': 8, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-18T09:00:00', 'timestamp_local': '2022-10-18T05:00:00', 'wind_gust_spd': 7.11, 'clouds': 8, 'solar_rad': 0}, {'wind_cdir': 'NNW', 'rh': 57, 'pod': 'd', 'pres': 1003.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 2.61, 'wind_cdir_full': 'north-northwest', 'slp': 1011.5, 'datetime': '2022-10-18:12', 'ts': 1666094400, 'dewpt': 1.8, 'uv': 1.4, 'dni': 360.32, 'wind_dir': 346, 'ghi': 72.29, 'dhi': 40.99, 'precip': 0, 'weather': {'description': 'Few clouds', 'icon': 'c02d', 'code': 801}, 'temp': 9.9, 'app_temp': 9.9, 'pop': 0, 'ozone': 290, 'clouds_hi': 0, 'clouds_low': 16, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-18T12:00:00', 'timestamp_local': '2022-10-18T08:00:00', 'wind_gust_spd': 6.21, 'clouds': 16, 'solar_rad': 72.16471}, {'wind_cdir': 'NNW', 'rh': 34, 'pod': 'd', 'pres': 1004, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 5.14, 'wind_cdir_full': 'north-northwest', 'slp': 1012, 'datetime': '2022-10-18:15', 'ts': 1666105200, 'dewpt': -0.5, 'uv': 4, 'dni': 837.54, 'wind_dir': 327, 'ghi': 596.21, 'dhi': 103.26, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01d', 'code': 800}, 'temp': 15.3, 'app_temp': 15.3, 'pop': 0, 'ozone': 289.8, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-18T15:00:00', 'timestamp_local': '2022-10-18T11:00:00', 'wind_gust_spd': 6.41, 'clouds': 0, 'solar_rad': 596.21}, {'wind_cdir': 'NW', 'rh': 31, 'pod': 'd', 'pres': 1002.5, 'snow_depth': 0, 'vis': 24.128, 'wind_spd': 5.54, 'wind_cdir_full': 'northwest', 'slp': 1010.5, 'datetime': '2022-10-18:18', 'ts': 1666116000, 'dewpt': 0.2, 'uv': 5, 'dni': 870.16, 'wind_dir': 310, 'ghi': 687.38, 'dhi': 109.32, 'precip': 0, 'weather': {'description': 'Clear Sky', 'icon': 'c01d', 'code': 800}, 'temp': 17.5, 'app_temp': 17.5, 'pop': 0, 'ozone': 287.8, 'clouds_hi': 0, 'clouds_low': 0, 'snow': 0, 'clouds_mid': 0, 'timestamp_utc': '2022-10-18T18:00:00', 'timestamp_local': '2022-10-18T14:00:00', 'wind_gust_spd': 6.82, 'clouds': 0, 'solar_rad': 687.38}], 'city_name': 'Four Oaks', 'country_code': 'US'}
NC