|
2011-05-09
, 11:14
|
|
Posts: 165 |
Thanked: 18 times |
Joined on Jun 2010
|
#1222
|
|
2011-05-09
, 14:49
|
|
Posts: 1,444 |
Thanked: 461 times |
Joined on Dec 2010
@ pakistan
|
#1223
|
the CPU usage script :
awk '{print $1/1000" MHz"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
if i want to check my CPU in % like the TOP command in xterm , or how can i grep the CPU % from the TOp command ??
|
2011-05-11
, 19:19
|
Posts: 146 |
Thanked: 76 times |
Joined on Feb 2010
@ Poland
|
#1224
|
[queen-beecon-header]
version=1,000000
checksum=3271916
[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=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#000000000000
beecon_eq0_ImgFilename=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#ffff7fff0000
beecon_eq1_ImgFilename=queen-beecon-appwrn.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=420.12987012987008
widHeight=113.16504854368932
instanceTitle=Battery(%):
instanceCmd=hal-device bme | awk -F"[. ]" '$5 == "is_charging" {chrg = $7}; $5 == "percentage" {perc = $7} END if (chrg == "false") {print perc "%"; exit (perc>10 ? 0 : perc>3 ? 1 : 2)} else {print "Chrg"; exit -1}'
rememberMe=
cmdImgFilename=
cmdImgAngle=0
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffffffffffff
cmdTextAngle=0
cmdVisibilityPosition=1
cmdImgVisibilityPosition=4
cmdJustify=0
cmdExtFont=Nokia Pure Text 16
cmdFontName=3
cmdFontSize=12
resImgFilename=
resImgAngle=0
resImgZoom=0
resFgRGB=1
resExtFgRGB=#0000ffffffff
resTextAngle=0
resVisibilityPosition=3
resImgVisibilityPosition=0
resJustify=0
resExtFont=Nokia Pure Text bold 16
resFontName=16
resFontSize=10
resWrapLongLines=false
progressAnimationFrames=4
progressAnimationTimer=4
progressAnimationPos=4
progressAnimationAtClickXY=false
progressAnimationBasename=
updOnStartup=false
updOnClick=true
multiClick=false
updOnDesktop=true
updOnSight=true
updOnOrientation=false
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
GPSsettings=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
|
2011-05-12
, 10:33
|
Posts: 146 |
Thanked: 76 times |
Joined on Feb 2010
@ Poland
|
#1225
|
I have a problem with beecon below, based on Battery(%) cmd, changed layout and displays and added exit result in cmd.
During battery charging the result is preceeded by the (strange) text '[!?ff00]' and newline.
|
2011-05-12
, 14:40
|
|
Posts: 623 |
Thanked: 289 times |
Joined on Jan 2010
@ UK
|
#1226
|
|
2011-05-12
, 14:47
|
Posts: 1,326 |
Thanked: 1,524 times |
Joined on Mar 2010
|
#1227
|
|
2011-05-12
, 17:27
|
Posts: 146 |
Thanked: 76 times |
Joined on Feb 2010
@ Poland
|
#1228
|
I cannot import your QBW as I am getting a "Check sum error", please export your QBW as a text file and upload it here.
[queen-beecon-header]
version=1,000000
checksum=3286792
[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=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#000000000000
beecon_eq0_ImgFilename=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#ffff7fff0000
beecon_eq1_ImgFilename=queen-beecon-appwrn.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=200.07766990291262
widHeight=96.888888888888886
instanceTitle=Battery(%):
instanceCmd=hal-device bme | awk -F"[. ]" '$5 == "is_charging" {chrg = $7}; $5 == "percentage" {perc = $7} END if (chrg == "false") {print perc "%"; exit (perc>10 ? 0 : perc>3 ? 1 : 2)} else {print "Chrg"; exit -1}'
rememberMe=
cmdImgFilename=
cmdImgAngle=0
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffffffffffff
cmdTextAngle=0
cmdVisibilityPosition=1
cmdImgVisibilityPosition=4
cmdJustify=0
cmdExtFont=Nokia Pure Text 16
cmdFontName=3
cmdFontSize=12
resImgFilename=
resImgAngle=0
resImgZoom=0
resFgRGB=1
resExtFgRGB=#0000ffffffff
resTextAngle=0
resVisibilityPosition=3
resImgVisibilityPosition=0
resJustify=0
resExtFont=Nokia Pure Text bold 16
resFontName=16
resFontSize=10
resWrapLongLines=false
progressAnimationFrames=4
progressAnimationTimer=4
progressAnimationPos=4
progressAnimationAtClickXY=false
progressAnimationBasename=
updOnStartup=false
updOnClick=true
multiClick=false
updOnDesktop=true
updOnSight=true
updOnOrientation=false
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
GPSsettings=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
|
2011-05-14
, 18:29
|
|
Posts: 140 |
Thanked: 369 times |
Joined on Jun 2010
@ Ituzaingo, Argentina
|
#1229
|
wget -t 1 -T10 -q http://xml.weather.com/weather/local/ARBA1708?cc=*&unit=M&dayf=0 | awk '/<icon>/,/<\/icon>/{print $1}'
|
2011-05-14
, 20:15
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#1230
|
hello
im trying to make a weather widget, but i can't find the proper way to parse the weather.com xml web page
here is what i got so far
i don't know too much about awk, but what im trying to parse is the number of the icon, so it can be result as an exit and displayed from a set of icons (just like omweather does)Code:wget -t 1 -T10 -q http://xml.weather.com/weather/local/ARBA1708?cc=*&unit=M&dayf=0 | awk '/<icon>/,/<\/icon>/{print $1}'
the problem is i'm not getting any output, just exit=0 and no result
can anyone help me to get the correct format or tell me if i'm missing something?
Nokia-N900-51-1:~# wget -t 1 -T 10 -O - -q 'http://xml.weather.com/weather/local/ARBA1708?cc=*&unit=M&dayf=0' | awk 'BEGIN {FS="[\<\>]";}/<icon>/,/<\/icon>/{print $3}' | head -1
34
Nokia-N900-51-1:~# wget -t 1 -T 10 -O - -q 'http://xml.weather.com/weather/local/ARBA1708?cc=*&unit=M&dayf=0' | awk 'BEGIN {FS="[\<\>]";}/<icon>/,/<\/icon>/{print $3}' | tail -1
11
Nokia-N900-51-1:~#
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
now i can find any access point mac very fast