Date,Time,Bit Rate,Quality,Signal level,Noise level,Frequency 05/10/2010,01:13:28,54,21/100,-81,-92,2.412 05/10/2010,01:13:33,54,43/100,-67,-94,2.412 05/10/2010,01:13:38,54,43/100,-67,-94,2.412 05/10/2010,01:13:43,54,43/100,-67,-94,2.412 05/10/2010,01:13:48,54,43/100,-67,-94,2.412 05/10/2010,01:13:53,54,43/100,-67,-94,2.412 05/10/2010,01:13:58,54,43/100,-67,-94,2.412 05/10/2010,01:14:03,54,43/100,-67,-94,2.412 05/10/2010,01:14:08,54,43/100,-67,-94,2.412 05/10/2010,01:14:13,54,43/100,-67,-94,2.412 05/10/2010,01:14:18,54,43/100,-67,-94,2.412 05/10/2010,01:14:23,54,43/100,-67,-94,2.412 05/10/2010,01:14:28,54,43/100,-67,-94,2.412 05/10/2010,01:14:33,54,43/100,-67,-94,2.412 05/10/2010,01:14:38,54,32/100,-74,-91,2.412 05/10/2010,01:14:43,54,33/100,-73,-95,2.412 05/10/2010,01:14:48,54,33/100,-73,-95,2.412 05/10/2010,01:14:53,54,33/100,-73,-95,2.412 05/10/2010,01:14:58,54,33/100,-73,-95,2.412 05/10/2010,01:15:03,54,33/100,-73,-95,2.412 05/10/2010,01:15:08,54,33/100,-73,-95,2.412 05/10/2010,01:15:13,54,33/100,-73,-95,2.412 05/10/2010,01:15:18,54,33/100,-73,-94,2.412 05/10/2010,01:15:23,54,33/100,-73,-94,2.412 05/10/2010,01:15:28,54,33/100,-73,-94,2.412 05/10/2010,01:15:33,54,33/100,-73,-94,2.412
[queen-beecon-header] version=1.000000 checksum=16968412 [queen-beecon-exported-instance] widgetType=0 widgetVisible=1 operationalStatus=0 hideCanvas=false hideClickCanvas=true snippetBgRGB=0 snippetExtBgRGB=#000000000000 beecon_lt0_ImgZoom=0 beecon_lt0_BgRGB=2 beecon_lt0_ExtBgRGB=#808080808080 beecon_lt0_ImgFilename=queen-beecon-syserr.png beecon_eq0_ImgZoom=41 beecon_eq0_BgRGB=3 beecon_eq0_ExtBgRGB=#000000000000 beecon_eq0_ImgFilename=button_off.png beecon_eq1_ImgZoom=41 beecon_eq1_BgRGB=4 beecon_eq1_ExtBgRGB=#000000000000 beecon_eq1_ImgFilename=button_on.png beecon_ge2_ImgZoom=0 beecon_ge2_BgRGB=5 beecon_ge2_ExtBgRGB=#ffff00000000 beecon_ge2_ImgFilename=queen-beecon-apperr.png beecon_idxge2_ImgZoom=0 beecon_idxge2_BgRGB=11 beecon_idxge2_ExtBgRGB=#0000ffffffff beecon_idxge2_ImgFilename=queen-beecon-index.png widWidth=296.88414634146341 widHeight=130.1131498470948 instanceTitle=WIFI Capture Parameters instanceCmd=capture()\n{\n /sbin/iwconfig wlan0 | awk 'BEGIN {RS="\\f"}\n {\n gsub("ESSID:","");\n gsub(/"/,"");\n gsub("Frequency:","");\n gsub("Quality=","");\n gsub("level[:=]","");\n gsub("Rate=","");\n data=strftime("%d/%m/%Y",systime())","strftime("%H:%M:%S",systime())","$12","$27","$29","$32","$6;\n screen="Quality = "$27"\\n Frecuency = "$6"\\n Bit Rate = "$12" Mb/s\\n Signal level = "$29" dBm\\n Noise level = "$32" dBm"; \n }\n END {\n RS="\\n";\n file="/home/user/MyDocs/"$4".csv";\n titulo="Date,Time,Quality,Bit Rate,Signal level,Noise level,Frecuency";\n if ( system( "test -f "file ) != 0 ) print titulo > file; fi;\n print data >> file;\n print screen;\n }'\n}\n\nwidget_not_visible()\n{\n $((y++));\n if [ $y -ge 12 ]; then\n y=0;\n dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Data capture process WIFI, still in progress";\n fi;\n z=$x" "$y;\n echo "QBW_REMEMBER_ME($z)";\n}\n\nchange_REMEMBER_ME_ON()\n{\n z="ON "$y;\n echo "QBW_REMEMBER_ME($z)";\n dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Starting data collection WIFI";\n}\n\nchange_REMEMBER_ME_OFF()\n{\n z="OFF "$y;\n echo "QBW_REMEMBER_ME($z)";\n dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"WIFI complete data capture";\n}\n\nchange_interval_update()\n{\n id="/oh/no/more/qbw"$QBW_ID;\n dbus-send --session --type=method_call --dest=oh.no.more.qbw $id oh.no.more.qbw.set_param_uint32 string:'customIntervalSecs' uint32:$i string:'' | 'update_content' | 'update_layout';\n dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid1 oh.no.more.qbw.reset_rearm_timer;\n}\n\n# MAIN\n\nx=$( echo $QBW_REMEMBER_ME | awk '{ print $1 }' );\ny=$( echo $QBW_REMEMBER_ME | awk '{ print $2 }' );\nj=$QBW_EXEC_REASON;\nlet g=$QBW_HOTSPOT_PRESS%3;\n\nif [ $g -eq 0 ] && [ $j == "QBW_CLICK" ]; then\n if [ $x == "ON" ]; then\n y=0;\n change_REMEMBER_ME_OFF;\n change_interval_update;\n exit 0;\n else\n change_REMEMBER_ME_ON;\n i=5;\n capture;\n change_interval_update;\n exit 1;\n fi;\nfi;\n\nif [ $x == "ON" ]; then\n capture;\n if [ $QBW_ON_SIGHT == false ]; then widget_not_visible; fi;\n exit 1;\nfi; rememberMe=OFF 0 cmdImgFilename=queen-beecon.png cmdImgAngle=0 cmdImgZoom=0 cmdFgRGB=1 cmdExtFgRGB=#ffffffffffff cmdTextAngle=0 cmdVisibilityPosition=2 cmdImgVisibilityPosition=0 cmdJustify=2 cmdExtFont=Nokia Sans bold 12 cmdFontName=3 cmdFontSize=12 resImgFilename=queen-beecon-resimg.png resImgAngle=0 resImgZoom=0 resFgRGB=1 resExtFgRGB=#ffffffffffff resTextAngle=0 resVisibilityPosition=7 resImgVisibilityPosition=9 resJustify=0 resExtFont=Nokia Sans italic 12 resFontName=2 resFontSize=12 progressAnimationFrames=0 progressAnimationTimer=4 progressAnimationPos=8 progressAnimationAtClickXY=false progressAnimationBasename=queen-beecon-resimg.png updOnStartup=false updOnClick=true updOnDesktop=false updOnSight=false delayIndex=9 customIntervalSecs=0 updNeworkPolicy=0 updOnDBUS=0 updOnDBUSBus=0 updOnDBUSMatchRule=