import moment from'moment'

const pageSettings = {
  selectedPackGroup: "",
  selectedPack: null,
  packNames: [],
  name: "",
  colors: {
    isOn: false,
    list: []
  },
  tableColumns: {
    default: [],
    selected: []
  },
  dates: {
    selectedDate: "",
    // dt_finish: "2022-03-04T20:59:59.000Z",
    // dt_start: "2022-03-03T21:00:02.000Z",
    dtStart: moment().subtract(1, "day").startOf('day').startOf('minute').format("YYYY-MM-DDTHH:mm:ss"),
    dtFinish: moment().endOf('day').startOf('minute').format("YYYY-MM-DDTHH:mm:ss"),
    isOn: true
  },
  filters: {isOn: false, list: []},
  imei: "",
  pagination: {id: 'reportPacks', paginationOptions: {page_number: 1, page_size: 10, isOn: true, total: 0, total_pages: 0}, selectOption: [5, 10, 13, 15, 30, 33, 50, 100, 200, 500, 750, 1000, 10000]},
  selected: null,
  settings: {
    dateParam: "pack_dt",
    isOn: true,
    sortOrder: "desc",
    packDtCorr: false
  }
}

const packStruct = [
  {
    id: 8,
    description: null,
    is_prod: true,
    machine_types: null,
    name: "Диагностика УК (7681)",
    pack: 7681,
    columns: [
      {
        dataIndex: "pack_dt",
        field: "pack_dt",
        key: "pack_dt",
        render: "(dt) : parseSepareteDate(dt, '.', 'DateDMYHMS')",
        title: " Дата и время",
        width: 170
      },
      {
        dataIndex: "speed",
        field: "speed",
        key: "speed",
        title: " Скорость, км/ч",
        width: 98
      },
      {
        dataIndex: "voltage",
        field: "voltage",
        key: "voltage",
        title: " Напряжение, В",
        width: 120
      },
      {
        dataIndex: "voltage_on_board",
        field: "voltage_on_board",
        key: "voltage_on_board",
        title: " Напряжение бортовой сети +24В, В",
        width: 120
      },
      {
        dataIndex: "block_no",
        field: "block_no",
        key: "block_no",
        title: " № блока",
        width: 93
      },
      {
        dataIndex: "data_source",
        field: "data_source",
        key: "data_source",
        title: " Источник",
        width: 97
      },
      {
        dataIndex: "data_format",
        field: "data_format",
        key: "data_format",
        title: " Формат",
        width: 86
      },
      {
        dataIndex: "data_size",
        field: "data_size",
        key: "data_size",
        title: " Размер",
        width: 86
      },
      {
        dataIndex: "pack_size",
        field: "pack_size",
        key: "pack_size",
        title: " Размер пакета",
        width: 86
      },
      {
        dataIndex: "engine1_coolant_temperature",
        field: "engine1_coolant_temperature",
        groupToChild: {
          "dataIndex" : "temp_childs",
          "title" : "Температура ОЖ дизель, ℃"
        },
        key: "engine1_coolant_temperature",
        title: "Температура ОЖ дизель, ℃: 1",
        width: 120
      },
      {
        dataIndex: "engine2_coolant_temperature",
        field: "engine2_coolant_temperature",
        groupToChild: {
          "dataIndex" : "temp_childs",
          "title" : "Температура ОЖ дизель, ℃"
        },
        key: "engine2_coolant_temperature",
        title: "Температура ОЖ дизель, ℃: 2",
        width: 100
      },
      {
        dataIndex: "air_temperature",
        field: "air_temperature",
        key: "air_temperature",
        title: " Температура воздуха за бортом",
        width: 120
      },
      {
        dataIndex: "battery_amperage",
        field: "battery_amperage",
        key: "battery_amperage",
        title: " Ток заряда аккумулятора, А",
        width: 140
      },
      {
        dataIndex: "generator1_amperage",
        field: "generator1_amperage",
        groupToChild: {
          "dataIndex" : "tok_childs",
          "title" : "Ток генератора сети 380В, А"
        },
        key: "generator1_amperage",
        title: "Ток генератора сети 380В, А: 1",
        width: 120
      },
      {
        dataIndex: "generator2_amperage",
        field: "generator2_amperage",
        groupToChild: {
          "dataIndex" : "tok_childs",
          "title" : "Ток генератора сети 380В, А"
        },
        key: "generator2_amperage",
        title: "Ток генератора сети 380В, А: 2",
        width: 120
      },
      {
        dataIndex: "brake_line_pressure",
        field: "brake_line_pressure",
        key: "brake_line_pressure",
        title: " Давление воздуха в тормозной магистрали, бар",
        width: 140
      },
      {
        dataIndex: "brake_cylinders_pressure",
        field: "brake_cylinders_pressure",
        key: "brake_cylinders_pressure",
        title: " Давление в тормозных цилиндрах, бар",
        width: 110
      },
      {
        dataIndex: "supply_line_oil_pressure",
        field: "supply_line_oil_pressure",
        key: "supply_line_oil_pressure",
        title: " Давление в питательной магистрали, бар",
        width: 120
      },
      {
        dataIndex: "engine1_oil_pressure",
        field: "engine1_oil_pressure",
        key: "engine1_oil_pressure",
        title: "Давление масла дизель, бар: 1",
        width: 110
      },
      {
        dataIndex: "engine2_oil_pressure",
        field: "engine2_oil_pressure",
        key: "engine2_oil_pressure",
        title: "Давление масла дизель, бар: 2",
        width: 110
      },
      {
        dataIndex: "platform1_oil_pressure",
        field: "platform1_oil_pressure",
        key: "platform1_oil_pressure",
        title: "Давление масла. Гидросистема платформы.: Насосная станция №1, бар",
        width: 210
      },
      {
        dataIndex: "platform2_oil_pressure",
        field: "platform2_oil_pressure",
        key: "platform2_oil_pressure",
        title: "Давление масла. Гидросистема платформы.: Насосная станция №2, бар",
        width: 210
      },
      {
        dataIndex: "craine_oil_pressure",
        field: "craine_oil_pressure",
        key: "craine_oil_pressure",
        title: " Давление масла. Гидросистема стрелы, бар",
        width: 130
      },
      {
        dataIndex: "generator1_voltage",
        field: "generator1_voltage",
        key: "generator1_voltage",
        title: "Напряжение сети генератора 380В: 1",
        width: 100
      },
      {
        dataIndex: "generator2_voltage",
        field: "generator2_voltage",
        key: "generator2_voltage",
        title: "Напряжение сети генератора 380В: 2",
        width: 100
      }
    ],
    diag_tables: null,
    diag_exclude_tables: null,
    diag_classifications: null,
    diag_types: null,
    diag_sps: null,
    diag_exclude_classifications: null,
    diag_exclude_types: null,
    diag_exclude_sps: null,
    pack_group_id: 8,
    // pack_group: #Ecto.Association.NotLoaded<association :pack_group is not loaded>,
    inserted_at: "2022-01-20 06:35:03",
    updated_at: "2023-08-16 09:28:13"
  }
]


