„README.md“ ändern
This commit is contained in:
parent
46d9f966ca
commit
493a3bceb2
12
README.md
12
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.
|
||||
```<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
|
||||
```
|
Loading…
Reference in New Issue