Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pillezu/coreGM4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant SMHI Integration Project - Group Milestone 4

Overview

This project integrates Swedish Meteorological and Hydrological Institute (SMHI) weather data into Home Assistant, providing users with comprehensive weather information across Sweden.

Group Members

faeazehmhmdi - Faezeh Mohammadi
FN890 - Filip Nordquist
RasmusOtterlind - Rasumus Otterlind
sam-salek - Sam Salek
Xerxz - Simon Andersson
pillezu - Viktor Berggren

Features

  • Interactive Weather Map: Displays real-time weather data across Sweden.
  • Weather Alerts and Warnings: Provides updates on weather-related warnings.
  • Lightning Impact Visualization: Shows areas affected by lightning strikes.
  • Fire Risk Indicators: Highlights regions with high fire risk levels.
  • Radar Movement on Dashboard: Visualizes weather radar movements.

Getting Started

Prerequisites

  • Docker installed on your machine.
  • Visual Studio Code.

Installation

  1. Install Docker: Follow the instructions on the Docker website to download and install Docker for your operating system.

  2. Clone the Repository:

    • Open Visual Studio Code.
    • Run the command to clone the repository into a Docker container:
    vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https%3A%2F%2Fgithub.com%2Fpillezu%2FcoreGM4
    
  3. Configure state variables

The new features require state variables to be added in the configuration.yaml file.

  • Add the following code at the end of the file:

    input_boolean:
    display_fire_risk:
      name: Display Fire Risk
      initial: off
      icon: mdi:fire-alert
    
    display_weather:
      name: Display Weather
      initial: off
      icon: mdi:weather-partly-cloudy
    
    display_warnings:
      name: Display Warnings
      initial: off
      icon: mdi:alert-circle
    
    display_lightning:
      name: Display Lightning
      initial: off
      icon: mdi:weather-lightning
  1. Run Home Assistant:
    • For Mac: Press Shift+Command+P
    • For Windows/Linux: Press Ctrl+Shift+P
    • Select Tasks: Run Task.
    • Choose Run Home Assistant.

Usage

Accessing SMHI Integration Features

  1. Add the SMHI integration

    • Navigate to Settings.
    • Choose Add integration.
    • Search for smhi and add it.
  2. Edit Dashboard:

    • Navigate to your Home Assistant dashboard.
    • Click on Edit Dashboard.
  3. Show perticipation amount:

    • Click Edit on the smhi card.
    • Select Secondary info attribute and add Perticipation then save.
  4. Add Entities Card:

    • Choose Add Card and select the Entities Card.
    • Add the following entities:
      • Display Fire Risk
      • Display Lightning
      • Display Warnings
      • Display Weather

    These entities control what information is displayed on the map.

  5. Add Picture Card for Radar Map:

    • Add a Picture Card to your dashboard.
    • Include the SMHI Radar Map entity.
    • This displays the radar movement.

Acknowledgments

  • Swedish Meteorological and Hydrological Institute (SMHI) for providing the weather data.

About

🏡 Open source home automation that puts local control and privacy first.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%