C# Class huedotnet.HueLamp

Mostra file Open project: in18/hics Class Usage Examples

Public Methods

Method Description
GetJson ( ) : String

Einen String für das Json-Kommando zusammenbasteln Da steht drin on/off,brightness,hue,sättigung,....

GetJsonXY ( ) : String

Über XY Werte die Farbe übergeben, ist noch imm Test!

GetLampNumber ( ) : int
GetTransitionTime ( ) : int?
HueLamp ( int lampNumber, String name, bool state, double hue, double sat, double bri ) : System
SetColor ( int r, int g, int b ) : void

Farbwert einer Lampe mittels RGB-System setzen

SetHue ( double hue ) : void

Den Hue-Wert setzen

SetTransitionTime ( int timeMilli ) : void
SetXY ( double x, double y ) : void

Den Farbwert an die Lampe mittels dem HUE-XY Farbschemas übergeben

Method Details

GetJson() public method

Einen String für das Json-Kommando zusammenbasteln Da steht drin on/off,brightness,hue,sättigung,....
public GetJson ( ) : String
return String

GetJsonXY() public method

Über XY Werte die Farbe übergeben, ist noch imm Test!
public GetJsonXY ( ) : String
return String

GetLampNumber() public method

public GetLampNumber ( ) : int
return int

GetTransitionTime() public method

public GetTransitionTime ( ) : int?
return int?

HueLamp() public method

public HueLamp ( int lampNumber, String name, bool state, double hue, double sat, double bri ) : System
lampNumber int
name String
state bool
hue double
sat double
bri double
return System

SetColor() public method

Farbwert einer Lampe mittels RGB-System setzen
public SetColor ( int r, int g, int b ) : void
r int Rot-Wert
g int Grün-Wert
b int Blau-Wert
return void

SetHue() public method

Den Hue-Wert setzen
public SetHue ( double hue ) : void
hue double Hue-Wert
return void

SetTransitionTime() public method

public SetTransitionTime ( int timeMilli ) : void
timeMilli int
return void

SetXY() public method

Den Farbwert an die Lampe mittels dem HUE-XY Farbschemas übergeben
public SetXY ( double x, double y ) : void
x double X Wert
y double y Wert
return void