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)

Dousan 2010-10-29 06:45

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
That is just bloody awesome No!No!No!Yes! Will test it later on today, this app just keeping on getting better and better :D

Yes very cool idea D4 ;) But how to scale the .png to fit both portrait and landscape? I take that you want the wallpaper to allways have he same direction, say if you have something writtten it will display correct no matter what direction you hold the phone?

e: works like a charm No!No!No!Yes! super über cool :D

One question how to figure out the cordinates for the position of icon when move ist set to 'true'. This test icon off yours is in the down left corner, but what if i where to set another icon beside it, where to get those numbers?

Lol offcouse D4 have two .png's or four to every direction like the test icon, this is very cool stuff ;)

But a weekend well spend unless you ask the better half ;)

D4rKlar 2010-10-29 07:28

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

Originally Posted by Dousan (Post 856176)
That is just bloody awesome No!No!No!Yes! Will test it later on today, this app just keeping on getting better and better :D

Yes very cool idea D4 ;) But how to scale the .png to fit both portrait and landscape? I take that you want the wallpaper to allways have he same direction, say if you have something writtten it will display correct no matter what direction you hold the phone?

This app is just ridiculous... lol there goes my weekend!

Easy solution Dousan, just have two separate wallpapers ;)

Kind Regards,
D4rKlar

D4rKlar 2010-10-29 07:41

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

Originally Posted by techie (Post 855711)
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
Code:

gconftool-2 -s /apps/osso/hildon-desktop/views/<desktop-number>/bg-image -t string <path_to_image>
Modified hildon-desktop may be required though even if you use 4 screens.
Nice idea btw.Use a portrait wallpaper if in portrait orientation:) I might work on it tomorrow if you don't;)

@techie thank you so much! Haven't had a chance to try it out yet (just got my desktops back after PR1.3 ;)) but will definitely give this and the icon rotation a go this weekend,

Kind Regards,
D4rKlar

No!No!No!Yes! 2010-10-29 08:41

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

Originally Posted by Dousan (Post 856176)
One question how to figure out the cordinates for the position of icon when move ist set to 'true'. This test icon off yours is in the down left corner, but what if i where to set another icon beside it, where to get those numbers?

Code:

app="browser"
move="true";
laxy="0,292";
poxy="644,292";
laixy="644,56";
poixy="0,56"
...

Have your screen in landscape:
Code:

x,y
0,0  --------------------------  799,0
|    CLOCK/ICONS/OPERATOR BAR      |
0,56 -------------------------- 799,56
|                                    |
|                                    |
|                                    |
|                                    |
|                                    |
|                                    |
|                                    |
|                                    |
|                                    |
0,419 ------------------------ 799,419

Scripts may know widget metrics and position via:
$QBW_WIDTH
$QBW_HEIGHT
$QBW_POSITION_X
$QBW_POSITION_Y

techie 2010-10-29 13:20

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
@No!No!No!Yes!
Love the new animation effects.:D
Why did you remove the file-names of images from the wiki,I found it really useful the way it was earlier and also in your post
Also I cannot get the logging to activate through the settings (tbh never could), what am I doing wrong.I can get it to work using touch command or manually creating the logger file.
In addition can you please change the timestamp to syslog format (eg Sep 24 08:24:40) as it is easier to infer.

Thanks a bunch for all the new features:)

No!No!No!Yes! 2010-10-29 15:58

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

Originally Posted by techie (Post 856585)
@No!No!No!Yes!
Love the new animation effects.:D
Why did you remove the file-names of images from the wiki,I found it really useful the way it was earlier and also in your post

They're back again...

Quote:

Originally Posted by techie (Post 856585)
Also I cannot get the logging to activate through the settings (tbh never could), what am I doing wrong.I can get it to work using touch command or manually creating the logger file.

No way to enable logger from picker ... only via dbus and touchfile http://wiki.maemo.org/Queen_BeeCon_W...ging_Subsystem
Actually ... can't remember why this choice ... I'll rethink about it... :D ... Oh, Yes! Now I recall ... as v4 is very verbose and risk is to fill /home fs, I want to be sure you really want/need logfile and you don't activate it by mistake. I permanently live with .v4 touchlogfile ...

Quote:

Originally Posted by techie (Post 856585)
In addition can you please change the timestamp to syslog format (eg Sep 24 08:24:40) as it is easier to infer. (I needed uSecs for timing issues and code re-entrancy issues)

