Skip to content

Commit 1cf4312

Browse files
committed
2 parents 55e7a7e + 521332d commit 1cf4312

File tree

1 file changed

+16
-52
lines changed

1 file changed

+16
-52
lines changed

README.md

Lines changed: 16 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
![License](https://img.shields.io/github/license/aschmere/dwd_global_rad_hass.svg)
44
![Project State](https://img.shields.io/badge/project_state-beta-orange.svg)
55
![Maintained](https://img.shields.io/badge/maintained-yes-brightgreen.svg)
6+
67
## Overview
78
The DWD Global Radiation Home Assistant Integration is a custom component that allows users to integrate global radiation data from the Deutscher Wetterdienst (DWD) into their Home Assistant setup. This integration provides real-time and forecast radiation data, enabling enhanced home automation based on weather conditions.
89

@@ -11,69 +12,32 @@ The DWD Global Radiation Home Assistant Integration is a custom component that a
1112
- **Forecasts**: The data provides forecasts in 1-hour steps up to 17 hours into the future. Forecasts are updated hourly.
1213
- **Configurable**: Easy setup and configuration through the Home Assistant UI.
1314

14-
## Documentation Status
15-
Please note that this documentation is currently in a very early draft state and is actively being worked on. More detailed instructions and examples will be added soon.
16-
1715
## Installation
16+
This integration requires the DWD Global Radiation API Server add-on to be installed. The add-on provides the necessary API services for the integration to work correctly, especially the functionality of the `netCDF4` Python package, which is essential for processing DWD data.
1817

19-
### Important Note on NetCDF Compatibility
20-
NetCDF is a core part of this integration and needs to be installed for the integration to function. However, there is a known incompatibility with the Home Assistant image. For details on this issue, please refer to this [Home Assistant feature request](https://community.home-assistant.io/t/add-compatibility-with-netcdf4-python-package-to-home-assistance-core/734741).
21-
22-
### NetCDF Installation Workaround
23-
24-
#### Background
25-
Home Assistant currently does not support the automatic installation of the Python NetCDF package as a requirement for an Integration. Home Assistant usually tries to install required packages of an Integration as specified in the integration's `manifest.json` file, but in the case of the NetCDF package, it fails currently (status: Home Assistant Core 2024.05.x and Home Assistant OS 12.3 and older). Although the following procedure was tested, u**se at your own risk, as installing your own python packages in the Home Assistant docker container is not considered as a typical end user scenario.
26-
27-
#### Prerequisite
28-
Before applying this workaround, ensure you have an SSH add-on installed with the capability to disable "Protection Mode." One such add-on is available at [SSH & Web Terminal](https://github.com/hassio-addons/addon-ssh).
18+
### Step 1: Register the Custom Repository with HACS
19+
Before installing the integration, the repository must be registered as a custom repository in HACS. Follow these steps:
2920

30-
#### Step-by-Step Guide to Install netCDF4 and cftime in Home Assistant Docker Container
21+
1. Open Home Assistant and go to HACS.
22+
2. Click on the three dots in the top right corner and select "Custom repositories".
23+
3. Add the URL `https://github.com/aschmere/dwd_global_rad_hass` to the "Add custom repository" field.
24+
4. Choose the category as "Integration".
25+
5. Click "Add".
3126

32-
1. **Access your Home Assistant instance via SSH and disabled "Protection Mode".**
33-
2. **Access the Home Assistant Container**:
34-
Use the following command to access the Home Assistant Docker container:
35-
```sh
36-
docker exec -it homeassistant /bin/bash
37-
```
38-
3. **Update Package List and Install Dependencies**:
39-
Update the package list and install the necessary development tools and libraries:
40-
41-
```sh
42-
apk update
43-
apk add --no-cache netcdf-dev hdf5 hdf5-dev gcc g++ python3-dev musl-dev libffi-dev
44-
```
45-
4. **Set Environment Variables:**
46-
```sh
47-
export CFLAGS="-I/usr/include"
48-
export LDFLAGS="-L/usr/lib"
49-
export CPPFLAGS="-I/usr/include"
50-
export HDF5_DIR="/usr"
51-
export NETCDF4_DIR="/usr"
52-
```
53-
5. **Install wheel and Cython:**
54-
```sh
55-
pip install wheel cython
56-
```
57-
6. **Install netCDF4 and cftime:**
58-
```sh
59-
pip install netCDF4 cftime --no-build-isolation
60-
```
61-
7. **Verify Installation:**
62-
```sh
63-
pip list | grep netCDF4
64-
pip list | grep cftime
65-
```
66-
### Installation of the DWD Global Radiation Home Assistant Integration
67-
#### Step 1: Install the Integration via HACS
27+
### Step 2: Install the Integration via HACS
6828
To install this repository using HACS, click the button below:
6929

7030
[![Open your Home Assistant instance and open this repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=aschmere&repository=dwd_global_rad_hass)
71-
#### Step 2: Reboot Home Assistant
31+
32+
### Step 3: Reboot Home Assistant
7233
After installing the integration, reboot Home Assistant to apply the changes.
73-
#### Step 3: Add and Configure the Integration
34+
35+
### Step 4: Add and Configure the Integration
7436
Once Home Assistant has restarted, you can add and configure the `DWD Global Radiation` integration using the config flow. To do this, go to the Home Assistant UI and navigate to `Configuration` > `Integrations` > `Add Integration`, then search for `DWD Global Radiation Forecasts and Data`.
7537

7638
Alternatively, you can use the button below to start the configuration process directly:
7739

7840
[![Open your Home Assistant instance and start setting up this integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=dwd_global_rad)
7941

42+
43+

0 commit comments

Comments
 (0)