Serence Inc. Copyright © 2002-2006 Serence Inc. support@serence.com http://www.klipfolio.com/ WiFi Monitor gxP8JhonGPf1UJjYCko9IWIbiY7MSfTfHs9xIlQF8kFP2aoZtW9Z+OmtMWEJVVrik+rFMlVM3ayHaQBmQgUwRLA4rhHtyNKvTyImd0hzQXld7VLTpp9CuzAbkoY9UX4HAkWDQzMiJUCyrbw886sJB+/90baacDfliF8bmoWgZak= 2.1 wifi-monitor-23221132 2006.12.20:1500 Keep track of WiFi signal strength in KlipFolio. wifi signal strength wireless 80211 b g monitor http://www.klipfolio.com http://www.serence.com/serence_klips/pics/wifi-monitor/wifi-monitor_icon.png http://www.serence.com/serence_klips/pics/wifi-monitor/wifi-monitor_banner.gif http://www.serence.com/serence_klips/wifi-monitor.klip 4.0 extended 525600 true ca -- Getting signal strength... No signal detected. -113 && rssival <= -96) { rssipct = 1; strength = "Very Weak"; } else if (rssival > -96 && rssival <= -80) { rssipct = 2; strength = "Weak"; } else if (rssival > -80 && rssival <= -60) { rssipct = 3; strength = "Fair"; } else if (rssival > -60 && rssival <= -44) { rssipct = 4; strength = "Good"; } else if (rssival > -44 && rssival <= -27) { rssipct = 5; strength = "Very Good"; } else if (rssival > -27) { rssipct = 6; strength = "Excellent"; } var instance = Engines.Platform.queryWMI ( "SELECT * FROM MSNdis_80211_ReceivedSignalStrength WHERE active=true", "InstanceName"); // for now just report the first instance - in future we may want to give the user the choice var itemstr = "1" + "" + g_url + rssipct + ".png" + "This Klip displays the signal strength of the WiFi access point you are currently using." + "" + instance.split (",")[0] + "" + ssid.split (",")[0] + "" + rssival + " dBm" + "" + strength + ""; Engines.KlipFood.process (itemstr); } else { Items.clear (true); showWelcomeMessage (); } } return true; } function onRefresh () { if (KFVersionOutOfDate ()) return false; var success = getWIFI(); // Make sure the user can't delete or dim (visit) the webcam image if(Items.length) { Items[0].canvisit = false; Items[0].candelete = false; } return success; } var g_intro_text = "" + "" + "Unable to detect wifi signal." + "You are either not connected to a wireless network, or this WiFi Klip does not support your wireless hardware. Please see the setup window for more information." + "" + ""; var g_intro_styles = "help {type:item;}" + "helpheader {itemcol:1; noterow:1; notelabel:false; emphasis:strong;}" + "helptext {noterow:2; notelabel:false;}" + "helpimage {noterow:3; type:image; notelabel:false;}"; function showWelcomeMessage () { // // Use special stylesheet for intro message and process // XML to show message. // Engines.KlipFood.stylesheet = g_intro_styles; Engines.KlipFood.process (g_intro_text); // // Make first line non-removable // Items.status = " "; Items[0].candelete = false; Items[0].canvisit = false; Items[0].canautoremove = false; Items[0].onClick = clickWelcomeMessage; } function clickWelcomeMessage() { Setup.open(0); } function KFVersionOutOfDate () { // check to see if this version of KlipFolio is out of date if (KlipFolio == null || KlipFolio.build <= 5892) { var introText = "" + "" + "KlipFolio verison 4 is required to run this Klip. Click here to download the latest version." + "http://www.klipfolio.com/inkf-beta" + "welcome_message" + "" + ""; var introStyle = "introitem {type:item; definition: 'introtext,introlink,introiid';}" + "introtext {itemcol:1; noterow:1; wrap:true; notelabel:false;}" + "introlink {type:link;}" + "introiid {key:override}"; Engines.KlipFood.stylesheet = introStyle; Engines.KlipFood.process (introText); Engines.KlipFood.stylesheet = "@import klip"; g_outofdate = true; return true; } g_outofdate = false; return false; } ]]>