1
0
Fork 0

„README.md“ ändern

This commit is contained in:
Manuel Kamper 2023-05-29 07:32:33 +00:00
parent 5896a20d85
commit cd1728d835
1 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Hoymiles-Solar-Database-FHEM
Queries the solar data from Hoymiles API and stores it in a database and shows it in FHEM.
Queries the solar data from Hoymiles API and stores it in a database and shows it in FHEM.
## Prerequisites
Make sure you have installed apache2 with php8.1 (and mysql extension). You need python3 too with mysql connector:
@ -23,12 +23,12 @@ In file index.php insert your database connection details. Do this also in solar
## Run python script as a service
Copy the file solar.service into the correct path (depends on your os). For example in Ubuntu 20.04 it is /etc/systemd/system/.
Run the following commands to start the service and enable it to restart automatically on server reboot:
<code>sudo systemctl daemon-reload</code>
<code>sudo systemctl stop solar</code>
<code>sudo systemctl enable solar</code>
<code>sudo systemctl start solar</code>
<code>sudo systemctl daemon-reload</code>
<code>sudo systemctl stop solar</code>
<code>sudo systemctl enable solar</code>
<code>sudo systemctl start solar</code>
To check, if the service is running, use the following command:
<code>sudo systemctl status solar</code>
<code>sudo systemctl status solar</code>
## Apache mysql example
This example shows how to set up the JSON API in apache2.
@ -46,7 +46,7 @@ This example shows how to set up the JSON API in apache2.
```
## FHEM example
This is an example, how you can show the data in your FHEM instance.
This is an example, how you can show the data in your FHEM instance.
```
define Solar HTTPMOD 0
setuuid Solar 64744ab5-f33f-1b7d-ecc0-8b30ed24e4a4b55a