Skip to content

tebben/Netatmo-API-DOTNET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Netatmo-API-DOTNET

Netatmo API for .Net (PCL)

Start of a Netatmo Weather Station API client implementation for .NET, currently supporting:

  • Login
  • GetStationsData
  • GetMeasure

Example use:

readonly NetatmoApi _api = new NetatmoApi("[ClientId]", "[ClientSecret]");

public Test()
{
	_api.LoginSuccessful += ApiLoginSuccessful;
	_api.Login("[username]", "[password]", new[] {NetatmoScope.read_station });
}

private async void ApiLoginSuccessful(object sender)
{
	var data = await _api.GetStationsData();
	var measurement = await _api.GetMeasure("[DeviceId]", Scale.Max, new[]
	{
		MeasurementType.Co2, MeasurementType.Humidity, MeasurementType.Noise, MeasurementType.Pressure,
		MeasurementType.Temperature
	});
}

About

Netatmo API for .Net (PCL)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages