Active Topics

 



Notices


Reply
Thread Tools
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#1221
Originally Posted by JonWW View Post
To get the MAC address:
Code:
echo "iwconfig wlan0"|root|grep Point|sed "s/.*Point: //;s/ //g"
thank you your my saver :>
now i can find any access point mac very fast
 
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#1222
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 ??
 
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#1223
Originally Posted by moudy91 View Post
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 ??
http://wiki.maemo.org/Desktop_Comman..._start_browser

http://wiki.maemo.org/Phone_control#...profile_Values

try to search in these two links as they have all the codes required
 
Posts: 146 | Thanked: 76 times | Joined on Feb 2010 @ Poland
#1224
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.

[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=
__________________
Remember to click Thanks! if this post is of any help
 
Posts: 146 | Thanked: 76 times | Joined on Feb 2010 @ Poland
#1225
Originally Posted by Robb View Post
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.
So is this just me, or can someone reproduce this issue?
Maybe someone had a similar issue?
__________________
Remember to click Thanks! if this post is of any help
 
JonWW's Avatar
Posts: 623 | Thanked: 289 times | Joined on Jan 2010 @ UK
#1226
Originally Posted by Robb View Post
So is this just me, or can someone reproduce this issue?
Maybe someone had a similar issue?
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.
 
Posts: 1,326 | Thanked: 1,524 times | Joined on Mar 2010
#1227
Hi guys, I am looking for a little assistance with a CPU and Memory dial widget that i wish to add to my home screen.

Is there a way to display the CPU and Memory usage as an active (Odometre style) dial?

Ideally this would show in increments of 10-100%, and would be a desktop widget of the CPU/mem applet. I have the dial images but need a way of coding them to the desktop?

All advice would be appreciated
 
Posts: 146 | Thanked: 76 times | Joined on Feb 2010 @ Poland
#1228
Originally Posted by JonWW View Post
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.
Sorry about that A smiley appeared in my post and I modified the beecon.
Here it is again unmodified:
[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=
__________________
Remember to click Thanks! if this post is of any help
 
Harick's Avatar
Posts: 140 | Thanked: 369 times | Joined on Jun 2010 @ Ituzaingo, Argentina
#1229
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
Code:
wget -t 1 -T10 -q http://xml.weather.com/weather/local/ARBA1708?cc=*&unit=M&dayf=0 | awk '/<icon>/,/<\/icon>/{print $1}'
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)

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?
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#1230
Originally Posted by Harick View Post
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
Code:
wget -t 1 -T10 -q http://xml.weather.com/weather/local/ARBA1708?cc=*&unit=M&dayf=0 | awk '/<icon>/,/<\/icon>/{print $1}'
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)

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?
PHP Code:
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:~
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following User Says Thank You to No!No!No!Yes! For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:22.