BOCHU IoT Api
  1. Historical Data
BOCHU IoT Api
  • 0. Introduction
  • a. Use our demo to quickly generate request headers
  • b. Manually create the request header
  • 1. Machine Quota
  • 2. API Quota & API Rate Limit
  • Global Error Code
  • Cutting Machine API
    • Machine Management
      • Machine List
      • Machine Detailed Information
      • Machine Status Change Records
    • Real-time Data
      • Machine Operating Status
      • Machine Current Alarm List
      • Machine Ongoing Processing Task
      • Real-time Status of the Cutting System
    • Historical Data
      • Paged Processing Records
    • Statistics Information
      • Summary of Statistical Data for a Period of Time
      • Daily Alarm Duration
      • Daily Piercing Count
      • Daily Idle Time
      • Daily Laser-On Time
      • Daily Gas-On Time
      • Daily Cutting Length
      • Daily Traveling Distance
      • Daily Processing Time v2
    • Task Management
      • Upload Cut Task
  • Welding Machine API
    • Machine Management
      • Machine List
      • Machine Detailed Information
      • Machine Status Change Records
    • Real-time Data
      • Machine Operating Status
    • Historical Data
      • Paged Welding Processing Records
        POST
    • Statistics Information
      • Summary of Welding Statistical Data for a Period of Time
      • Daily Flat-Weld Length
      • Daily Flat-Weld Time
      • Daily Vertical-Weld Length
      • Daily Vertical-Weld Time
      • Daily Weld Length
      • Daily Weld Time
      • Daily Weld-Pass Count
      • Daily Idle Time
      • Daily Processing Time
    • Task Management
      • Upload Weld Task
  1. Historical Data

Paged Welding Processing Records

POST
https://mcs-gateway.fscut.com/api/statistics/work_logs/v2
Function Description:
This function is used to retrieve paged welding processing records for a specific machine within a specified time range.
返回信息:
① Processing-related information

Request

Header Params
zoneId
string 
optional
The query time-zone can be specified by header 'zoneId'. If 'zoneId' is not set, Asia/Shanghai will be used as default.
The time-zone ID must be from IANA Time Zone Database(TZDB). If 'zoneId' cannot be recognized, Asia/Shanghai will be used as default.
ref: https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html
Example:
America/Chicago
Body Params application/json
cardId
string 
Control card ID
required
startTime
string 
Start time of the query
required
Must be within the last three months, as statistics data beyond that period are not available.
endTime
string 
End time of the query
required
Must be within the last three months, as statistics data beyond that period are not available.
pageNumber
integer 
Page number
required
0 indicates the first page.
pageSize
integer 
Number of items per page
required
Value must be within the range [1, 1000].
timeDesc
boolean 
Sorting parameter
optional
Whether to sort by processing start time in descending order.
Example
{
  "cardId": "123456789100",
  "startTime": "2023-05-01 00:00:00",
  "endTime": "2023-05-17 15:00:00",
  "pageNumber": 0,
  "pageSize": 30,
  "timeDesc": true
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mcs-gateway.fscut.com/api/statistics/work_logs/v2' \
--header 'zoneId: America/Chicago' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cardId": "123456789100",
    "startTime": "2023-05-01 00:00:00",
    "endTime": "2023-05-17 15:00:00",
    "pageNumber":0,
    "pageSize":30,
    "timeDesc": true
}'

Responses

🟢200成功
application/json
Body
status
integer 
状态码
required
0 for successful response, non-zero for error codes
msg
string 
响应信息
required
Ok for successful response, or an error message for non-successful responses
data
object 
required
list
array [object {15}] 
required
meta
object 
required
Example
{
  "status": 0,
  "msg": "ok",
  "data": {
    "list": [
      {
        "fileName": "C:\\Users\\fscut\\Desktop\\text.ifc",
        "startTime": "2024-07-01 00:00:00",
        "endTime": "2024-07-01 01:00:00",
        "syncTime": "2024-07-01 01:00:00",
        "endState": 2,
        "ifcName": "test",
        "workTime": 79.85,
        "weldingTime": 240.94,
        "verticalWeldingTime": 240.94,
        "flatWeldingTime": 240.94,
        "totalWeldingLength": 240.94,
        "verticalWeldingLength": 240.94,
        "flatWeldingLength": 240.94,
        "weldPassCount": 3,
        "weldPassDone": 0
      }
    ],
    "meta": {
      "total": 174,
      "syncTime": 1683620551000
    }
  }
}
Modified at 2024-10-09 01:59:55
Previous
Machine Operating Status
Next
Summary of Welding Statistical Data for a Period of Time
Built with