コード例 #1
0
ファイル: agent_tinkerforge.py プロジェクト: tribe29/checkmk
def print_temperature(conn, settings, uid):
    from tinkerforge.bricklet_temperature import BrickletTemperature

    br = BrickletTemperature(uid, conn)
    print_generic(
        settings, "temperature", br.get_identity(), 0.01, "\N{DEGREE SIGN}C", br.get_temperature()
    )
コード例 #2
0
def print_temperature(conn, settings, uid):
    from tinkerforge.bricklet_temperature import BrickletTemperature  # type: ignore[import] # pylint: disable=import-error,import-outside-toplevel
    br = BrickletTemperature(uid, conn)
    print_generic(settings, "temperature", br.get_identity(), 0.01, u"\N{DEGREE SIGN}C",
                  br.get_temperature())