TempStickSharp 2.2.1

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

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

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 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.2.6 189 8/16/2023
2.2.2 133 8/16/2023
2.2.1 142 8/16/2023
2.1.13 127 8/16/2023
2.1.11 152 8/16/2023

BREAKING CHANGES -- moved some types to true booleans. Implemented GetCurrentUser.