public static void Init() { var xinzhi = new XinzhiWeatherForcast("gxs3ezcux67dzvqa", "shanghai");//replace the key with your own, this is for my development only xinzhi.Start(); manager.InfoManager.Providers.Add(xinzhi); manager.AddDefinition("preview", previewRenderer, Core.ClockRefreshIntervalEnum.OneTime); RemoteRenderer remote = new RemoteRenderer("192.168.0.220"); manager.AddDefinition("PerMinute", remote, Core.ClockRefreshIntervalEnum.PerMinute); }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { refreshPacks(); ImageSourceRenderer imgRenderer = new ImageSourceRenderer(); this.imgResult.DataContext = imgRenderer.Data; render.Renderers.Add(new CombinedRendererItem(imgRenderer)); WaveShareEink32Renderer einkRenderer = new WaveShareEink32Renderer(); render.Renderers.Add(new CombinedRendererItem(einkRenderer, false)); RemoteRenderer remoteRenderer = new RemoteRenderer("192.168.0.220"); render.Renderers.Add(new CombinedRendererItem(remoteRenderer, false)); lstRenders.ItemsSource = render.Renderers; var xinzhi = new XinzhiWeatherForcast("gxs3ezcux67dzvqa", "shanghai");//replace the key with your own, this is for my development only xinzhi.Start(); manager.InfoManager.Providers.Add(xinzhi); manager.AddDefinition(CLOCK_NAME, render, SmartClock.Core.ClockRefreshIntervalEnum.PerSecond); }