1
0
Fork 0

„README.md“ ändern

This commit is contained in:
Manuel Kamper 2023-05-29 07:17:13 +00:00
parent 46d9f966ca
commit 493a3bceb2
1 changed files with 8 additions and 4 deletions

View File

@ -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.
```<VirtualHost *:80>
```
<VirtualHost *:80>
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
</Directory>
CustomLog /var/log/apache2/${LOG} combined
</VirtualHost>```
</VirtualHost>
```
## 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```
attr Solar stateFormat Current: current W, Today: today Wh
```