Skip to content

Instantly share code, notes, and snippets.

View anpin's full-sized avatar
🤖
improving assets sustainability

Pavel Anpin anpin

🤖
improving assets sustainability
View GitHub Profile
using Crestron.SimplSharp;
using Crestron.SimplSharp.Scheduler;
namespace APES.SSharp.Light
{
public static partial class LightService
{
static ScheduledEventGroup _schedule = new ScheduledEventGroup("LightService");
static void ScheduleDuskOn(DateTime date)
{
string eventName = string.Format("dusk-{0}-{1}-{2}", date.Date, date.Month, date.Year);