HomagGroup.HomagConnect.MmrMobile.Client 1.0.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package HomagGroup.HomagConnect.MmrMobile.Client --version 1.0.0                
NuGet\Install-Package HomagGroup.HomagConnect.MmrMobile.Client -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HomagGroup.HomagConnect.MmrMobile.Client" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HomagGroup.HomagConnect.MmrMobile.Client --version 1.0.0                
#r "nuget: HomagGroup.HomagConnect.MmrMobile.Client, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install HomagGroup.HomagConnect.MmrMobile.Client as a Cake Addin
#addin nuget:?package=HomagGroup.HomagConnect.MmrMobile.Client&version=1.0.0

// Install HomagGroup.HomagConnect.MmrMobile.Client as a Cake Tool
#tool nuget:?package=HomagGroup.HomagConnect.MmrMobile.Client&version=1.0.0                

HOMAG MMR Mobile Client

HOMAG Connect MMR Mobile gives you direct access to your machine data (counters, states) from MMR Mobile. You can then conveniently integrate this into your applications. To help you get started, we have prepared a few examples that you can find below.

Version history

Version Date Comment
1.0.0 07.09.2023 First Draft

Content table

  1. TL;DR
  2. Homag Connect MMR Mobile interface overview
  3. Details

Authorization

TL;DR

mkdir test-homag-connect-mmr-client
dotnet new console
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
dotnet add package HomagGroup.HomagConnect.MmrMobile.Client
using System.Net.Http.Headers;
using System.Text;

using HomagConnect.MmrMobile.Client.Services;

Console.WriteLine("Hello at the HOMAG MMR Mobile Client");

var client = new HttpClient();
client.BaseAddress = new Uri("https://connect.homag.cloud");
Console.WriteLine("Please insert your subscription Id:");
var subscriptionId = Console.ReadLine();
Console.WriteLine("Please insert your token:");
var token = Console.ReadLine();
var credentials = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{subscriptionId}:{token}"));
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", credentials);
var states = await mmrMobileService.GetStateData(subscriptionId);
var counters = await mmrMobileService.GetCounterData(subscriptionId);
Console.WriteLine($"You got {states.Count()} states and {counters.Count()} counter for the last 14 days")
dotnet run

Homag Connect MMR Mobile interface overview

Name Method API Usage
GetStateData GET api/{subscriptionId}/mmr/<br/>states?from={from}&to={to}<br/>&machineNumber={machineNumber}<br/>&instanceId={instanceId}<br/>&machineType={machineType}<br/>&stateId={stateId}<br/>&detailedStateId={detailedStateId} Returns all state data for the asked time window (default: 14 days) for all machines assigned to the subscription, if not asked specifically.
GetCounterData GET api/{subscriptionId}/mmr/<br/>counter?from={from}&to={to}<br/>&machineNumber={machineNumber}<br/>&instanceId={instanceId}<br/>&machineType={machineType}<br/>&counterId={counterId} Returns all counter data for the asked time window (default: 14 days) for all machines assigned to the subscription, if not asked specifically.

Details

GetStateData

Input
Parameter Type Description
subscriptionId (Required) string The id of the subscription
from (Optional) DateTime DateTime that the search should start from
to (Optional) DateTime DateTime that the search should end
machineNumber (Optional) string Number of the machine (Format: x-xxx-xx-xxxx)
instanceId (Optional) string The id of the instance
machineType (Optional) string Type of machine
stateId (Optional) string Id of the state
detailedStateId (Optional) string Id of the detailed state
Output
Property Type Description
Machine Number string Number of the machine
Machine Name string Name of the machine
Machine Type string Type of machine
Timestamp DateTime Day when the data was gathered
Duration [h] double Time that the machine spent in the state in hours
Instance Id string Id of the instance
Detailed State Id string Id of the detailed state
Detailed State string Detailed state translated into the requested language
State Id string Id of the state
State string State translated into the requested language
Example

Request

GET /api/{someSubscriptionId}/mmr/states
api-version: 2023-09-05
Accept-Language: de-DE
Authorization: Basic NjU1MDFEMDktMkJCOS00M0MyLUI5RDMtMUZCMDAwNkE3NjlFOnNkMDlzaGR1Z985OGffc2ZkZ3pz32Y5ZGhzYWZkaHNmZN92ODlwYmZkOXZiaGFmZGd2
tracestate: someinternaltracedata

Response (200 OK)

Content-Type: application/json; charset=utf-8
[
    {
        "Machine Number": "0-242-92-1234",
        "Machine Name": "Some Machine | 0-242-92-1234",
        "Machine Type": "CNC",
        "Timestamp": "2022-09-27T00:00:00",
        "Duration [h]": 4.348055555555556,
        "Instance Id": "M1-C1",
        "Detailed State Id": "S_OMU_MODE1",
        "Detailed State": "Hauptnutzung Tisch links",
        "State Id": "s_mainusage",
        "State": "Hauptnutzung"
    }
]

GetCounterData

Input
Parameter Type Description
subscriptionId (Required) string The id of the subscription
from (Optional) DateTime DateTime that the search should start from
to (Optional) DateTime DateTime that the search should end
machineNumber (Optional) string Number of the machine (Format: x-xxx-xx-xxxx)
instanceId (Optional) string The id of the instance
machineType (Optional) string Type of machine
counterId (Optional) string Id of the counter
Output
Property Type Description
Machine Number string Number of the machine
Machine Name string Name of the machine
Machine Type string Type of machine
Timestamp DateTime Day when the data was gathered
Value double Output value
Instance Id string Id of the instance
Counter Id string Id of the counter
Counter string Counter translated into the requested language
Example

Request

GET /api/{someSubscriptionId}/mmr/counters
api-version: 2023-09-05
Accept-Language: de-DE
Authorization: Basic NjU1MDFEMDktMkJCOS00M0MyLUI5RDMtMUZCMDAwNkE3NjlFOnNkMDlzaGR1Z985OGffc2ZkZ3pz32Y5ZGhzYWZkaHNmZN92ODlwYmZkOXZiaGFmZGd2
tracestate: someinternaltracedata

Response (200 OK)

Content-Type: application/json; charset=utf-8
[
    {
        "Machine Number": "0-242-92-1234",
        "Machine Name": "Some Machine | 0-242-92-1234",
        "Machine Type": "CNC",
        "Timestamp": "2022-09-05T00:00:00",
        "Value": 62.0,
        "Instance Id": "M1-C1",
        "Counter Id": "S_OUT_CyclesAll",
        "Counter": "Ausbringung Zyklen"
    }
]

Contribute

