1
0
Fork 0

„README.md“ ändern

This commit is contained in:
Manuel Kamper 2023-05-29 07:31:05 +00:00
parent 4b422a7997
commit 5896a20d85
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ Use the script solardata.sql to create your database for storing solar data. Mak
In file index.php insert your database connection details. Do this also in solar.py, where you add also your Hoymiles credentials for login.
## 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>
To check, if the service is running, use the following command:
<code>sudo systemctl status solar</code>
## Apache mysql example
This example shows how to set up the JSON API in apache2.