Gotta think about this also ... :D

JonWW 2010-10-29 16:40

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

Originally Posted by D4rKlar (Post 855625)
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?

D4rKlar, to change the background image just overwrite one of the background files in /home/user/.backgrounds with the image you want. It only takes a second for the OS to then display it on screen.So it should be quite easy.

Dousan 2010-10-29 18:45

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
@No!No!No!Yes! I've tried to make some additions to your animation in the test icon for rotation/orientation. I took your .png file and made four extra images from that in gimp and named them browser-frame1/2/3/4.png and put them in .queen-beecon-dir in home user. I then set the frames to 5 and msec to 200 but my four doesn't show? What am i doing wrong here?
Would really like to be able to change the animation to my own custom animation at some point :D

Ohh and one thing, when i only had the one test icon/beecon it showed the animation while turningthe phone but now when i've 2 no anomation shows and if i remove one it still doesn't show? Is this a bug? No biggy i actually like it without animation when turning the phone portrait/landscape ;)

No!No!No!Yes! 2010-10-29 19:24

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

Originally Posted by Dousan (Post 856950)
@No!No!No!Yes! I've tried to make some additions to your animation in the test icon for rotation/orientation. I took your .png file and made four extra images from that in gimp and named them browser-frame1/2/3/4.png and put them in .queen-beecon-dir in home user. I then set the frames to 5 and msec to 200 but my four doesn't show? What am i doing wrong here?
Would really like to be able to change the animation to my own custom animation at some point :D

Ohh and one thing, when i only had the one test icon/beecon it showed the animation while turningthe phone but now when i've 2 no anomation shows and if i remove one it still doesn't show? Is this a bug? No biggy i actually like it without animation when turning the phone portrait/landscape ;)

please post export and your images .. I'm not sure but could be that command exec lasts too short to display complete animation

Dousan 2010-10-29 21:53

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
1 Attachment(s)
I take the text you want is this (hope):

Code:

[queen-beecon-header]
version=1,000000
checksum=5357960
[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=11
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=terminal.png
widWidth=156
widHeight=156
instanceTitle=xterm
instanceCmd=app="osso-xterm"\nmove="false";\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=terminal.png
cmdImgAngle=0
cmdImgZoom=11
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
progressAnimationFrames=5
progressAnimationTimer=2
progressAnimationPos=4
progressAnimationAtClickXY=false
progressAnimationBasename=browser-frame
updOnStartup=true
updOnClick=true
updOnDesktop=false
updOnSight=false
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
resWrapLongLines=false
multiClick=false
updOnOrientation=true
GPSsettings=0

And .png's in the zip:
Attachment 15125

No!No!No!Yes! 2010-10-30 06:21

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

Originally Posted by Dousan (Post 857094)
I take the text you want is this (hope):

Code:

[queen-beecon-header]
version=1,000000
checksum=5357960
[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=11
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=terminal.png
widWidth=156
widHeight=156
instanceTitle=xterm
instanceCmd=app="osso-xterm"\nmove="false";\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=terminal.png
cmdImgAngle=0
cmdImgZoom=11
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
progressAnimationFrames=5
progressAnimationTimer=2
progressAnimationPos=4
progressAnimationAtClickXY=false
progressAnimationBasename=browser-frame
updOnStartup=true
updOnClick=true
updOnDesktop=false
updOnSight=false
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
resWrapLongLines=false
multiClick=false
updOnOrientation=true
GPSsettings=0

And .png's in the zip:
Attachment 15125

Edit Cmd ... Try and add "sleep 1" here:
Code:

...
fi
sleep 1
case "$QBW_ORIENTATION_MODE" in
...


Dousan 2010-10-30 14:02

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
@No!No!No!Yes! Thanks for your answer once again, the problem lies in app windows opning to quick so the animation gets covered/stopped in the process, as you mentioned as a possibility ;) I tried to set it to sleep 10 and then open/close the app quick and the animation goes on for a while (after app closes), the same thing when turning phone to portrait/landscape ;) So the animation works just fine, no problems :)

Could the animation be set to start when pushed instead of when released or would that take a recoding of QBW?

Cheers mate :)

So far i'm keeping 'sleep' at 1 :)

D4rKlar 2010-10-30 14:23

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
@ JonWW thanks mate, but I'm trying to get a different background on the same desktop for each way up I hold the phone,

Kind Regards,
D4rKlar

