Versions Compared

Key

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

...

Configures how telegrams are mapped to the Domain Model.

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, a Diehl Heat Meters and a Engelman Water Meter

Code Block
{
	"mappings":[	
	{
		"comment":"Kampstrup MC603",
		"filter":{
			"formatSignature":"7869",
			"manafacture":"KAM",
			"type":"04",
			"version":53
		},
		"heat":{
			"currentValueIdx":0,
			"flowTemperatureIdx": 5,
			"returnTemperatureIdx": 6,
			"volumeIdx": 3
		}
	},
	{
		"comment":"Diehl Heat Meter",
		"filter":{
			"formatSignature":"9290",
			"manafacture":"DME",
			"type":"04",
			"version":65
		},
		"heat":{
			"currentValueIdx":0,
			"dueDateValueIdx":7,
			"dueDateDateIdx":8			
		}
	},
	{
		"comment":"Engelmann Water Meter",
		"filter":{
			"formatSignature":"052D",
			"manafacture":"EFE",
			"type":"07",
			"version":0
		},
		"water":{
			"currentValueIdx":19,
			"currentDateIdx":18,
			"dueDateValueIdx":1,
			"dueDateDateIdx":0
		}
	}
  ]
}

The Mapping contains 3 Parts:

  • A comment so humans can identify the mappings.
  • A filter part to select telegrams that the mapping shall be applied to. The mapping is applied if all filters match true.
  • A object "heat" or "water" defining which values of the telegram shall be mapped in to which Field of a Domain Model output.


API Endpoint

curl Example: (With mapping from: domainMappings.json File)

...