Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Mapping contains a filter part to select telegrams that the mapping shall be applied to. The mapping is applied if all filters match true.

Example Configuration for Kampstrup MC603

Code Block
{
	"mappings":[	
	{
		"comment":"Kampstrup MC603 in SEAS Konfiguration",
		"filter":{
			"formatSignature":"7869",
			"manafacture":"KAM",
			"type":"04",
			"version":53
		},
		"heat":{
			"currentValueIdx":0,
			"flowTemperatureIdx": 5,
			"returnTemperatureIdx": 6,
			"volumeIdx": 3
		}
	}
	]
}

...

Path: /api/meterData

URL Params:

raw: Raw OMS/WMBUS Telegram in Hex: raw=44442d2c0198508035048d20aac070c420dd3d967a564c53dfe4dedfbc45e8d41912db6c0973921bef3c2d5dc8d3b6fe01cc272258cd728f825a2d2e76b256fd722680

MeterKey: WMBUS Mode 5/7 key for decryption as Hex String: key=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

...

Code Block
curl -X 'POST' \  'localhost:8082/api/meterData?raw=44442d2c0198508035048d20aac070c420dd3d967a564c53dfe4dedfbc45e8d41912db6c0973921bef3c2d5dc8d3b6fe01cc272258cd728f825a2d2e76b256fd722680&key=7ADA08C8C89C7D21EAEE6F662BF0A6ED' \
-H 'accept: \ application/json' -H 'Authorization: Bearer eyJh[...]' -H "Content-Type: application/json" -d @domainMappings.json 


Metering Domain Model

Example output of a Kampstrup MC603 with the example Configuration from Mapping Configuration

Code Block
{
  "id": "KAM80509801532022-01-24T14:55:50+01:00",
  "type": "HeatMeterReading",
  "meterId": "80509801",
  "linkLayerId": "80509801",
  "meterType": 4,
  "manufacturer": "KAM",
  "manufacturerLinkLayer": "KAM",
  "version": 53,
  "versionLinkLayer": 0,
  "currentValue": {
    "date": "2022-01-24T14:55:50.171063+01:00",
    "value": 0,
    "unit": "Wh"
  },
  "flowTemperature": {
    "date": "2022-01-24T14:55:50.171063+01:00",
    "value": 24.08,
    "unit": "°C"
  },
  "returnTemperature": {
    "date": "2022-01-24T14:55:50.171063+01:00",
    "value": 23.96,
    "unit": "°C"
  },
  "volume": {
    "date": "2022-01-24T14:55:50.171063+01:00",
    "value": 0,
    "unit": "m^3"
  }
}

...