Skip to content

Custom component for Mars weather sensor using InSight lander data

Notifications You must be signed in to change notification settings

AlbertWigmore/ha-mars-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Custom component for Mars weather sensor using InSight lander data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages