#!/usr/bin/python2.7

import Dynamic

__author__ = 'WendyYu'

if __name__ == '__main__':
    group_no_hue = 0
    hue_body_list = ['{"xy":[0.4308, 0.5042], "bri":2}', '{"xy":[0.3804, 0.3768], "bri":2}',
                     '{"xy":[0.1616, 0.3738], "bri":2}', '{"xy":[0.3804, 0.3768], "bri":2}',
                     '{"xy":[0.4224, 0.1779], "bri":2}', '{"xy":[0.3804, 0.3768], "bri":2}']

    try:
        # while True:
        print "\nColor gamut middle point to 4000k and bri:1 test\n"
        Dynamic.execute(group_no_hue, hue_body_list)
        Dynamic.color_gamut.write_log_all("Color_gamut_TC15", "./logs/color_gamut_xy")

    except KeyboardInterrupt:
        input("\nPress any key to quit...")

    except Exception as e:
        print "\n\033[1;31;0m%s\033[0m" % e
#!/usr/bin/python2.7

import Dynamic

__author__ = 'WendyYu'

if __name__ == '__main__':
    group_no_hue = 0
    hue_body_list = ['{"xy":[0.4308, 0.5042], "bri":254}', '{"xy":[0.4308, 0.5042], "bri":1, "transitiontime":600}',
                     '{"xy":[0.1616, 0.3738], "bri":254}', '{"xy":[0.1616, 0.3738], "bri":1, "transitiontime":600}',
                     '{"xy":[0.4224, 0.1779], "bri":254}', '{"xy":[0.4224, 0.1779], "bri":1, "transitiontime":600}']

    try:
        # while True:
        print "\nColor gamut middle point for bri transition test"
        Dynamic.execute(group_no_hue, hue_body_list)
        Dynamic.color_gamut.write_log_all("Color_gamut_bri_TC3", "./logs/color_gamut_bri")

    except KeyboardInterrupt:
        input("\nPress any key to quit...")
示例#3
0
#!/usr/bin/python2.7

import Dynamic

__author__ = 'WendyYu'

if __name__ == '__main__':
    # group_no_lux = 2
    group_no_lux = 0
    # lux_light_list = [29, 23, 20, 1, 43, 8, 44, 27, 6, 39, 34, 52]
    lux_light_list = [1, 2, 4, 5, 7, 9, 10, 11, 12, 16, 17, 18, 19]
    lux_body_list = [
        '{"on":true, "bri":1, "transitiontime":50}', '{"bri":254}',
        '{"on":false, "transitiontime":50}', '{"on":true, "bri":160}',
        '{"on":true, "bri":225}', '{"bri":254}', '{"on":false}'
    ]
    try:
        while True:
            print "\nLux dynamic Test Start"
            Dynamic.execute(group_no_lux, lux_light_list, lux_body_list)
            Dynamic.dynamic_test.write_log_all("Dynamic_lux",
                                               "./logs/dynamic/lux")

    except KeyboardInterrupt:
        input("\nPress any key to quit...")
示例#4
0
#!/usr/bin/python2.7

import Dynamic

__author__ = 'WendyYu'

if __name__ == '__main__':
    group_no_gu10 = 3
    gu10_light_list = [53, 32, 31, 28, 22, 14, 11, 42, 36, 38, 19, 41, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63]
    gu10_body_list = ['{"on":true, "bri":50, "ct":153}', '{"bri":160, "ct":250}', '{"on":false, "transitiontime":100}',
                      '{"on":true, "bri":225, "ct":370}', '{"bri":254, "ct":454}', '{"on":false}'
                      ]
    try:
        while True:
            print "\nGu10 and BR30 Tone dynamic Test Start\n"
            Dynamic.execute(group_no_gu10, gu10_light_list, gu10_body_list)
            Dynamic.dynamic_test.write_log_all("Dynamic_Tone", "./logs/dynamic/Tone")

    except KeyboardInterrupt:
        input("\nPress any key to quit...")
示例#5
0
#!/usr/bin/python2.7

import Dynamic

__author__ = 'WendyYu'

if __name__ == '__main__':
    # group_no_lux = 2
    group_no_lux = 0
    # lux_light_list = [29, 23, 20, 1, 43, 8, 44, 27, 6, 39, 34, 52]
    lux_light_list = [1, 2, 4, 5, 7, 9, 10, 11, 12, 16, 17, 18, 19]
    lux_body_list = ['{"on":true, "bri":1, "transitiontime":50}', '{"bri":254}',
                     '{"on":false, "transitiontime":50}', '{"on":true, "bri":160}',
                     '{"on":true, "bri":225}', '{"bri":254}',
                     '{"on":false}'
                     ]
    try:
        while True:
            print "\nLux dynamic Test Start"
            Dynamic.execute(group_no_lux, lux_light_list, lux_body_list)
            Dynamic.dynamic_test.write_log_all("Dynamic_lux", "./logs/dynamic/lux")

    except KeyboardInterrupt:
        input("\nPress any key to quit...")