No!No!No!Yes! 2010-10-30 22:21

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

Originally Posted by Dousan (Post 857554)
@No!No!No!Yes! Thanks for your answer once again, the problem lies in app windows opning to quick so the animation gets covered/stopped in the process, as you mentioned as a possibility ;) I tried to set it to sleep 10 and then open/close the app quick and the animation goes on for a while (after app closes), the same thing when turning phone to portrait/landscape ;) So the animation works just fine, no problems :)

Could the animation be set to start when pushed instead of when released or would that take a recoding of QBW?

Cheers mate :)

So far i'm keeping 'sleep' at 1 :)

Sorry, because when you press with stylus or finger you could always drift away from the widget and release event will never be triggered. this is why event is triggered when you release tap over widget only.

shazosbourne 2010-10-31 01:40

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Thanks alot for this great widget!

I am on a bit of a customising crusade at the moment, and have got myself an FMTX enabled and FMTX disabled icon to use with the widget. I have added && between the on/off command and the transmitt power command so I hope that is right, but I would like my icons to change from one to the other on enable/disable but cannot work out how to do it.

I thought I was smart and put the image for disabled in =0 in Beecon Status and the image for on in the Command Results, but all I have managed to do is display the off image all the time.

Could someone offer some advice please?

Thanks.

No!No!No!Yes! 2010-10-31 05:33

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

Originally Posted by shazosbourne (Post 858051)
Thanks alot for this great widget!

I am on a bit of a customising crusade at the moment, and have got myself an FMTX enabled and FMTX disabled icon to use with the widget. I have added && between the on/off command and the transmitt power command so I hope that is right, but I would like my icons to change from one to the other on enable/disable but cannot work out how to do it.

I thought I was smart and put the image for disabled in =0 in Beecon Status and the image for on in the Command Results, but all I have managed to do is display the off image all the time.

Could someone offer some advice please?

Thanks.

Have a look at THIS ... maybe you have to invert the widget "on" on startup logic for not having fmtx active by default on phone startup.
But maybe someone already have a customized FMTX off/on button

shazosbourne 2010-10-31 11:09

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

Originally Posted by No!No!No!Yes! (Post 858132)
Have a look at THIS ... maybe you have to invert the widget "on" on startup logic for not having fmtx active by default on phone startup.
But maybe someone already have a customized FMTX off/on button

Okay I have the 2 states button working a treat, but I don't know where in "Instance command" to put the code to make it start the transmitter and pump up the power.:)
Beggin for a few more clues please...seeing as though I have no clue....

No!No!No!Yes! 2010-10-31 11:34

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

Originally Posted by shazosbourne (Post 858309)
Okay I have the 2 states button working a treat, but I don't know where in "Instance command" to put the code to make it start the transmitter and pump up the power.:)
Beggin for a few more clues please...seeing as though I have no clue....

Open Advance Settings and Tools Dialog box and edit command (then save):
Command for fmtx go here:
PHP Code:

if [ "$QBW_EXEC_REASON== "QBW_STARTUP_UPDATE" ]; then
#    add here switch on instructions
    
echo "ON";
    exit 
1;
fi;

if [ 
"$QBW_CURRENT_RESULTS_TEXT== "ON" ]; then
#    add here switch off instructions
    
echo "OFF";
    exit 
0;
else
#    add here switch on instructions
    
echo "ON";
    exit 
1;
fi


shazosbourne 2010-10-31 12:43

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
I have no coding experience at all but will have a stab.

Will the code below come close? AM I on the right track?
In honesty I am guessing.

PHP Code:

if [ "$QBW_EXEC_REASON== "QBW_STARTUP_UPDATE" ]; then
/usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}' && echo "echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level" sudo gainroot | echo ""

    
echo "OFF";
    exit 
0;
fi;

if [ 
"$QBW_CURRENT_RESULTS_TEXT== "ON" ]; then
/usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}'

    
echo "on";
    exit 
1;
else
/
usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}'

    
echo "OFF";
    exit 
0;
fi

I apologise for my lack of programming knowledge, 41 years young and learning a lot.

No!No!No!Yes! 2010-10-31 13:04

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

Originally Posted by shazosbourne (Post 858410)
I have no coding experience at all but will have a stab.

Will the code below come close? AM I on the right track?
In honesty I am guessing.

Why not:
PHP Code:

if [ "$QBW_EXEC_REASON== "QBW_STARTUP_UPDATE" ]; then
/usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}' && echo "echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level" sudo gainroot | echo ""

    
echo "OFF";
    exit 
0;
fi;

if [ 
"$QBW_CURRENT_RESULTS_TEXT== "ON" ]; then
/usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}'

    
echo "OFF";
    exit 
0;
else
/
usr/bin/fmtx_client -p$(if [ $(cut -d. -f1 /proc/uptime ) -lt 100 ]; then echo 0; else /usr/bin/fmtx_client | /bin/grep -'^state=enabled' ; echo $? ; fi) | /usr/bin/awk -"=" '($1=="state") {print $2}'

    
echo "ON";
    exit 
1;
fi


Dousan 2010-10-31 18:25

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
@No!No!No!Yes! i've tried to tweak your new cmd for rotation for a play/pause button and used @techies cmd for that button, but couldn't make it work right, it only started and the icon vanished. So i tried the above code you posted for the fm transmitter. Just pasted the start and stop buttons from mediaplayer dbus codes and it works as it should.
Now my problem is, i don't know how to integrate the rotation code to that beecon/button and that is needed to match the other beecons on my desktop (all rotating). I'm as shaz really lost on how to put the codes together ;)
Any help will be great ;)
Ps: I rather have 3 beccons/buttons than 4 for music on my desktop (previous, next, play/stop - previous, next, stop, start)...

JonWW 2010-10-31 19:16

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
1 Attachment(s)
I've made a QBW to rotate a desktop background according to the orientation of the phone. Enjoy.

Download and open the attatched zip file.
Copy the image files to:
Code:

/home/user/.backgrounds
Next import 'Desktop-rotator.QBW.txt' into a new QBW on any desktop, it does not matter which desktop as becon is hidden.
Edit the Advanced settings and where you see the peice of code
Code:

DESKTOP_TO_ROTATE=4
if [ ! -f "/home/user/.backgro...

change the value to the desktop you wish to rotate. Also change the image names to the same desktop number.
Code:

/home/user/.backgrounds/rotate-landscape-4.png
/home/user/.backgrounds/rotate-landscape-inverted-4.png
/home/user/.backgrounds/rotate-portrait-4.png
/home/user/.backgrounds/rotate-portrait-inverted-4.png


D4rKlar 2010-10-31 19:40

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

Originally Posted by JonWW (Post 858801)
I've made a QBW to rotate a desktop background according to the orientation of the phone. Enjoy.

Download and open the attatched zip file.
Copy the image files to:
Code:

/home/user/.backgrounds
Next import 'Desktop-rotator.QBW.txt' into a new QBW on any desktop, it does not matter which desktop as becon is hidden.
Edit the Advanced settings and where you see the peice of code
Code:

DESKTOP_TO_ROTATE=4
if [ ! -f "/home/user/.backgro...

change the value to the desktop you wish to rotate. Also change the image names to the same desktop number.
Code:

/home/user/.backgrounds/rotate-landscape-4.png
/home/user/.backgrounds/rotate-landscape-inverted-4.png
/home/user/.backgrounds/rotate-portrait-4.png
/home/user/.backgrounds/rotate-portrait-inverted-4.png


That's the one!! :D:D:D

Many thanks mate, much appreciated

Kind Regards,
D4rKlar

aligatro 2010-10-31 19:58

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Does anyone know how to switch on-press animation from "hexagon inside rectangle" to rectangle ?

D4rKlar 2010-10-31 21:07

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
OK JonWWs gravity desktop switcher works perfectly, although as No!No!No!Yes! mentioned there might be - there is - quite a bit of lag, possibly due to loading the background images.

Thinking logically, this might be reduced by cutting the orientations to just two - portrait and landscape. Whilst invert-portrait and invert-landscape are awesome, in essence they are just eye-candy as no apps work in those orientations anyway... How easy would it be to cut the number of orientations down?

Kind Regards,
D4rKlar

No!No!No!Yes! 2010-10-31 22:07

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

Originally Posted by aligatro (Post 858855)
Does anyone know how to switch on-press animation from "hexagon inside rectangle" to rectangle ?

Not possible ... but you can toggle on-press hide background off and rectangle will just disappear on press

No!No!No!Yes! 2010-10-31 22:16

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

Originally Posted by D4rKlar (Post 858933)
OK JonWWs gravity desktop switcher works perfectly, although as No!No!No!Yes! mentioned there might be - there is - quite a bit of lag, possibly due to loading the background images.

Thinking logically, this might be reduced by cutting the orientations to just two - portrait and landscape. Whilst invert-portrait and invert-landscape are awesome, in essence they are just eye-candy as no apps work in those orientations anyway... How easy would it be to cut the number of orientations down?

Kind Regards,
D4rKlar

I believe just a matter of # at beginning of unwanted scenario line in shell script to comment out the line

PHP Code:

...
#  "landscape (inverted)") cp "/home/user/.backgrounds/rotate-landscape-inverted-$DESKTOP_TO_ROTATE.png" "/home/user/.backgrounds/background-$DESKTOP_TO_ROTATE.png";;
#  "portrait (inverted)") cp "/home/user/.backgrounds/rotate-portrait-inverted-$DESKTOP_TO_ROTATE.png" "/home/user/.backgrounds/background-$DESKTOP_TO_ROTATE.png";;
... 

And maybe use symbolic link (ln -s) instead of cp images back and forth (this last one is just untested speculation) for reducing lag.

Airtux 2010-10-31 23:23

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
hello, i have just a little question: i have make new partition in MicroSD, it's possible to make a queen beecon for automount the partition?

i have make this in queen beecon: sudo mount -t ext3 -o noatime,rw /dev/mmcblk1p2 /MicroSD-ext3

Sorry for my poor english.

Dante 2010-10-31 23:41

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
sorry if it has been posted before...but i couldnt find it.

is there a widget that keeps the backlight constantly on? (do the same as the ''simple brightness applet'' just in the form of a QB widget.)

No!No!No!Yes! 2010-11-01 05:10

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

Originally Posted by Dousan (Post 858747)
@No!No!No!Yes! i've tried to tweak your new cmd for rotation for a play/pause button and used @techies cmd for that button, but couldn't make it work right, it only started and the icon vanished. So i tried the above code you posted for the fm transmitter. Just pasted the start and stop buttons from mediaplayer dbus codes and it works as it should.
Now my problem is, i don't know how to integrate the rotation code to that beecon/button and that is needed to match the other beecons on my desktop (all rotating). I'm as shaz really lost on how to put the codes together ;)
Any help will be great ;)
Ps: I rather have 3 beccons/buttons than 4 for music on my desktop (previous, next, play/stop - previous, next, stop, start)...

