TempStickSharp 2.1.11
See the version list below for details.
dotnet add package TempStickSharp --version 2.1.11
NuGet\Install-Package TempStickSharp -Version 2.1.11
<PackageReference Include="TempStickSharp" Version="2.1.11" />
paket add TempStickSharp --version 2.1.11
#r "nuget: TempStickSharp, 2.1.11"
// Install TempStickSharp as a Cake Addin #addin nuget:?package=TempStickSharp&version=2.1.11 // Install TempStickSharp as a Cake Tool #tool nuget:?package=TempStickSharp&version=2.1.11
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 | Versions 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. |
-
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.
Revert sensor adjustment on time.