Skip to content

Get Tank Data

Fetch and merge tank data from ATEK systems by combining data from three API endpoints: assets, locations, and current readings.

getTankData

This operation has no configurable parameters. It automatically fetches all available tank data from the configured ATEK API.

The ATEK node fetches data from three endpoints in parallel:

  1. Assets (/asset) - Tank asset information including IDs and categories
  2. Locations (/location) - Location data with GPS coordinates
  3. Current Readings (/currentAssetReading) - Latest sensor readings per asset

The data is then merged by:

  • Joining assets with locations on LocationName = Name
  • Joining with readings on AssetId
  • Pivoting reading fields (Air Gap, Empty, FluidLevel, Full, STATUS, Temperature, Battery, % Full)

Returns an array of normalized tank data records:

{
"tank_id": "ASSET001",
"tank_name": "Tank A",
"reading_time": "2024-01-15 14:30:00",
"location_name": "Main Facility",
"location_type": "Commercial",
"gps_latitude": 32.7767,
"gps_longitude": -96.7970,
"foid": "FOID001",
"alert_level": "Normal",
"category_id": "CAT001",
"category_name": "Propane Tank",
"air_gap": 12.5,
"empty_level": 0,
"fluid_level": 850.3,
"full_level": 1000,
"status": "Active",
"temperature": 72.5,
"battery": 95,
"fill_percentage": 85
}
{
"error": "ATEK credential is missing apiUrl",
"record": {}
}
FieldTypeDescription
tank_idstringAsset ID from ATEK
tank_namestringAsset name from readings
reading_timestringUTC timestamp of last reading
location_namestringLocation name
location_typestringLocation type from locations endpoint
gps_latitudenumberGPS latitude coordinate
gps_longitudenumberGPS longitude coordinate
foidstringFOID identifier
alert_levelstringCurrent alert level
category_idstringAsset category ID
category_namestringAsset category name
air_gapnumberAir gap reading
empty_levelnumberEmpty level reading
fluid_levelnumberCurrent fluid level
full_levelnumberFull level reading
statusstringCurrent status
temperaturenumberTemperature reading
batterynumberBattery level percentage
fill_percentagenumberCurrent fill level (0-100)
  • Missing API URL: ATEK credential is missing apiUrl
  • Missing Username: ATEK credential is missing username
  • Missing Password: ATEK credential is missing password
  • API Timeout: Requests time out after 600 seconds
  • Parse Errors: Returns error with original record data if transformation fails