PHP Code:

c=$QBW_CURRENT_RESULTS_TEXT
if [ "_$c== "_" -"$QBW_EXEC_REASON== "QBW_STARTUP_UPDATE" ];then
   
# On startup, initial play state is 
   # "stopped" so just set c=0 here
   
c=0;
fi;

if [ 
"$QBW_EXEC_REASON== "QBW_CLICK" ];then
   
if [ $c -eq 1 ]; then 
      
# Add here command for Stop/Pause
      
      
c=0
   else 
      
# Add here command for Play/Resume
      
      
c=1
   
fi
fi

case "$QBW_ORIENTATION_MODEin
   
"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

# comment next line with "sharp" (trailing char of this line) if you don't need widget move
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

echo $c
exit $xt 


No!No!No!Yes! 2010-11-01 10:49

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Queen BeeCon Widget release 1.3.2 is now in extras-devel
Partial Change Log
Code:

queen-beecon (1.3.2)

  * New: -   
  * Changed: Enabling logger verbosity in Logger Verbosity Button in Advanced Settings and Tools Dialog Box enables logging if not enabled on startup by touchlogfile     
  * Changed: Logger timestamps are now printed in ISO 8601 encoded string, relative to the Coordinated Universal Time (UTC)
  * Bugfixing: Version was not displaying in About Box because of font too big; fixed

queen-beecon (1.3.1)

  * New: -   
  * Changed: -
  * Bugfixing: Incorrect error "error enabling QBW_SUBSYSTEM_TIMER" report in TIMER subsystem rearm

queen-beecon (1.3)

  * New: Ability to sense Phone Orientation and execute scripts accordingly + Relevant configuration parameters (updOnOrientation)
  * New: Phone Orientation Parameter Variables substitution for using with scripts which hold $QBW_ORIENTATION_MODE, $QBW_ORIENTATION_STAND, $QBW_ORIENTATION_FACE, $QBW_ORIENTATION_X, $QBW_ORIENTATION_Y, $QBW_ORIENTATION_Z
  * New: Ability to sense GPS/Location information and execute scripts accordingly + Relevant configuration parameters (GPSsettings)
  * New: GPS/Location Parameter Variables substitution for using with scripts which hold $QBW_LOCATION_FIX current position FIX in string form
  * New: Added option to wrap text results and relevant configuration parameter resWrapLongLines
  * New: New about box in Advanced Settings dialog Box with Application Name, Description, Version, Buttons for "Visit website" "Report bug" "Donate", Copyright info
  * New: Added confirmation in Command Deletion Dialog Box
  * New: Added the possibility to completely hide widget and display only the animation when updating (useful for example to draw on-click/press FX frames and visual feedback to buttons)
  * New: Parameter Variables substitution for using with scripts which holds the current X position of QBW widget ($QBW_POSITION_X); useful for dynamic update/processing of widget according to its position on screen 
  * New: Parameter Variables substitution for using with scripts which holds the current Y position of QBW widget ($QBW_POSITION_Y); useful for dynamic update/processing of widget according to its position on screen 
  * New: Implementation of toggle for multi-click support (quicker click response if disabled); with relevant settings & configuration parameter "multiClick" 
  * New: Implementation of DBUS methods: reset_rearm_connection
  * New: Implementation of DBUS methods: reset_rearm_location
  * New: Implementation of DBUS methods: reset_rearm_orientation
  * New: Implementation of DBUS methods: reset_rearm_dbus_monitor
  * Changed: Complete QBW icons restyle!!!
  * Changed: Changed some settings sensitivity logic according to enablement of relevant function
  * Changed: Command Input Buffer in Advanced Settings Dialog Box now accepts linebreaks in the input for improved command readability
  * Changed: Progress Animation is now not shown if widget is set to invisible
  * Changed: @connection events now have their management subsystem and gets activated only for instances requiring it
  * Changed: Changed logger verbosity @connection event
  * Changed: Restyle in Update Policy Settings
  * Changed: UI Restyle in Advanced Settings and Tools Dialog Box 
  * Changed: UI Restyle in Widget Size Settings 
  * Changed: UI Restyle in Widget Positioning Settings 
  * Changed: More verbosity for Pango Markup Language inconsistencies notification (Now instance id and offending command title are displayed)
  * Changed: Optimization in wakeup/sleep logic (better error management and notifications)
  * Bugfixing: Instance parameters related to commands (instanceTitle, instanceCmd) where not poperly updated when edited both in Advanced Dialog Box and in Command Add/Edit/Delete dialog box; fixed
  * Bugfixing: Network connection/disconnection logic; fixed
  * Bugfixing: In Advanced Dialg Box, export of command not in list caused SEGFAULT; fixed

queen-beecon (1.2)

  * New: All work and no play makes No!No!No!Yes! a dull boy - Release Candidate to Extras (1.0.53 -> 1.2)   
  * Changed: All work and no play makes No!No!No!Yes! a dull boy - Release Candidate to Extras (1.0.53 -> 1.2)
  * Bugfixing: All work and no play makes No!No!No!Yes! a dull boy - Release Candidate to Extras (1.0.53 -> 1.2)

queen-beecon (1.0.53)

  * New: Parameter Variables substitution for using with scripts which holds the current width of QBW widget ($QBW_WIDTH); useful for dynamic recalculation of click hotspots
  * New: Parameter Variables substitution for using with scripts which holds the current height of QBW widget ($QBW_HEIGHT); useful for dynamic recalculation of click hotspots
  * New: Parameter Variables substitution for using with scripts which holds the exit status of the last previous executed command ($QBW_PREVIOUS_EXIT_STATUS)
  * New: Added new Network Connection Event condition (NETWORK__PASSTHROUGH) which will trigger the execution of command at every Network Related event. Management of the connection event status will be completely delegated to the command through $QBW_IS_CONNECTED and $QBW_EXEC_REASON=="QBW_CONNECTION_EVENT" Parameter Variables substitution. 
  * Changed: Optimized "cancel on exec in progress" logic 
  * Bugfixing: Some network connection status change issues; fixed

queen-beecon (1.0.52)

  * New: In Command and Instance import in Advanced Settings and Tools Dialog Box, command title is now checked for existence, if existent "+"s are appendend till name is unique 
  * New: In Add/Edit Command Dialog box, command title is now checked for existence, if existent, user is now asked for unique name 
  * Changed: - 
  * Bugfixing: Both in Settings and in Advanced Settings and Tools Dialog Box, Command Selection button was not correctly re-populated after operations on commands list (add/delete/import); fixed

queen-beecon (1.0.51)

  * New: Added Reset/Truncate Logfile action to Logger Verbosity Button in Advanced Settings and Tools Dialog Box
  * Changed: - 
  * Bugfixing: -

queen-beecon (1.0.5)

  * New: Possibility to directly modify the "rememberMe" parameter from the output of the executed command (without using the DBUS interface which is much slower) for using with scripts which need to hold/manipulate status or persistency information. Just echo the following string (which will not be displayed) as output of your command "QBW_REMEMBER_ME(<content to be remembered>)" no angle brackets; escape "close round bracket" like this "\)" to store it as ")"
  * Changed: Extended warning message in case of inconsistent Pango Markup Language output ("QBW Warning! Possible Pango Markup Language inconsistent/unterminated Tag!") 
  * Changed: Extended warning message in case of inconsistent/non-UTF-8 output in TestDrive output Buffer ("QBW Warning! Expected/Shown Command Output mismatch. Possible charset different from UTF-8!") 
  * Bugfixing: QBW re-enable on double-click logic bugged; fixed

queen-beecon (1.0.4)

  * New: Implemented the possibility to have the Progress Animation displayed at widget click X,Y coordinates; with relevant configuration parameter "progressAnimationAtClickXY" 
  * New: Implemented the possibility to hide the background Canvas on click both for Beecons and Snippets with relevant configuration parameter "hideClickCanvas" 
  * Changed: Some optimizations in QBW at startup, expecially for instances with execute @startup flag; should speed up widget appearance
  * Changed: Checks for obsolete instances in configuration file moved to Advanced Settings and Tools Dialog; check is performed upon entering.
  * Changed: Some optimizations in progress icon animation logic
  * Changed: Some optimization in multiple-clicks management
  * Bugfixing: Command output for Test Drive in Advanced Settings and Tools Dialog still buggy and not displaying complete output; fixed
  * Bugfixing: Logic for multiple clicks count was a bit bugged; fixed
  * Bugfixing: DBUS Signal emission at end of command execution was misplaced ; fixed
  * Bugfixing: Logging info incorrect for timeout seconds count function GetSeconds; fixed

queen-beecon (1.0.3)

  * New: Added button to change Logger Verbosity in Advanced Settings and Tools Dialog Box
  * New: Implementation of Command and Results image orientation angle (w/ relevant configuration parameters)
  * New: Added edit box in Settings Dialog for "rememberMe" value. Can now be initialized also from widget and not only via DBUS method 
  * New: Parameter Variables substitution for using with scripts which holds the number of times a QBW was pressed/clicked: $QBW_CLICKS_COUNT; useful for handling single/double/triple... clicks and behave accordingly (Tested up to 12 ... :) )
  * New: Parameter Variables substitution for using with scripts which hold X and Y coordinates where a QBW was pressed/clicked: $QBW_CLICK_X, $QBW_CLICK_Y; useful for handling different arbitrary/dynamic hotspots on widgets via launched shell scripts
  * Changed: Now QBW instances with status disabled/minimized (black small 60x60 inactive sleeping bee icon) are enable again on double-click and non on single-click
  * Bugfixing: TestDrive in Advanced Settings and Tools Dialog Box was not fetching the whole command output; fixed 
  * Bugfixing: Typos in "Edit Cmd" Dialog Box title; fixed 
  * Bugfixing: Not proper memory deallocation of some strings parameter in Settings Dialog; fixed   