If you find anything, feel free to contribute to this repository. We are happy for every improvement ❤️.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.3-alpha.0.198 0 2/5/2025
1.2.3-alpha.0.197 33 2/4/2025
1.2.3-alpha.0.196 34 2/4/2025
1.2.3-alpha.0.195 32 2/4/2025
1.2.3-alpha.0.194 35 2/4/2025
1.2.3-alpha.0.193 42 2/3/2025
1.2.3-alpha.0.192 33 2/3/2025
1.2.3-alpha.0.191 33 2/3/2025
1.2.3-alpha.0.190 33 2/3/2025
1.2.3-alpha.0.189 25 1/27/2025
1.2.3-alpha.0.188 7 1/24/2025
1.2.3-alpha.0.187 14 1/9/2025
1.2.3-alpha.0.186 20 1/8/2025
1.2.3-alpha.0.185 26 1/8/2025
1.2.3-alpha.0.184 37 1/7/2025
1.2.3-alpha.0.183 50 12/20/2024
1.2.3-alpha.0.182 48 12/20/2024
1.2.3-alpha.0.181 51 12/19/2024
1.2.3-alpha.0.179 50 12/19/2024
1.2.3-alpha.0.178 45 12/18/2024
1.2.3-alpha.0.177 77 12/13/2024
1.2.3-alpha.0.176 59 12/12/2024
1.2.3-alpha.0.175 51 12/9/2024
1.2.3-alpha.0.174 52 12/9/2024
1.2.3-alpha.0.173 55 12/5/2024
1.2.3-alpha.0.172 49 12/3/2024
1.2.3-alpha.0.171 53 11/22/2024
1.2.3-alpha.0.170 49 11/22/2024
1.2.3-alpha.0.169 54 11/21/2024
1.2.3-alpha.0.168 52 11/19/2024
1.2.3-alpha.0.167 63 11/11/2024
1.2.3-alpha.0.166 62 11/11/2024
1.2.3-alpha.0.164 55 11/5/2024
1.2.3-alpha.0.163 52 10/25/2024
1.2.3-alpha.0.161 52 10/22/2024
1.2.3-alpha.0.160 43 10/22/2024
1.2.3-alpha.0.159 102 10/18/2024
1.2.3-alpha.0.156 55 10/17/2024
1.2.3-alpha.0.155 54 10/16/2024
1.2.3-alpha.0.154 52 10/11/2024
1.2.3-alpha.0.153 55 10/10/2024
1.2.3-alpha.0.151 53 10/9/2024
1.2.3-alpha.0.150 67 9/27/2024
1.2.3-alpha.0.148 61 9/26/2024
1.2.3-alpha.0.147 54 9/25/2024
1.2.3-alpha.0.146 51 9/25/2024
1.2.3-alpha.0.144 55 9/23/2024
1.2.3-alpha.0.143 54 9/20/2024
1.2.3-alpha.0.142 50 9/20/2024
1.2.3-alpha.0.141 56 9/19/2024
1.2.3-alpha.0.140 54 9/19/2024
1.2.3-alpha.0.139 60 9/18/2024
1.2.3-alpha.0.138 48 9/18/2024
1.2.3-alpha.0.137 57 9/18/2024
1.2.3-alpha.0.136 55 9/18/2024
1.2.3-alpha.0.135 58 9/18/2024
1.2.3-alpha.0.134 69 9/16/2024
1.2.3-alpha.0.133 63 9/13/2024
1.2.3-alpha.0.132 54 9/12/2024
1.2.3-alpha.0.131 53 9/12/2024
1.2.3-alpha.0.130 60 9/9/2024
1.2.3-alpha.0.128 58 9/6/2024
1.2.3-alpha.0.127 55 9/6/2024
1.2.3-alpha.0.126 55 9/5/2024
1.2.3-alpha.0.125 58 9/4/2024
1.2.3-alpha.0.124 60 8/30/2024
1.2.3-alpha.0.123 52 8/30/2024
1.2.3-alpha.0.122 57 8/30/2024
1.2.3-alpha.0.121 54 8/30/2024
1.2.3-alpha.0.120 54 8/29/2024
1.2.3-alpha.0.119 54 8/27/2024
1.2.3-alpha.0.118 73 8/23/2024
1.2.3-alpha.0.117 71 8/23/2024
1.2.3-alpha.0.115 83 8/20/2024
1.2.3-alpha.0.114 81 8/16/2024
1.2.3-alpha.0.111 41 8/6/2024
1.2.3-alpha.0.110 43 8/5/2024
1.2.3-alpha.0.109 47 8/2/2024
1.2.3-alpha.0.108 49 8/2/2024
1.2.3-alpha.0.107 43 7/31/2024
1.2.3-alpha.0.106 55 7/30/2024
1.2.3-alpha.0.105 42 7/30/2024
1.2.3-alpha.0.104 45 7/30/2024
1.2.3-alpha.0.103 41 7/30/2024
1.2.3-alpha.0.102 55 7/29/2024
1.2.3-alpha.0.101 59 7/26/2024
1.2.3-alpha.0.100 49 7/25/2024
1.2.3-alpha.0.99 61 7/25/2024
1.2.3-alpha.0.98 59 7/25/2024
1.2.3-alpha.0.97 60 7/25/2024
1.2.3-alpha.0.96 57 7/25/2024
1.2.3-alpha.0.95 57 7/25/2024
1.2.3-alpha.0.94 59 7/24/2024
1.2.3-alpha.0.93 57 7/24/2024
1.2.3-alpha.0.92 60 7/25/2024
1.2.3-alpha.0.91 60 7/23/2024
1.2.3-alpha.0.90 58 7/23/2024
1.2.3-alpha.0.89 67 7/18/2024
1.2.3-alpha.0.88 59 7/17/2024
1.2.3-alpha.0.87 63 7/17/2024
1.2.3-alpha.0.86 61 7/17/2024
1.2.3-alpha.0.85 60 7/17/2024
1.2.3-alpha.0.84 57 7/16/2024
1.2.3-alpha.0.83 57 7/12/2024
1.2.3-alpha.0.82 47 7/10/2024
1.2.3-alpha.0.81 56 7/10/2024
1.2.3-alpha.0.80 60 7/9/2024
1.2.3-alpha.0.79 56 7/9/2024
1.2.3-alpha.0.78 54 7/9/2024
1.2.3-alpha.0.77 57 7/9/2024
1.2.3-alpha.0.76 61 7/9/2024
1.2.3-alpha.0.75 50 7/9/2024
1.2.3-alpha.0.74 61 7/8/2024
1.2.3-alpha.0.73 63 7/8/2024
1.2.3-alpha.0.72 60 7/5/2024
1.2.3-alpha.0.71 66 7/4/2024
1.2.3-alpha.0.70 57 7/4/2024
1.2.3-alpha.0.69 67 7/4/2024
1.2.3-alpha.0.68 59 7/3/2024
1.2.3-alpha.0.67 58 7/3/2024
1.2.3-alpha.0.66 48 7/3/2024
1.2.3-alpha.0.65 57 7/3/2024
1.2.3-alpha.0.64 65 7/2/2024
1.2.3-alpha.0.63 64 7/1/2024
1.2.3-alpha.0.62 60 6/26/2024
1.2.3-alpha.0.61 63 6/26/2024
1.2.3-alpha.0.60 61 6/26/2024
1.2.3-alpha.0.59 58 6/26/2024
1.2.3-alpha.0.58 67 6/24/2024
1.2.3-alpha.0.57 63 6/24/2024
1.2.3-alpha.0.55 59 6/24/2024
1.2.3-alpha.0.54 61 6/18/2024
1.2.3-alpha.0.53 55 6/18/2024
1.2.3-alpha.0.52 59 6/17/2024
1.2.3-alpha.0.51 58 6/17/2024
1.2.3-alpha.0.50 56 6/17/2024
1.2.3-alpha.0.49 58 6/13/2024
1.2.3-alpha.0.48 57 6/12/2024
1.2.3-alpha.0.47 57 6/12/2024
1.2.3-alpha.0.46 58 6/12/2024
1.2.3-alpha.0.45 57 6/12/2024
1.2.3-alpha.0.44 64 6/7/2024
1.2.3-alpha.0.43 53 6/6/2024
1.2.3-alpha.0.42 66 6/6/2024
1.2.3-alpha.0.41 64 5/28/2024
1.2.3-alpha.0.40 61 5/28/2024
1.2.3-alpha.0.38 64 5/27/2024
1.2.3-alpha.0.37 70 5/23/2024
1.2.3-alpha.0.36 65 5/22/2024
1.2.3-alpha.0.35 71 5/22/2024
1.2.3-alpha.0.34 73 5/16/2024
1.2.3-alpha.0.33 79 5/15/2024
1.2.3-alpha.0.32 67 5/15/2024
1.2.3-alpha.0.31 70 4/25/2024
1.2.3-alpha.0.29 69 4/24/2024
1.2.3-alpha.0.28 68 4/23/2024
1.2.3-alpha.0.27 68 4/22/2024
1.2.3-alpha.0.26 68 4/22/2024
1.2.3-alpha.0.25 67 4/22/2024
1.2.3-alpha.0.24 74 4/22/2024
1.2.3-alpha.0.23 72 4/19/2024
1.2.3-alpha.0.22 66 4/19/2024
1.2.3-alpha.0.21 70 4/19/2024
1.2.3-alpha.0.20 69 4/18/2024
1.2.3-alpha.0.19 66 4/18/2024
1.2.3-alpha.0.18 64 4/18/2024
1.2.3-alpha.0.17 70 4/16/2024
1.2.3-alpha.0.16 76 4/16/2024
1.2.3-alpha.0.15 75 4/12/2024
1.2.3-alpha.0.14 66 4/10/2024
1.2.3-alpha.0.13 70 4/10/2024
1.2.3-alpha.0.12 69 4/10/2024
1.2.3-alpha.0.11 68 4/9/2024
1.2.3-alpha.0.10 62 4/9/2024
1.2.3-alpha.0.9 56 4/9/2024
1.2.3-alpha.0.8 73 4/8/2024
1.2.3-alpha.0.7 91 4/5/2024
1.2.3-alpha.0.6 76 4/3/2024
1.2.3-alpha.0.5 69 4/3/2024
1.2.3-alpha.0.4 72 4/3/2024
1.2.3-alpha.0.3 77 3/29/2024
1.2.3-alpha.0.2 76 3/28/2024
1.2.3-alpha.0.1 75 3/28/2024
1.2.2 149 3/28/2024
1.2.2-alpha.0.3 77 3/28/2024
1.2.2-alpha.0.2 74 3/28/2024
1.2.2-alpha.0.1 61 3/27/2024
1.2.1 119 3/26/2024
1.1.2-alpha.0.5 70 3/26/2024
1.1.1 148 1/23/2024
1.1.0 247 10/27/2023
1.0.0 192 9/7/2023