PieEatingNinjas.OmnikDataRetriever 0.0.1

.NET Standard 1.1
There is a newer version of this package available.
See the version list below for details.
Install-Package PieEatingNinjas.OmnikDataRetriever -Version 0.0.1
dotnet add package PieEatingNinjas.OmnikDataRetriever --version 0.0.1
<PackageReference Include="PieEatingNinjas.OmnikDataRetriever" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PieEatingNinjas.OmnikDataRetriever --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PieEatingNinjas.OmnikDataRetriever, 0.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PieEatingNinjas.OmnikDataRetriever as a Cake Addin
#addin nuget:?package=PieEatingNinjas.OmnikDataRetriever&version=0.0.1

// Install PieEatingNinjas.OmnikDataRetriever as a Cake Tool
#tool nuget:?package=PieEatingNinjas.OmnikDataRetriever&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Create a new instance of the Gateway class:

var gw = new PieEatingNinjas.OmnikDataRetriever.Gateway();

Log in using your personal Omnik Portal credentials:

var user = await gw.Login(username, passwd);

Next, provide the instance of the Gateway class with the UserData that was returned from the Login method:


After this step, you can use the Gateway instance to get information about your inverter.

You can retrieve all your plants with their data by calling:

var plants = await gw.GetPlantList();

To get additional information about a plant, you can call the GetPlantData method:

var data = await gw.GetPlantData(item.PlantId);


var gw = new Gateway();

var userResponse = await gw.Login(username, passwd);

if (userResponse.ErrorCode != 0)


var plantsResponse = await gw.GetPlantList();

if (plantsResponse.ErrorCode != 0)

var plants = plantsResponse.Data;

Console.WriteLine($"Found {plants.Count} plant{(plants.Count == 1 ? "" : "s")}");
foreach (var item in plants.Plants)
    Console.WriteLine("Plant data:");
    Console.WriteLine($"Total energy:\t{item.TotalEnergy}kWh");
    Console.WriteLine($"Current power:\t{item.CurrentPower}kW");

    var plantResponse = await gw.GetPlantData(item.PlantId);

    if(plantResponse.ErrorCode != 0)

    Console.WriteLine($"Today energy:\t{plantResponse.Data.TodayEnergy}kWh");
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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.0.3 357 7/31/2019
1.0.2 287 7/31/2019
1.0.1 287 7/31/2019
0.0.1 316 7/28/2019

Initial version.
Use Omnik Portal credentials to log in.