const packsNames = ["Диагностика УК (7681)", "Диагностика УК (7682)",
"Диагностика УК (7683)", "Диагностика УК (7684)",
"Диагностика УК (7685)", "Тест УК(9473)",
"УК 25/25(9473)", "УК 25/25(9475)", "УК 25/28СП(9473)",
"УК 25/28СП(9475)", "УК 25/9-18(9473)", "УК 25/9-18(9475)"]

const data = {
  askr_logs: [
    {
      air_temperature: -25.098,
      generator2_voltage: 0.055,
      brake_cylinders_pressure: 0.4,
      platform1_oil_pressure: 0.055,
      arhiv_date: null,
      generator1_voltage: 394.95,
      pack: 7681,
      craine_oil_pressure: 0.686,
      engine1_oil_pressure: 0.471,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.150181, 49.90781],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.93,
      pack_lon: 136.150181,
      generator1_amperage: 10.929,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:07:26.928824",
      pack_lat: 49.90781,
      engine1_coolant_temperature: 74.934,
      block_no: 0,
      speed: 0.0,
      data_format: 128,
      battery_amperage: 6.707,
      data_source: 0,
      voltage_on_board: 26.315,
      supply_line_oil_pressure: 0.737,
      pack_dt: "2024-02-02 10:07:11.460000",
      data_size: 20,
      pack_dt_raw: 209231460,
      reserved1: 0.4,
      data_string: "7681,209231460,49907810,136150181,0,2593,0,0,128,20,26315,74934,11434,6707,2,400,-25098,471,6,55,0,686,737,394950,55,10929,0,400,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.002,
      dt: "2024-02-02 13:07:26.928824",
      imei: "864004043403283",
      generator2_amperage: 0.0
    },
    {
      air_temperature: -25.463,
      generator2_voltage: 0.056,
      brake_cylinders_pressure: 0.401,
      platform1_oil_pressure: 0.054,
      arhiv_date: null,
      generator1_voltage: 398.608,
      pack: 7681,
      craine_oil_pressure: 0.64,
      engine1_oil_pressure: 0.49,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.15018899999998, 49.907799],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.89,
      pack_lon: 136.150189,
      generator1_amperage: 10.929,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:08:55.545340",
      pack_lat: 49.907799,
      engine1_coolant_temperature: 75.042,
      block_no: 0,
      speed: 0.0,
      data_format: 128,
      battery_amperage: 7.144,
      data_source: 0,
      voltage_on_board: 26.286,
      supply_line_oil_pressure: 0.701,
      pack_dt: "2024-02-02 10:08:41.444000",
      data_size: 20,
      pack_dt_raw: 209321444,
      reserved1: 0.401,
      data_string: "7681,209321444,49907799,136150189,0,2589,0,0,128,20,26286,75042,11434,7144,3,401,-25463,490,6,54,0,640,701,398608,56,10929,0,401,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.003,
      dt: "2024-02-02 13:08:55.545340",
      imei: "864004043403283",
      generator2_amperage: 0.0
    },
    {
      air_temperature: -25.151,
      generator2_voltage: 0.064,
      brake_cylinders_pressure: 0.402,
      platform1_oil_pressure: 0.054,
      arhiv_date: null,
      generator1_voltage: 0.0,
      pack: 7681,
      craine_oil_pressure: 0.093,
      engine1_oil_pressure: 0.226,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.15018899999998, 49.907801],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.77,
      pack_lon: 136.150189,
      generator1_amperage: 0.038,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:09:25.544622",
      pack_lat: 49.907801,
      engine1_coolant_temperature: 74.972,
      block_no: 0,
      speed: 0.03,
      data_format: 128,
      battery_amperage: 4.157,
      data_source: 0,
      voltage_on_board: 26.184,
      supply_line_oil_pressure: 0.692,
      pack_dt: "2024-02-02 10:09:11.414000",
      data_size: 20,
      pack_dt_raw: 209351414,
      reserved1: 0.402,
      data_string: "7681,209351414,49907801,136150189,3,2577,0,0,128,20,26184,74972,11434,4157,2,402,-25151,226,6,54,0,93,692,0,64,38,25,402,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.002,
      dt: "2024-02-02 13:09:25.544622",
      imei: "864004043403283",
      generator2_amperage: 0.025
    },
    {
      air_temperature: -25.063,
      generator2_voltage: 0.112,
      brake_cylinders_pressure: 0.4,
      platform1_oil_pressure: 0.061,
      arhiv_date: null,
      generator1_voltage: 397.279,
      pack: 7681,
      craine_oil_pressure: 15.999,
      engine1_oil_pressure: 0.488,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.15018, 49.907806],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.87,
      pack_lon: 136.15018,
      generator1_amperage: 21.715,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:07:57.796315",
      pack_lat: 49.907806,
      engine1_coolant_temperature: 75.026,
      block_no: 0,
      speed: 0.02,
      data_format: 128,
      battery_amperage: 6.219,
      data_source: 0,
      voltage_on_board: 26.279,
      supply_line_oil_pressure: 0.719,
      pack_dt: "2024-02-02 10:07:51.409000",
      data_size: 20,
      pack_dt_raw: 209271409,
      reserved1: 0.401,
      data_string: "7681,209271409,49907806,136150180,2,2587,0,0,128,20,26279,75026,11434,6219,3,400,-25063,488,6,61,0,15999,719,397279,112,21715,0,401,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.003,
      dt: "2024-02-02 13:07:57.796315",
      imei: "864004043403283",
      generator2_amperage: 0.0
    },
    {
      air_temperature: -25.385,
      generator2_voltage: 4.709,
      brake_cylinders_pressure: 0.401,
      platform1_oil_pressure: 0.056,
      arhiv_date: null,
      generator1_voltage: 393.291,
      pack: 7681,
      craine_oil_pressure: 1.848,
      engine1_oil_pressure: 0.489,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.150184, 49.907799],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.88,
      pack_lon: 136.150184,
      generator1_amperage: 27.762,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:08:27.093272",
      pack_lat: 49.907799,
      engine1_coolant_temperature: 75.065,
      block_no: 0,
      speed: 0.0,
      data_format: 128,
      battery_amperage: 7.026,
      data_source: 0,
      voltage_on_board: 26.272,
      supply_line_oil_pressure: 0.708,
      pack_dt: "2024-02-02 10:08:21.408000",
      data_size: 20,
      pack_dt_raw: 209301408,
      reserved1: 0.402,
      data_string: "7681,209301408,49907799,136150184,0,2588,0,0,128,20,26272,75065,11434,7026,3,401,-25385,489,6,56,0,1848,708,393291,4709,27762,807,402,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.003,
      dt: "2024-02-02 13:08:27.093272",
      imei: "864004043403283",
      generator2_amperage: 0.807
    },
    {
      air_temperature: -25.065,
      generator2_voltage: 4.715,
      brake_cylinders_pressure: 0.399,
      platform1_oil_pressure: 0.055,
      arhiv_date: null,
      generator1_voltage: 390.48,
      pack: 7681,
      craine_oil_pressure: 1.398,
      engine1_oil_pressure: 0.479,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.15018, 49.907807],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.94,
      pack_lon: 136.15018,
      generator1_amperage: 34.003,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:06:56.970134",
      pack_lat: 49.907807,
      engine1_coolant_temperature: 74.919,
      block_no: 0,
      speed: 0.0,
      data_format: 128,
      battery_amperage: 6.373,
      data_source: 0,
      voltage_on_board: 26.321,
      supply_line_oil_pressure: 0.749,
      pack_dt: "2024-02-02 10:06:51.407000",
      data_size: 20,
      pack_dt_raw: 209211407,
      reserved1: 0.401,
      data_string: "7681,209211407,49907807,136150180,0,2594,0,0,128,20,26321,74919,11434,6373,3,399,-25065,479,6,55,0,1398,749,390480,4715,34003,966,401,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.003,
      dt: "2024-02-02 13:06:56.970134",
      imei: "864004043403283",
      generator2_amperage: 0.966
    },
    {
      air_temperature: -25.141,
      generator2_voltage: 0.137,
      brake_cylinders_pressure: 0.4,
      platform1_oil_pressure: 0.056,
      arhiv_date: null,
      generator1_voltage: 396.532,
      pack: 7681,
      craine_oil_pressure: 15.999,
      engine1_oil_pressure: 0.477,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.150181, 49.907799999999995],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.84,
      pack_lon: 136.150181,
      generator1_amperage: 21.724,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:08:25.566076",
      pack_lat: 49.9078,
      engine1_coolant_temperature: 75.017,
      block_no: 0,
      speed: 0.02,
      data_format: 128,
      battery_amperage: 5.861,
      data_source: 0,
      voltage_on_board: 26.26,
      supply_line_oil_pressure: 0.714,
      pack_dt: "2024-02-02 10:08:01.406000",
      data_size: 20,
      pack_dt_raw: 209281406,
      reserved1: 0.401,
      data_string: "7681,209281406,49907800,136150181,2,2584,0,0,128,20,26260,75017,11434,5861,3,400,-25141,477,6,56,0,15999,714,396532,137,21724,0,401,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.003,
      dt: "2024-02-02 13:08:25.566076",
      imei: "864004043403283",
      generator2_amperage: 0.0
    },
    {
      air_temperature: -25.121,
      generator2_voltage: 22.133,
      brake_cylinders_pressure: 0.399,
      platform1_oil_pressure: 0.06,
      arhiv_date: null,
      generator1_voltage: 399.591,
      pack: 7681,
      craine_oil_pressure: 0.79,
      engine1_oil_pressure: 0.477,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.150181, 49.907810999999995],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.93,
      pack_lon: 136.150181,
      generator1_amperage: 8.269,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:07:25.598542",
      pack_lat: 49.907811,
      engine1_coolant_temperature: 74.996,
      block_no: 0,
      speed: 0.03,
      data_format: 128,
      battery_amperage: 5.956,
      data_source: 0,
      voltage_on_board: 26.316,
      supply_line_oil_pressure: 0.742,
      pack_dt: "2024-02-02 10:07:01.404000",
      data_size: 20,
      pack_dt_raw: 209221404,
      reserved1: 0.401,
      data_string: "7681,209221404,49907811,136150181,3,2593,0,0,128,20,26316,74996,11434,5956,2,399,-25121,477,6,60,0,790,742,399591,22133,8269,704,401,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.002,
      dt: "2024-02-02 13:07:25.598542",
      imei: "864004043403283",
      generator2_amperage: 0.704
    },
    {
      air_temperature: -25.053,
      generator2_voltage: 0.836,
      brake_cylinders_pressure: 0.399,
      platform1_oil_pressure: 0.057,
      arhiv_date: null,
      generator1_voltage: 397.276,
      pack: 7681,
      craine_oil_pressure: 0.654,
      engine1_oil_pressure: 0.497,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.15018, 49.90781],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.91,
      pack_lon: 136.15018,
      generator1_amperage: 10.788,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:07:56.487263",
      pack_lat: 49.90781,
      engine1_coolant_temperature: 74.934,
      block_no: 0,
      speed: 0.01,
      data_format: 128,
      battery_amperage: 6.612,
      data_source: 0,
      voltage_on_board: 26.312,
      supply_line_oil_pressure: 0.727,
      pack_dt: "2024-02-02 10:07:31.396000",
      data_size: 20,
      pack_dt_raw: 209251396,
      reserved1: 0.4,
      data_string: "7681,209251396,49907810,136150180,1,2591,0,0,128,20,26312,74934,11434,6612,3,399,-25053,497,6,57,0,654,727,397276,836,10788,0,400,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.003,
      dt: "2024-02-02 13:07:56.487263",
      imei: "864004043403283",
      generator2_amperage: 0.0
    },
    {
      air_temperature: -25.029,
      generator2_voltage: 0.097,
      brake_cylinders_pressure: 0.4,
      platform1_oil_pressure: 0.057,
      arhiv_date: null,
      generator1_voltage: 396.407,
      pack: 7681,
      craine_oil_pressure: 0.594,
      engine1_oil_pressure: 0.497,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.15017899999998, 49.907809],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.91,
      pack_lon: 136.150179,
      generator1_amperage: 10.912,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:07:56.487939",
      pack_lat: 49.907809,
      engine1_coolant_temperature: 75.012,
      block_no: 0,
      speed: 0.0,
      data_format: 128,
      battery_amperage: 6.679,
      data_source: 0,
      voltage_on_board: 26.31,
      supply_line_oil_pressure: 0.723,
      pack_dt: "2024-02-02 10:07:41.394000",
      data_size: 20,
      pack_dt_raw: 209261394,
      reserved1: 0.4,
      data_string: "7681,209261394,49907809,136150179,0,2591,0,0,128,20,26310,75012,11434,6679,4,400,-25029,497,6,57,0,594,723,396407,97,10912,0,400,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.004,
      dt: "2024-02-02 13:07:56.487939",
      imei: "864004043403283",
      generator2_amperage: 0.0
    },
    {
      air_temperature: -25.098,
      generator2_voltage: 0.0,
      brake_cylinders_pressure: 0.401,
      platform1_oil_pressure: 0.055,
      arhiv_date: null,
      generator1_voltage: 0.0,
      pack: 7681,
      craine_oil_pressure: 0.087,
      engine1_oil_pressure: 0.221,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.150185, 49.907799999999995],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.61,
      pack_lon: 136.150185,
      generator1_amperage: 0.0,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:09:55.799914",
      pack_lat: 49.9078,
      engine1_coolant_temperature: 74.869,
      block_no: 0,
      speed: 0.0,
      data_format: 128,
      battery_amperage: 0.275,
      data_source: 0,
      voltage_on_board: 26.02,
      supply_line_oil_pressure: 0.686,
      pack_dt: "2024-02-02 10:09:31.388000",
      data_size: 20,
      pack_dt_raw: 209371388,
      reserved1: 0.402,
      data_string: "7681,209371388,49907800,136150185,0,2561,0,0,128,20,26020,74869,11434,275,3,401,-25098,221,6,55,0,87,686,0,0,0,0,402,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.003,
      dt: "2024-02-02 13:09:55.799914",
      imei: "864004043403283",
      generator2_amperage: 0.0
    },
    {
      air_temperature: -24.948,
      generator2_voltage: 0.0,
      brake_cylinders_pressure: 0.402,
      platform1_oil_pressure: 0.061,
      arhiv_date: null,
      generator1_voltage: 0.0,
      pack: 7681,
      craine_oil_pressure: 0.089,
      engine1_oil_pressure: 0.227,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.15018799999999, 49.907803],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.49,
      pack_lon: 136.150188,
      generator1_amperage: 0.0,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:10:25.593027",
      pack_lat: 49.907803,
      engine1_coolant_temperature: 73.956,
      block_no: 0,
      speed: 0.01,
      data_format: 128,
      battery_amperage: 1.726,
      data_source: 0,
      voltage_on_board: 25.909,
      supply_line_oil_pressure: 0.675,
      pack_dt: "2024-02-02 10:10:11.387000",
      data_size: 20,
      pack_dt_raw: 209411387,
      reserved1: 0.402,
      data_string: "7681,209411387,49907803,136150188,1,2549,0,0,128,20,25909,73956,11434,1726,3,402,-24948,227,6,61,0,89,675,0,0,0,0,402,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.003,
      dt: "2024-02-02 13:10:25.593027",
      imei: "864004043403283",
    },
    {
      air_temperature: -24.966,
      generator2_voltage: 0.0,
      brake_cylinders_pressure: 0.401,
      platform1_oil_pressure: 0.055,
      arhiv_date: null,
      generator1_voltage: 0.0,
      pack: 7681,
      craine_oil_pressure: 0.086,
      engine1_oil_pressure: 0.235,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.150184, 49.907796999999995],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.6,
      pack_lon: 136.150184,
      generator1_amperage: 0.0,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:09:55.801149",
      pack_lat: 49.907797,
      engine1_coolant_temperature: 74.48,
      block_no: 0,
      speed: 0.01,
      data_format: 128,
      battery_amperage: 2.913,
      data_source: 0,
      voltage_on_board: 26.0,
      supply_line_oil_pressure: 0.68,
      pack_dt: "2024-02-02 10:09:51.387000",
      data_size: 20,
      pack_dt_raw: 209391387,
      reserved1: 0.403,
      data_string: "7681,209391387,49907797,136150184,1,2560,0,0,128,20,26000,74480,11434,2913,4,401,-24966,235,6,55,0,86,680,0,0,0,0,403,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.004,
      dt: "2024-02-02 13:09:55.801149",
    },
    {
      air_temperature: -24.99,
      generator2_voltage: 0.0,
      brake_cylinders_pressure: 0.401,
      platform1_oil_pressure: 0.055,
      arhiv_date: null,
      generator1_voltage: 0.0,
      pack: 7681,
      craine_oil_pressure: 0.087,
      engine1_oil_pressure: 0.227,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.150184, 49.907796999999995],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.62,
      pack_lon: 136.150184,
      generator1_amperage: 0.0,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:09:55.800784",
      pack_lat: 49.907797,
      engine1_coolant_temperature: 74.722,
      block_no: 0,
      speed: 0.02,
      data_format: 128,
      battery_amperage: 1.175,
      data_source: 0,
      voltage_on_board: 26.02,
      supply_line_oil_pressure: 0.683,
      pack_dt: "2024-02-02 10:09:41.385000",
      data_size: 20,
      pack_dt_raw: 209381385,
      reserved1: 0.402,
      data_string: "7681,209381385,49907797,136150184,2,2562,0,0,128,20,26020,74722,11434,1175,4,401,-24990,227,6,55,0,87,683,0,0,0,0,402,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
      brake_line_pressure: 0.004,
    },
    {
      air_temperature: -25.288,
      generator2_voltage: 0.078,
      brake_cylinders_pressure: 0.401,
      platform1_oil_pressure: 0.054,
      arhiv_date: null,
      generator1_voltage: 0.006,
      pack: 7681,
      craine_oil_pressure: 0.089,
      engine1_oil_pressure: 0.491,
      platform2_oil_pressure: 0.0,
      geo: 
      // %Geo.Point{
        {
        coordinates: [136.15018999999998, 49.907802],
        srid: 4326,
        properties: {}
      },
      is_valid: true,
      voltage: 25.88,
      pack_lon: 136.15019,
      generator1_amperage: 0.056,
      engine2_coolant_temperature: 11.434,
      engine2_oil_pressure: 0.006,
      rcvd_dt: "2024-02-02 13:09:25.543520",
      pack_lat: 49.907802,
      engine1_coolant_temperature: 75.038,
      block_no: 0,
      speed: 0.01,
      data_format: 128,
      battery_amperage: 6.776,
      data_source: 0,
      voltage_on_board: 26.288,
      supply_line_oil_pressure: 0.695,
      pack_dt: "2024-02-02 10:09:01.383000",
      data_size: 20,
      pack_dt_raw: 209341383,
      reserved1: 0.402,
      data_string: "7681,209341383,49907802,136150190,1,2588,0,0,128,20,26288,75038,11434,6776,3,401,-25288,491,6,54,0,89,695,6,78,56,71,402,0,0",
      reserved2: 0.0,
      reserved3: 0.0,
    }
  ],
  max_data_length: 2284,
  unrecognized: []
}


export { pageSettings, packStruct, packsNames, data }