Sections
Method: GET
Provides HMI codes from defined group. Groups can be REWORK, NOK, STOP. If requested for STOP codes, subgroup needs to be defined (O, P, A, C). Codes are user defined on configuration page of dlb app.
Base URL
https://dlb.com.pl/api/v1/hmi_codes.php  
Query parameters
| Key | Type | Description | |
|---|---|---|---|
| user | Required | string | Login | 
| mac | Required | string | MAC address of the selected logger. | 
| group | Required | string | Possible values: REWORK, NOK, STOP | 
| subgroup | Optional | string | Possible values: O,P,A,C  required only if group is "STOP".  | 
    
| token | Required | string | Authentication | 
Authentication
Providing token is also required, you can do it using one of the following methods:
- Query parameter
 - Standard Bearer token in the header: 
Authorization: Bearer {token} - API key in the header: 
HTTP_X_API_KEY: {token} 
Response
Response is a string to be decoded to JSON object, where keys are codes and value is user defined text labels
Example response for group="STOP" subgroup="P"
{
    "P1":"TPM",
    "P2":"Przerwa",
    "P3":"Koniec zmiany",
    "P4":"Brak pracy",
    "P5":"Rozruch"
}