--- title: "Use case: Analyze output by workstation" slug: "datenaustausch-connect-api-uc-pm-ausbringung" updated: 2026-12-02T08:12:42Z published: 2026-12-02T08:12:42Z canonical: "docs.homag.cloud/datenaustausch-connect-api-uc-pm-ausbringung" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.homag.cloud/llms.txt > Use this file to discover all available pages before exploring further. # Use case: Analyze output by workstation **For:** Customers · Partners · Integrators Production managers want to know how many parts each workstation processed during a given time window, for example in the last few hours, a day, or a week, and where production is slowing down. ## Challenge Output figures are often recorded manually or spread across multiple machines and systems. Without comparable figures for each workstation, bottlenecks are only noticed once orders are already late. ## Solution productionManager counts every processed item for each workstation. Your dashboard or report reads these counters for a time window and compares them across workstations and periods. ## Workflow 1. Read the workstations to get their names and types. 2. Read workstation output for a time window, for example the last eight hours or the previous day. 3. Repeat for comparable periods, for example each day of the last four weeks, to show a trend. 4. Compare output with your targets and investigate deviations in the [production protocol](/docs/en/datenaustausch-connect-api-uc-pm-protokoll). **C#** ```csharp // Get output by workstation for each of the last 7 days for (var day = DateTime.UtcNow.Date.AddDays(-7); day < DateTime.UtcNow.Date; day = day.AddDays(1)) {    var yields = await productionManager.GetWorkstationsYield(day, day.AddDays(1));    foreach (var yield in yields ?? [])    {        Console.WriteLine($"{day:yyyy-MM-dd} {yield.Workstation?.Name}: {yield.TotalCount}");    } } ``` **REST** ```http GET /api/productionManager/workstations/yield?from=2026-11-18T00:00:00Z&to=2026-11-18T23:59:59Z 200 OK Content-Type: application/json [  {    "workstation": {      "id": "9462db59-bd4c-4b09-bd9b-6500f4fd73c3",      "name": "Saw",      "type": "Cutting"    },    "totalCount": 412,    "yields": [      { "key": "Part", "value": 412 }    ]  },  {    "workstation": {      "id": "f6689e43-aefe-4560-a465-763326235981",      "name": "Edgebanding",      "type": "FeedbackEdgebanding"    },    "totalCount": 365,    "yields": [      { "key": "Part", "value": 365 }    ]  } ] ``` Set the time window using `from` and `to`. If `to` is omitted, the current time is used. productionManager does not have a shift model: to report figures by shift, pass the shift start and end from your own shift schedule as `from` and `to`. `yields` breaks the total down by item type, for example parts, positions, and assemblies. The result may also contain workstations that have since been deleted. These are returned without a name. ## Typical analyses - **Live display:** Output by workstation since a specific time, for example the last few hours, refreshed every few minutes. - **Daily comparison:** Output by day and workstation over the last few weeks to identify trends. - **Bottleneck detection:** A workstation that processes significantly fewer parts than the preceding workstation is likely a bottleneck. ## Integration architecture For a live display, call the endpoint on a schedule with a fixed start time as `from`. For trends, store daily results in your own database or BI tool instead of repeatedly querying long time windows. For Excel or Power BI, request `format=localized`. ## Benefits - Comparable output figures for all workstations without manual counting. - Bottlenecks become visible early. - A fact-based foundation for capacity planning and lot sizes. > **API reference:** See Endpoints → HOMAG Connect productionManager → Querying Workstations and Production Protocol ([API reference](https://connect.homag.cloud/productionmanager/#v1/tag/b11-querying-workstations-and-production-protocol)): [Get workstations](https://docs.homag.cloud/apidocs/getproductionmanagerworkstations) ([`GET /api/productionManager/workstations`](https://connect.homag.cloud/productionmanager/#v1/tag/b11-querying-workstations-and-production-protocol/GET/api/productionManager/workstations)) and [Get workstation output](https://docs.homag.cloud/apidocs/getworkstationsyield) ([`GET /api/productionManager/workstations/yield`](https://connect.homag.cloud/productionmanager/#v1/tag/b11-querying-workstations-and-production-protocol/GET/api/productionManager/workstations/yield)).