Finding the API -- All the way from Mars
Now, we'll get the weather data all the way from Mars. No, I'm not really joking. Refer to http://bit.ly/MarsWeatherAPI, which describes the API and gives a little science background, if you are interested. This API is set up to consume XML data from, and return it in, a JSON or JSONP format. The following is the resulting data, which you can also get by referring to: http://marsweather.ingenology.com/v1/latest/.
{ "report": { "terrestrial_date": "2019-04-21", "sol": 2250, "ls": 66.0, "min_temp": -80.0, "min_temp_fahrenheit": -112.0, "max_temp": -27.0, "max_temp_fahrenheit": -16.6, "pressure": 878.0, "pressure_string": "Higher", "abs_humidity": null, "wind_speed": null, "wind_direction": "--", "atmo_opacity": "Sunny", "season": "Month 4", "sunrise": "2019-04-21T11:02:00Z", "sunset": "2019-04-21T22:47:00Z" } }
We can fairly easily turn this into our JSON object. First, let's test the...