RadiantPi.Sony.Cledis 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RadiantPi.Sony.Cledis --version 2.2.0
NuGet\Install-Package RadiantPi.Sony.Cledis -Version 2.2.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="RadiantPi.Sony.Cledis" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RadiantPi.Sony.Cledis --version 2.2.0
#r "nuget: RadiantPi.Sony.Cledis, 2.2.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 RadiantPi.Sony.Cledis as a Cake Addin
#addin nuget:?package=RadiantPi.Sony.Cledis&version=2.2.0

// Install RadiantPi.Sony.Cledis as a Cake Tool
#tool nuget:?package=RadiantPi.Sony.Cledis&version=2.2.0

RadiantPi.Sony.Cledis

SonyCledisClient enables control of a Sony C-LED (Cledis)) controller over Telnet. The library is platform agnostic and works on Windows or Linux, including on a Raspberry Pi.

Run the dotnet command from your project folder to add the RadiantPi.Sony.Cledis assembly:

dotnet add package RadiantPi.Sony.Cledis

Find a description of the latest changes in the release notes.

Sample: Show Module Temperatures

Use SonyCledisClient to connect to an Sony C-LED and the module temperatures.

using System;
using System.Linq;
using RadiantPi.Sony.Cledis;
using Spectre.Console;

// initialize client
using var client = new SonyCledisClient(new() {
    Host = "192.168.1.190",
    Port = 53595
});

// connect to device and fetch module temperatures
var temperatures = await AnsiConsole.Status()
    .Spinner(Spinner.Known.Dots)
    .StartAsync("Fetching Sony C-LED Module Temperatures", _ => client.GetTemperatureAsync());

// render module temperatures as a table
var table = new Table();
table.AddColumn("°C");
for(var column = 0; column < temperatures.ColumnCount; ++column) {
    table.AddColumn(new TableColumn($"C{column + 1}").Centered());
}
for(var row = 0; row < temperatures.RowCount; ++row) {
    var line = new string[temperatures.ColumnCount + 1];
    line[0] = $"\nR{row + 1}\n";
    for(var column = 0; column < temperatures.ColumnCount; ++column) {

        // find the highest temperature reading for each module
        var temperature = temperatures.Modules[column, row]
            .CellTemperatures
            .Append(temperatures.Modules[column, row].BoardTemperature)
            .Append(temperatures.Modules[column, row].AmbientTemperature)
            .Max();

        // render temperature with color coding
        var cell = $"\n{temperature:0.00}";
        line[column + 1] = cell;
    }
    table.AddRow(line);
}
table.Caption("Sony C-LED Module Temperatures");
AnsiConsole.Write(table);

Output

Screenshot

License

This application is distributed under the GNU Affero General Public License v3.0 or later.

Copyright (C) 2020-2022 - Steve G. Bjorg

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
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
2.5.0 424 5/4/2022
2.4.0 398 3/27/2022
2.3.0 384 3/26/2022
2.2.0 395 3/25/2022
2.1.0 418 2/17/2022
2.0.1 401 2/17/2022
2.0.0 405 2/16/2022
1.0.0 262 12/8/2021