Comments (5)
If you run dsmr-reader in a docker container you can change the nginx configuration within the container using the docker console. You can create the htpasswd file, uncomment the things mentioned in the nginx dsmr-webserver config and restart the dsmr container. This will probably break when updating the docker container, but fine for a temporary workaround :)
Don't forget to update the datalogger to add the password if you make use of the API! I already had my own python script to get data from the smart-meter so adding the auth data to the request was very easy. I haven't looked into whether the datalogger supports the auth out-of-the-box. But even then, it's easy to modify the datalogger python code, in the file 'dsmr-reader/dsmr_datalogger/scripts/dsmr_datalogger_api_client.py' update the following code (I've added the auth line):
response = requests.post(
api_url,
auth=('USERNAME', 'PASSWORD'),
headers={'X-AUTHKEY': api_key},
data={'telegram': telegram},
)
from dsmr-reader-docker.
Sure, should be easy. I`ll look into it.
from dsmr-reader-docker.
I'm curious if you have already looked into this?
from dsmr-reader-docker.
Thanks for your suggestion!
I am using Traefik and added basic auth to the rule file:
[frontends.dsmr.auth.basic]
removeHeader = true
users = [
"XX"
]
from dsmr-reader-docker.
The problem is that the creator of dsmr reader isn't that familiar with Docker. Don't get me wrong, he did a great job creating this application, but it's a pain in the ass to use with Docker. Currently I`m looking into his code to see if I can create a pull request to make it more easy to use with Docker.
from dsmr-reader-docker.
Related Issues (20)
- NGINX port incorrect after restart when using NGINX_LISTEN_PORT HOT 2
- Container does not start: 20-set-app-defaults: line 213: syntax error near unexpected token `}' HOT 2
- ENABLE_NGINX_SSL does not work anymore HOT 4
- Database is not restoring HOT 1
- Can't connect to a postgres DB using encryption HOT 1
- Documentation request HOT 1
- Mqtt stopt met werken HOT 21
- Wrong media type for manifest HOT 1
- Upgrade the PostgreSQL client portion to version 15 in the docker-image HOT 3
- pg_dump: error :aborting because of server version mismatch HOT 11
- Missing docs / install & configure HOT 4
- Postgres update from 10 to 15 failed (with fix for: User "dsmrreader" does not have a valid SCRAM secret) HOT 6
- Docker container in warning status, logs with errors HOT 7
- SyntaxWarning: invalid escape sequence '\d' HOT 6
- Webinterface not starting on 2024.02.03 HOT 8
- Update path HOT 6
- Postgresql client Upgrade (pg_dump) HOT 47
- Support for docker secrets HOT 16
- MQTT werkt niet meer "Publish_split_topic_meter_statistics() failed: nextval: reached maximum" HOT 3
- DSMR-Reader losing conenction to datalogger since last update (:latest) HOT 48
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsmr-reader-docker.