1
0
Fork 0

„README.md“ ändern

This commit is contained in:
Manuel Kamper 2023-05-29 07:16:06 +00:00
parent 22141ab2d7
commit c58223af5b
1 changed files with 4 additions and 4 deletions

View File

@ -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.
<code><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></code>
</VirtualHost>´´´
## FHEM example
This is an example, how you can show the data in your FHEM instance.
<code>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</code>
attr Solar stateFormat Current: current W, Today: today Wh´´´