Exemple #1
0
        //    /blink1/pattern/stopall -- Stop all pattern playback
        static string Ublink1PatternStopAll(HttpRequest request, Blink1Server blink1Server)
        {
            blink1Server.stopAllPatterns();
            Dictionary <string, object> result = new Dictionary <string, object>();

            result.Add("status", "all patterns stopped");
            return(JsonConvert.SerializeObject(result, Formatting.Indented, jsonSerializerSettings));
        }
Exemple #2
0
        //    /blink1/off -- Stop pattern playback and send fadeToRGB command to blink(1) with #000000 & 0.1 sec fade time
        static string Ublink1Off(HttpRequest request, Blink1Server blink1Server)
        {
            blink1Server.stopAllPatterns();
            blink1Server.fadeToRGB(0.1, Color.Black);

            Dictionary <string, object> result = new Dictionary <string, object>();

            result.Add("status", "off");
            return(JsonConvert.SerializeObject(result, Formatting.Indented));
        }
Exemple #3
0
 //    /blink1/pattern/stopall -- Stop all pattern playback
 static string Ublink1PatternStopAll(HttpRequest request, Blink1Server blink1Server)
 {
     blink1Server.stopAllPatterns();
     Dictionary<string, object> result = new Dictionary<string, object>();
     result.Add("status", "all patterns stopped");
     return JsonConvert.SerializeObject(result, Formatting.Indented, jsonSerializerSettings);
 }
Exemple #4
0
        //    /blink1/off -- Stop pattern playback and send fadeToRGB command to blink(1) with #000000 & 0.1 sec fade time
        static string Ublink1Off(HttpRequest request, Blink1Server blink1Server)
        {
            blink1Server.stopAllPatterns();
            blink1Server.fadeToRGB(0.1, Color.Black);

            Dictionary<string, object> result = new Dictionary<string, object>();
            result.Add("status", "off");
            return JsonConvert.SerializeObject(result, Formatting.Indented);
        }