Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.38 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.38 KB

Mars Weather Component

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)

Installation/Configuration

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

sensor:
  - platform: mars_weather
    api_key: !secret nasa_api_key

Weather

weather:
  - platform: mars_weather
    api_key: !secret nasa_api_key

Example Frontend

Here are some examples of how to add the integration to your frontend using the lovelace UI.

Sensor

cards:
  - type: sensor 
    entity: sensor.next_launch

Weather

cards:
  - type: weather-forecast
    entity: weather.mars_weather

Weather Card