📝 Update Readme
This commit is contained in:
parent
9b79b004e5
commit
512a684828
1 changed files with 19 additions and 1 deletions
20
README.md
20
README.md
|
@ -20,7 +20,7 @@ GND: GND
|
|||
|
||||
## Software setup
|
||||
|
||||
- Copy the `.env.example` to `.env` and change it to your needs.
|
||||
- Copy the `.env.example` to `/etc/powermeter-environment` and change it to your needs.
|
||||
- Acivate at least InfluxDB (which I would recommend) or Flask output.
|
||||
|
||||
Clone this repository and create a virtualenv within it:
|
||||
|
@ -28,8 +28,20 @@ Clone this repository and create a virtualenv within it:
|
|||
```
|
||||
git clone https://code.f2n.me/finn/powermeter.git
|
||||
cd powermeter
|
||||
cp .env.example /etc/powermeter-environment
|
||||
cp powermeter.service /etc/systemd/system/powermeter.service
|
||||
systemctl enable powermeter
|
||||
systemctl start powermeter
|
||||
```
|
||||
|
||||
For Flask app also to the following steps:
|
||||
|
||||
```
|
||||
virtualenv .
|
||||
pip install -r requirements.txt
|
||||
cp apache2_sample_config.conf /etc/apache2/sites-available/powermeter.conf # modifiy to fit your needs
|
||||
a2ensite powermeter
|
||||
systemctl reload apache2
|
||||
```
|
||||
|
||||
## Developing (Flask app)
|
||||
|
@ -42,6 +54,12 @@ export APP_DEVELOPMENT_DATABASE_URI=postgres://username:passwort@hostname/databa
|
|||
flask run
|
||||
```
|
||||
|
||||
## Future thoughts
|
||||
|
||||
- build container for flask app
|
||||
- Microcontroller edition
|
||||
- and more
|
||||
|
||||
## Screenshots
|
||||
|
||||
Node-RED usage example:
|
||||
|
|
Loading…
Reference in a new issue