Пример #1
0
def status(dev: mirobo.PhilipsEyecare):
    """Returns the state information."""
    res = dev.status()
    if not res:
        return  # bail out

    click.echo(click.style("Power: %s" % res.power, bold=True))
    click.echo("Brightness: %s" % res.bright)
    click.echo("Eye Fatigue Reminder: %s" % res.notifystatus)
    click.echo("Ambient Light: %s" % res.ambstatus)
    click.echo("Ambient Light Brightness: %s" % res.ambvalue)
    click.echo("Eyecare Mode: %s" % res.eyecare)
    click.echo("Eyecare Scene: %s" % res.scene_num)
    click.echo("Night Light: %s " % res.bls)
    click.echo("Delay Off: %s minutes" % res.dvalue)
Пример #2
0
def status(dev: mirobo.PhilipsEyecare):
    """Returns the state information."""
    res = dev.status()
    if not res:
        return  # bail out

    click.echo(click.style("Power: %s" % res.power, bold=True))
    click.echo("Brightness: %s" % res.brightness)
    click.echo("Eye Fatigue Reminder: %s" % res.reminder)
    click.echo("Ambient Light: %s" % res.ambient)
    click.echo("Ambient Light Brightness: %s" % res.ambient_brightness)
    click.echo("Eyecare Mode: %s" % res.eyecare)
    click.echo("Eyecare Scene: %s" % res.scene)
    click.echo("Night Light: %s " % res.smart_night_light)
    click.echo("Countdown of the delayed turn off: %s minutes" %
               res.delay_off_countdown)