BOCHU IoT Api
  1. Statistics Information
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
    • Statistics Information
      • Summary of Welding Statistical Data for a Period of Time
        POST
      • Daily Flat-Weld Length
        POST
      • Daily Flat-Weld Time
        POST
      • Daily Vertical-Weld Length
        POST
      • Daily Vertical-Weld Time
        POST
      • Daily Weld Length
        POST
      • Daily Weld Time
        POST
      • Daily Weld-Pass Count
        POST
      • Daily Idle Time
        POST
      • Daily Processing Time
        POST
    • Task Management
      • Upload Weld Task
  1. Statistics Information

Summary of Welding Statistical Data for a Period of Time

POST
https://mcs-gateway.fscut.com/api/statistics/sum/weld
Function Description:
This function is used to retrieve summarized welding statistical data for a specified machine within a specified time range.
Returned Result:
① Summary of statistical data for the specified time range, including almost all welding statistical 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
startDate
integer 
Start date of the query
required
Must be within the last three months, as statistics data beyond that period are not available.
endDate
integer 
End date of the query
required
Must be within the last three months, as statistics data beyond that period are not available.
Example
{
  "cardId": "123456789100",
  "startDate": 20230201,
  "endDate": 20230207
}

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/sum/weld' \
--header 'zoneId: America/Chicago' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cardId": "123456789100",
    "startDate": 20230201,
    "endDate": 20230207
}'

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
weldTime
integer 
required
Unit: s
weldLength
number 
required
Unit: mm
flatWeldTime
integer 
required
Unit: s
flatWeldLength
number 
required
Unit: mm
verticalWeldTime
integer 
required
Unit: s
verticalWeldLength
number 
required
Unit: mm
weldPassCount
integer 
required
workTime
integer 
required
Unit: s
idleTime
integer 
required
Unit: s
Example
{
  "status": 0,
  "msg": "OK",
  "data": {
    "weldTime": 91229,
    "weldLength": 1968179.39,
    "flatWeldTime": 171188,
    "flatWeldLength": 7936790.370000001,
    "verticalWeldTime": 24774,
    "verticalWeldLength": 7936790.370000001,
    "weldPassCount": 10,
    "workTime": 100,
    "idleTime": 100
  }
}
Modified at 2024-10-09 02:00:12
Previous
Paged Welding Processing Records
Next
Daily Flat-Weld Length
Built with