TimHeuer.TempStickSharp
2.1.10
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
<PackageReference Include="TimHeuer.TempStickSharp" Version="2.1.10" />
paket add TimHeuer.TempStickSharp --version 2.1.10
#r "nuget: TimHeuer.TempStickSharp, 2.1.10"
// 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
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.
Version | Downloads | Last updated | |
---|---|---|---|
2.1.10 | 239 | 8/15/2023 |
Revert sensor adjustment on time.