This is a custom component for Home Assistant that provides Mars weather information.
It uses the NASA Open APIs to retrieve data from Mars InSight Lander. It provides the following information:
- Sol
- Temperature (C)
- Air Pressure (Pa)
- Wind Speed (kmph)
To install the component, clone this repository and copy the mars_weather
directory to your custom components directory in your config.
config_dir/custom_components/mars_weather
You will also need to register an account to get an API key. To generate a key, go to the NASA Open API page and register.
To register the integration in home assistant you will need to add it to your configuration. There is a choice between a sensor and weather type entity.
sensor:
- platform: mars_weather
api_key: !secret nasa_api_key
weather:
- platform: mars_weather
api_key: !secret nasa_api_key
Here are some examples of how to add the integration to your frontend using the lovelace UI.
cards:
- type: sensor
entity: sensor.next_launch
cards:
- type: weather-forecast
entity: weather.mars_weather