„README.md“ ändern
This commit is contained in:
parent
c58223af5b
commit
46d9f966ca
|
@ -24,7 +24,7 @@ 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 +33,11 @@ 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 +46,4 @@ 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