queen-beecon (1.0.2)

  * Source Modules: Changed architecture of source module ... now split into single modules according to QBW subfunctions ... expect some sneaky regressions!!!
  * New: Parameter Variables substitution for using with scripts which holds Network Connection status: $QBW_IS_CONNECTED (true=QBW Instance is connected to the network (either WLAN or GPRS) false=QBW Instance is NOT connected to the network (either WLAN or GPRS))
  * Changed: In Settings Dialog Box changed "Custom(")" to "Custom(Secs)" for custom timer label
  * Changed: In Advanced Settings and Tools Dialog Box it's now possible to scroll dialog both vertically and horizontally. So all buttons will be accessible even if you have big fonts
  * Changed: In Advanced Settings and Tools Dialog Box added more checks for Import Instance/Command Data (It should now be more restrictive on Import Data consistency/congruency)
  * Bugfixing: System Proxy fetching logic bugged; fixed
  * Bugfixing: reset_rearm_timer DBUS method call was not disabling timer when timer update was disabled; fixed
  * Bugfixing: set_param_uint32 DBUS method call had problems if values = 0; fixed

queen-beecon (1.0.0.1)

  * New: Nothing - Release Candidate to Extras (0.1.9.9 -> 1.0.0.1)   
  * Changed: Nothing - Release Candidate to Extras (0.1.9.9 -> 1.0.0.1)
  * Bugfixing: Nothing - Release Candidate to Extras (0.1.9.9 -> 1.0.0.1)

See complete Change Log in the WIKI

Usual WARNINGS apply to extras-devel material


As anticipated, 1.3 brings 2 new major features and a lot of UI restyles:

- Orientation/Accelerometer Support
- GPS Location Support

Orientation Support is now working with no particular issues since some days.
GPS Support could be still a little big buggy ...
Again changelog is quite long and also a lot of internal optimization and hidden flaws have been hopefully addressed
Again please bear with some possible regressions!!!

http://i.imgur.com/UMVtO.png

Feel free to experiment with all extended features and please report bugs and experiences or feature requests here.
Please, report any problem or crash during installation/upgrade if they still persist
Have fun!!!

D4rKlar 2010-11-01 11:24

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
No!No!No!Yes!... I can't thank you enough for this incredible app and your constant hard work. Grazie mille compa! :D

Kind Regards,
D4rKlar

stevomanu 2010-11-01 12:18

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

Originally Posted by D4rKlar (Post 859482)
No!No!No!Yes!... I can't thank you enough for this incredible app and your constant hard work. Grazie mille compa! :D

Kind Regards,
D4rKlar

would agree , this is by far my favourite app for n900 ! !

Dousan 2010-11-01 12:50

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Totally agree, this is one great app that just makes this phone so much more enjoyable :D Big thanks to you No!No!No!Yes! ;)

@No!No!No!Yes! tried your cmd for the mediaplayer play/pause button and it's working as it should. Can't seem to make the icon rotate and when pressed the play icon i use goes away and a 'image not found' comes up and don't know how to fix that? Have played with QBW to fix it but couldn't, so now i'm sticking with the original rotation cmd, wich i know how to make work, and four buttons on my desktop, wich actually looks better than three when in landscape ;)

Anyway thanks alot for your time and help No!No!No!Yes! ;)

Dousan 2010-11-01 13:50

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
@No!No!No!Yes! I've just updated to the new version and a few other apps and after that my mediaplayer wont play music nor will my beecons/buttons for the mediaplayer work, well sometimes it playes 1 sec? I'm not sure it's this app that causes it? It might be one of the others, but they are only theme related.. Is there a way to downgrade to 1.3 again to test that it's not QBW related, couldn't see it on maemo.org packages. At this mom it looks like a reflash if i don't get i solved...

No!No!No!Yes! 2010-11-01 13:58

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

Originally Posted by Dousan (Post 859636)
@No!No!No!Yes! I've just updated to the new version and a few other apps and after that my mediaplayer wont play music nor will my beecons/buttons for the mediaplayer work, well sometimes it playes 1 sec? I'm not sure it's this app that causes it? It might be one of the others, but they are only theme related.. Is there a way to downgrade to 1.3 again to test that it's not QBW related, couldn't see it on maemo.org packages. At this mom it looks like a reflash if i don't get i solved...

http://repository.maemo.org/extras-d..._1.3_armel.deb

stevomanu 2010-11-01 14:22

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

Originally Posted by No!No!No!Yes! (Post 859643)

will this file just update the app !!

No!No!No!Yes! 2010-11-01 14:37

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

Originally Posted by stevomanu (Post 859679)
will this file just update the app !!

yes. copy/download file to phone
then become root
import via dpkg -i queen-beecon_1.3_armel.deb
qbw will then revert to 1.3

Not sure however if minimal changes in 1.3.2 brought the regressions reported by Dousan

D4rKlar 2010-11-01 14:39

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
I'll test it the minute I'm home and report back mate,

Kind Regards,
D4rKlar

stevomanu 2010-11-01 14:51

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
one thing i did notice (befroe update) when using greedy script my desktop switcher seems to drop down the sceen a little so the bottom is missing any ideas ??

Have updated an all is ok so far . cheers


All times are GMT. The time now is 11:50.

vBulletin® Version 3.8.8