Skip to content

Commit

Permalink
Merge pull request #17 from mdrocan/docu_fix_v1
Browse files Browse the repository at this point in the history
Docu fix v1
  • Loading branch information
mdrocan authored Sep 17, 2023
2 parents 4ae4856 + 776e543 commit 4fe45e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@
## Architecture

By default the script uses a config file 'config.json', a template is [here](config.json.template).
Currently there are two settings to be defined: URL and maximum capacity.

Currently there are two configurations you need to define in the Fronius part: URL and maximum capacity.
For the InfluxDB part you need to define: token, bucket and organization.

There's also a possibility to use a example response message in a Docker environment:

- The Dockerfile can be found from [here](web_server).
- Example message message [here](web_server/GetPowerFlowRealtimeData.fcgi).
- If you use the Docker environment the URL must be defined like your Docker environment has been
started up. For example: `http://localhost:8080/GetPowerFlowRealtimeData.fcgi>`.
started up. For example: `http://localhost:8080/GetPowerFlowRealtimeData.fcgi`.

## Development
Development activities happen mainly in the [development] (https://github.com/mdrocan/Fronius-stats/tree/development) branch.
Expand Down
8 changes: 3 additions & 5 deletions web_server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM nginx:1.25.2

HEALTHCHECK CMD curl --fail http://localhost:80 || exit 1
FROM nginx:mainline-alpine3.18-slim

LABEL testing-service="Mocking Fronius Inverter"
USER nginx
# USER nginx

COPY GetPowerFlowRealtimeData.fcgi /usr/share/nginx/html/GetPowerFlowRealtimeData.fcgi

# HEALTHCHECK CMD curl --fail http://localhost:8080 || exit 1

0 comments on commit 4fe45e7

Please sign in to comment.