From 815963523cfbd48b9819c43009d2e4a40f0a1986 Mon Sep 17 00:00:00 2001 From: Mikko Drocan Date: Thu, 7 Sep 2023 18:49:17 +0300 Subject: [PATCH 1/2] added short readme doc --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..91d4102 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Fronius-stats + +Simple Python script that fetches data from a predefined Fronius inverter. +Displays: timestamp, current production and how much has been produced during the (day, year) so far. + +## Script execution +Execute in the terminal with the following command: 'python3 fronius.py' +After script execution the data is fetched from the inverter and trimmed. + +## Architecture +By default it fetches the URL being used froma file called 'api.txt'. + +There's also a possibility to use a example response message in a Docker environment. +In order to use the Docker web service you must edit the python source and comment/uncomment the necessary lines. +The Docker setup can be found from web_server-directory. + + +## Next steps + +Save data to a database. +Visualize the data. \ No newline at end of file From 1827724c29c917a69db7d76220c9eca3072358a5 Mon Sep 17 00:00:00 2001 From: Mikko Drocan Date: Thu, 7 Sep 2023 19:10:23 +0300 Subject: [PATCH 2/2] typo in action --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a2b4fa3..63ef86f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,5 +27,5 @@ jobs: uses: oxsecurity/megalinter/flavors/python@beta env: VALIDATE_ALL_CODEBASE: true - DEFAULT_BRANCH: master + DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}