„README.md“ ändern
This commit is contained in:
parent
4b422a7997
commit
5896a20d85
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue