예제 #1
0
 def mockconfig(self):
     ret = MockConfig()
     ret.set('main', 'modifiers', 'TimeOfDay')
     ret.set('TimeOfDay', 'on_after', '7,17')
     ret.set('TimeOfDay', 'off_between', '[(23,7),(10,17)]')
     ret.set('TimeOfDay', 'off_days', '[5, 6]')
     ret.set('TimeOfDay', 'dim_between', '[(20,8)]')
     ret.set('TimeOfDay', 'dim_level', '30')
     return ret
예제 #2
0
 def mockconfig(self):
     ret = MockConfig()
     ret.set('raspi', 'red', 17)
     ret.set('raspi', 'green', 18)
     ret.set('raspi', 'blue', 19)
     return ret
예제 #3
0
 def mockconfig(self):
     ret = MockConfig()
     ret.set("main", "plugins", "Weather")
     ret.set("main", "modifiers", "TimeOfDay")
     ret.set("Weather", "interval", 90)
     ret.set("Weather", "sequence", 1)
     ret.set("raspi", "red", 17)
     ret.set("raspi", "green", 18)
     ret.set("raspi", "blue", 19)
     return ret