TimHeuer.TempStickSharp 2.1.10

Suggested Alternatives

TempStickSharp

Additional Details

The package was renamed (sorry) and this is no longer being updated. No breaking changes in taking the new one (even namespaces).

dotnet add package TimHeuer.TempStickSharp --version 2.1.10
NuGet\Install-Package TimHeuer.TempStickSharp -Version 2.1.10
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="TimHeuer.TempStickSharp" Version="2.1.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TimHeuer.TempStickSharp --version 2.1.10
#r "nuget: TimHeuer.TempStickSharp, 2.1.10"
#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 TimHeuer.TempStickSharp as a Cake Addin
#addin nuget:?package=TimHeuer.TempStickSharp&version=2.1.10

// Install TimHeuer.TempStickSharp as a Cake Tool
#tool nuget:?package=TimHeuer.TempStickSharp&version=2.1.10

Build GitHub last commit Nuget

Logo

TempStick#

A simple C# client for the TempStick USB temperature sensor API.

Installation

The TempStick library is available as a NuGet package. To install TempStickSharp, run the following command in the Package Manager Console

PM> Install-Package TimHeuer.TempStickSharp

Usage

The TempStick library is a simple wrapper around the TempStick API. It provides a simple interface to get the sensor information and the readings from the sensors.

Retrieve a list of sensors

var client = new TempStickClient("YOUR_API_KEY");
var sensors = await client.GetSensorsAsync();

foreach (var sensor in sensors.Data.Sensors)
{
	Console.WriteLine(sensor.SensorName);
}

Retrieve the readings for a sensor

var client = new TempStickClient("YOUR_API_KEY");
var readings = await client.GetReadingsAsync("SENSOR_ID");

foreach (var reading in readings.Data.Readings)
{
	Console.WriteLine(reading.Humidity);
	Console.WriteLine(reading.Temperature);
}

Retrieve readings for a period of time

var client = new TempStickClient("YOUR_API_KEY");
var readings = await client.GetReadingsAsync("SENSOR_ID", 32400, "30_days", null, null);

foreach (var reading in readings.Data.Readings)
{
	Console.WriteLine(reading.Humidity);
	Console.WriteLine(reading.Temperature);
}

Support

For any support, please log a bug

License

TempStick# is licensed under the MIT License

Icon

Thermometer by Anggara Putra from Noun Project (CC BY 3.0)

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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.
  • net7.0

    • No dependencies.

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.1.10 196 8/15/2023

Revert sensor adjustment on time.