// currently unimplemented URL API calls // /blink1/input/scriptlist -- List available scripts to run // /blink1/input/cpuload -- Add and Start CPU load watching input // /blink1/input/netload -- Start network load watching input #endregion // ---------------------------------------------------------------------------------------- // updates to inputs handling // /// <summary> /// Periodically update the inputs, triggering color patterns if needed /// Runs every 15(?) seconds /// </summary> public void updateInputs(Object stateInfo) { if (!inputsEnable) { return; } Log("updateInputs"); Blink1Input.getIftttResponse(true); foreach (var pair in inputs) { Blink1Input input = pair.Value; input.update(); // FIXME: maybe do a logging of inputs that cause triggers like: // if( input.update() ) { // alertLog.Add( Now(), input.name ); // } // and then have a "/blink1/alertlog" URL } }