View Single Post
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