From 493a3bceb2d7be9b0e46ef8334cc40127b1d4fcd Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Mon, 29 May 2023 07:17:13 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dae9ca4..23ef8d2 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,8 @@ In file index.php insert your database connection details. Do this also in solar ## Apache mysql example This example shows how to set up the JSON API in apache2. -``` +``` + ProxyPreserveHost On ServerName automation.${MYDOMAIN} Alias /solarapi "/opt/hoymiles/www" @@ -33,11 +34,13 @@ This example shows how to set up the JSON API in apache2. Require all granted CustomLog /var/log/apache2/${LOG} combined -``` + +``` ## FHEM example This is an example, how you can show the data in your FHEM instance. -```define Solar HTTPMOD 0 +``` +define Solar HTTPMOD 0 setuuid Solar 64744ab5-f33f-1b7d-ecc0-8b30ed24e4a4b55a attr Solar event-on-change-reading .* attr Solar extractAllJSON 1 @@ -46,4 +49,5 @@ attr Solar get01Poll 1 attr Solar get01URL http://your-automation-host/solarapi/index.php attr Solar icon sani_solar attr Solar room Solar -attr Solar stateFormat Current: current W, Today: today Wh``` \ No newline at end of file +attr Solar stateFormat Current: current W, Today: today Wh +``` \ No newline at end of file