|
2010-10-28
, 07:18
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#792
|
Is it possible to create a widget that shows Time, Date and Day like the one in the picture below using Queen beecon,
if possible can anyone help me out to do this?
|
2010-10-28
, 07:44
|
|
Posts: 675 |
Thanked: 923 times |
Joined on Apr 2010
@ London
|
#793
|
When Orientation is enabled, the beecon is executed every time you turn your phone.
Beecon is not actually rotated because I wanted to leave the most possible flexibility to the beeconer. Suppose for example you'd like a landscape layout with, say, a seaside background and all "summer-marine-themed" widgets scattered horizontally ... while a portrait layout with a winter background and all "flaky-fidgeted-cokedrinking-polar-bears" scattered vertically (I know I'm a bit maniac with this example ... but YOU, crazy graphics modders, are prone to such kind of desktop raping attacks!!! )
If you have a look at the example beecon (which is now fixed as 1 image was missing in the archive) you'll see that every orientation condition triggers the script execution, ends up returning a different exit status according to orientation and button state; beecon then takes care of indexing the correct image and displays it.
PHP Code:
#We fetch previous state from button text
c=$QBW_CURRENT_RESULTS_TEXT
#Deal with widget startup condition and init button 1st position
if [ "_$c" == "_" -o "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ];then
#Insert here commands to turn on
#nothing if, on startup, sensor is already on
c=1;
fi;
if [ "$QBW_EXEC_REASON" == "QBW_CLICK" ];then
if [ $c -eq 1 ]; then
#Insert here commands to turn off
c=0;
else
#Insert here commands to turn on
c=1;
fi;
fi
case "$QBW_ORIENTATION_MODE" in
"portrait") x=644; y=292 ;xt=`expr 4 + 4 \\* $c` ;;
"landscape (inverted)") x=644; y=155 ;xt=`expr 5 + 4 \\* $c` ;;
"portrait (inverted)") x=0 ; y=155 ;xt=`expr 6 + 4 \\* $c` ;;
*) x=0 ; y=292 ;xt=`expr 3 + 4 \\* $c` ;;
esac
#Move beecon on screen command according to x,y calculated in 'case'
run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$QBW_ID oh.no.more.qbw.set_position int32:$x int32:$y
#Store current status
echo $c
#Exit with correct code to show the image according to current orientation status
exit $xt
|
2010-10-28
, 07:59
|
Posts: 47 |
Thanked: 30 times |
Joined on Jul 2010
@ BANGALORE
|
#794
|
|
2010-10-28
, 17:09
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#795
|
Is it possible to create a widget that shows Time, Date and Day like the one in the picture below using Queen beecon,
if possible can anyone help me out to do this?
[queen-beecon-header] version=1.000000 checksum=2963190 [queen-beecon-exported-instance] widgetType=0 widgetVisible=1 operationalStatus=0 hideCanvas=true 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=#0000ffff0000 beecon_eq0_ImgFilename=queen-beecon-appok.png beecon_eq1_ImgZoom=0 beecon_eq1_BgRGB=4 beecon_eq1_ExtBgRGB=#ffffffff0000 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=250 widHeight=100 instanceTitle=CoolDate instanceCmd=echo -e "`date +'<span font=\\"40\\">%l:%M</span>%P%n%A, %B %d'`" rememberMe= cmdImgFilename=;queen-beecon.png cmdImgAngle=0 cmdImgZoom=0 cmdFgRGB=1 cmdExtFgRGB=#ffffffffffff cmdTextAngle=0 cmdVisibilityPosition=0 cmdImgVisibilityPosition=0 cmdJustify=0 cmdExtFont=Nokia Sans bold italic 12 cmdFontName=3 cmdFontSize=12 resImgFilename=;queen-beecon-resimg.png resImgAngle=0 resImgZoom=0 resFgRGB=1 resExtFgRGB=#ffffffffffff resTextAngle=0 resVisibilityPosition=1 resImgVisibilityPosition=0 resJustify=0 resExtFont=Nokia Sans bold 12 resFontName=2 resFontSize=12 progressAnimationFrames=0 progressAnimationTimer=4 progressAnimationPos=8 progressAnimationAtClickXY=true progressAnimationBasename=queen-beecon-progress updOnStartup=true updOnClick=true updOnDesktop=true updOnSight=true delayIndex=2 customIntervalSecs=0 updNeworkPolicy=0 updOnDBUS=0 updOnDBUSBus=0 updOnDBUSMatchRule= multiClick=false updOnOrientation=false GPSsettings=0 resWrapLongLines=false
|
2010-10-28
, 17:56
|
|
Posts: 675 |
Thanked: 923 times |
Joined on Apr 2010
@ London
|
#796
|
|
2010-10-28
, 19:02
|
Posts: 208 |
Thanked: 220 times |
Joined on Apr 2010
|
#797
|
OK starting sloooooooow... if you get the chance (I know you're busy mate so absolutely no rush ) ...how would someone go about changing their wallpaper depending on orientation?
Kind Regards,
D4rK
gconftool-2 -s /apps/osso/hildon-desktop/views/<desktop-number>/bg-image -t string <path_to_image>
With Linux-powered N900..ANYTHING is possible
|
2010-10-28
, 20:54
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#798
|
I couldn't get any time to study the new features introduced in QBW but what you ask seems simple really
Use the code by No!No!No!Yes! for determining orientation and accordingly change the wallpaper using this command
Modified hildon-desktop may be required though even if you use 4 screens.Code:gconftool-2 -s /apps/osso/hildon-desktop/views/<desktop-number>/bg-image -t string <path_to_image>
Nice idea btw.Use a portrait wallpaper if in portrait orientation I might work on it tomorrow if you don't
|
2010-10-29
, 03:50
|
Posts: 47 |
Thanked: 30 times |
Joined on Jul 2010
@ BANGALORE
|
#799
|
The Following User Says Thank You to aathava For This Useful Post: | ||
|
2010-10-29
, 04:56
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#800
|
[queen-beecon-header] version=1,000000 checksum=5381482 [queen-beecon-exported-instance] widgetType=0 widgetVisible=1 operationalStatus=0 hideCanvas=true 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=#00005cfc0000 beecon_eq0_ImgFilename=queen-beecon-appok.png beecon_eq1_ImgZoom=0 beecon_eq1_BgRGB=4 beecon_eq1_ExtBgRGB=#ffffffff0000 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=browser.png widWidth=156 widHeight=156 instanceTitle=BrowserGButton instanceCmd=app="browser"\nmove="true";\nlaxy="0,292";poxy="644,292";laixy="644,56";poixy="0,56"\nif [ "$QBW_EXEC_REASON" == "QBW_CLICK" ];then\n dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:"$app"\nfi\n\ncase "$QBW_ORIENTATION_MODE" in\n "portrait") xy=$poxy;xt=4 ;;\n "landscape (inverted)") xy=$laixy;xt=5 ;;\n "portrait (inverted)") xy=$poixy;xt=6 ;;\n *) xy=$laxy;xt=3 ;;\nesac\nif [ "$move" == "true" ];then dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$QBW_ID oh.no.more.qbw.set_position int32:"`echo $xy|cut -d, -f1`" int32:"`echo $xy|cut -d, -f2`";fi;\nexit $xt\n rememberMe= cmdImgFilename=queen-beecon.png cmdImgAngle=0 cmdImgZoom=0 cmdFgRGB=1 cmdExtFgRGB=#ffffffffffff cmdTextAngle=0 cmdVisibilityPosition=0 cmdImgVisibilityPosition=0 cmdJustify=2 cmdExtFont=Nokia Sans 10 cmdFontName=3 cmdFontSize=12 resImgFilename=queen-beecon-resimg.png resImgAngle=0 resImgZoom=0 resFgRGB=1 resExtFgRGB=#ffff00000000 resTextAngle=0 resVisibilityPosition=0 resImgVisibilityPosition=5 resJustify=0 resExtFont=Nokia Sans bold italic 18 resFontName=2 resFontSize=12 resWrapLongLines=false progressAnimationFrames=1 progressAnimationTimer=4 progressAnimationPos=4 progressAnimationAtClickXY=false progressAnimationBasename=browser-frame updOnStartup=true updOnClick=true multiClick=false updOnDesktop=false updOnSight=false updOnOrientation=true delayIndex=0 customIntervalSecs=0 updNeworkPolicy=0 GPSsettings=0 updOnDBUS=0 updOnDBUSBus=0 updOnDBUSMatchRule=
if possible can anyone help me out to do this?