maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread (https://talk.maemo.org/showthread.php?t=45388)

moudy91 2011-05-09 11:08

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by JonWW (Post 1002575)
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 2011-05-09 11:14

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
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 2011-05-09 14:49

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by moudy91 (Post 1002684)
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 :)

Robb 2011-05-11 19:19

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
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.

Quote:

[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=

Robb 2011-05-12 10:33

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by Robb (Post 1004382)
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?

JonWW 2011-05-12 14:40

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by Robb (Post 1004763)
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.

MINKIN2 2011-05-12 14:47

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
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

Robb 2011-05-12 17:27

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by JonWW (Post 1004913)
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:
Quote:

[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=

Harick 2011-05-14 18:29

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
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! 2011-05-14 20:15

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by Harick (Post 1006323)
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:~



All times are GMT. The time now is 07:29.

vBulletin® Version 3.8.8