public async static Task Run([TimerTrigger("0 0 15 * * *")] TimerInfo myTimer, TraceWriter log) { var settings = new LightSettings { Power = "off" }; await LightHelper.UpdateLightAsync(settings, "Failed to turn off light", log); }
public async static Task Run([TimerTrigger("0 0 12 * * *")] TimerInfo myTimer, TraceWriter log) { var settings = new LightSettings { Brightness = 0.2, }; await LightHelper.UpdateLightAsync(settings, "Failed to increase brightness", log); }
public async static Task Run([TimerTrigger("0 15 11 * * *")] TimerInfo myTimer, TraceWriter log) { var settings = new LightSettings { Brightness = 0.02, Power = "on" }; await LightHelper.UpdateLightAsync(settings, "Failed to turn on light", log); }