Imports data from the LUBW API.


config example:

<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews"
					 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
					 xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd">
	<import>
		<general>
			<importType>LUBWImport</importType>
			<serverUrl>https://rest.hlz-hvz.de/api/v1/messwerte.php</serverUrl>
			<user>user</user>
			<password>password</password>
            <relativeViewPeriod unit="hour" start="-24" end="1" startOverrulable="true" endOverrulable="true"/>
			<idMapId>LUBWImportIdMap</idMapId>
			<importTimeZone>
				<timeZoneOffset>+00:00</timeZoneOffset>
			</importTimeZone>
		</general>
		<timeSeriesSet>
			<moduleInstanceId>LUBWImport</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>parameter id</parameterId>
			<locationId>location id</locationId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant" />
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun>


Example response:

[
  {
    "sr_id": 7,
    "k_id": 22010,
    "mr_id": 20065,
    "mr_datzeit": "2025-03-28 23:00:00",
    "mr_mw": 274.3,
    "mr_pv": 0,
    "wann": "2025-03-28 23:04:58",
    "wann_upd": null
  },
  {
    "sr_id": 7,
    "k_id": 22010,
    "mr_id": 20065,
    "mr_datzeit": "2025-03-28 23:15:00",
    "mr_mw": 274.5,
    "mr_pv": 0,
    "wann": "2025-03-28 23:20:17",
    "wann_upd": null
  },
  {
    "sr_id": 7,
    "k_id": 22010,
    "mr_id": 20065,
    "mr_datzeit": "2025-03-28 23:30:00",
    "mr_mw": 274.8,
    "mr_pv": 0,
    "wann": "2025-03-28 23:33:12",
    "wann_upd": null
  }
]


  • No labels