From 512a684828115ad6c079710586d1a575861b01f7 Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Tue, 8 Oct 2024 22:15:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20Readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 437bdd1..a1b89e1 100644 --- a/README.md +++ b/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: