This program connects to EForsyning (Danish Distric Heating) publishes the current usage to MQTT.
The application is distributed using a docker image available at jonasmh/eforsyning2mqtt
Example docker-compose:
services:
eforsyning2mqtt:
image: jonasmh/eforsyning2mqtt:latest
environment:
- EForsygningClient__Username=1234
- EForsygningClient__Password=1234
- EForsygningClient__SupplierId=4F2200AF-8833-4237-81D9-E5CEF34582A2
- EForsygningClient__ServerUrl=https://www.hedensted-fjernvarme.dk
- MqttConnection__Server=192.168.0.30
- MqttConnection__Port=1883
- MqttConnection__UseTls=false| Json Key | Environment Varible | Description | Example | Default |
|---|---|---|---|---|
EForsygningClient.Username |
EForsygningClient__Username, |
Username used to login | 1234 |
null |
EForsygningClient.Password |
EForsygningClient__Password, |
Password used to login | 1234 |
null |
EForsygningClient.SupplierId |
EForsygningClient__SupplierId, |
Supplied ID. Can be found be looking for forsyningid in the network tab while browsing the suppliers website |
4F2200AF-8833-4237-81D9-E5CEF34582A2 |
null |
EForsygningClient.ServerUrl |
EForsygningClient__ServerUrl, |
Address of the supplier | https://www.hedensted-fjernvarme.dk |
null |
MqttConnection.Server |
MqttConnection__Server, |
Server address of the MQTT Server | 192.168.1.42 |
mosquitto |
MqttConnection.Port |
MqttConnection__Port, |
Port to connect to the MQTT Server with | 8883 |
8883 |
MqttConnection.UseTls |
MqttConnection__UseTls, |
Use TLS to connect | true/false |
true |
MqttConnection.CaCrt |
MqttConnection__CaCrt, |
CA Certificate | ca.crt |
/data/mosquitto-client-certs/ca.crt |
MqttConnection.ClientCrt |
MqttConnection__ClientCrt, |
Client Certificate | tls.crt |
/data/mosquitto-client-certs/tls.crt |
MqttConnection.ClientKey |
MqttConnection__ClientKey, |
Client Key | tls.key |
/data/mosquitto-client-certs/tls.key |