Queen BeeCon Widget
(→Current Status in Maemo Repositories) |
m (Reverted edits by 185.219.83.166 (Talk) to last revision by sixwheeledbeast) |
||
(27 intermediate revisions not shown) | |||
Line 3: | Line 3: | ||
[[Image:Queen-beecon.png|left|logo]] | [[Image:Queen-beecon.png|left|logo]] | ||
- | + | [[Queen BeeCon Widget]] | |
- | ( | + | ([http://talk.maemo.org/showthread.php?t=45388 See Talk Thread]) is a highly customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for Maemo 5 (Fremantle) and the [[Nokia N900|N900]]. In 8 words ... '''''A Super Powerful and Customizable Widget Generation Engine''''' |
The Widget is based on the execution of external Shell/OS Commands which can be either as simple as one-liner statements or as complex as articulated shell scripts, which, for example, fetch, parse and aggregate contents retreived from the system, other applications or the Internet. | The Widget is based on the execution of external Shell/OS Commands which can be either as simple as one-liner statements or as complex as articulated shell scripts, which, for example, fetch, parse and aggregate contents retreived from the system, other applications or the Internet. | ||
Line 10: | Line 10: | ||
There are two basic Widget types, '''Beecons''' and '''Snippets''': | There are two basic Widget types, '''Beecons''' and '''Snippets''': | ||
- | + | Beecons are small hexagonal cells whose background color or associated image/icon changes according to the executed Command Exit Status. | |
- | Beecons can handle | + | Beecons can handle virtually unlimited Command Exit Status: |
- | + | * <code><0</code> Normally notifying '''system errors''' in esecuting the script/command | |
- | + | * <code>0</code> Returned when script/command '''successfully completes''' | |
- | + | * <code>1</code> Used to report a '''warning condition''' | |
- | + | * <code>2</code> If script/command needs to notify some '''application error conditions''' | |
- | + | * <code><=126</code> Other exit status which can be handled for displaying '''user defined icons/images''' | |
- | + | Snippets are normal text/graphic boxes with fixed background color and images which is not influenced by the executed Command Exit Status. | |
== Current Status in Maemo Repositories == | == Current Status in Maemo Repositories == | ||
- | + | [http://maemo.org/packages/view/queen-beecon/ v1.3.3(18/1/2011) extras-devel / v1.3.3(02/09/2011) extras-testing / v1.3.3(07/10/2011) EXTRAs] | |
- | + | ||
- | = Features List = | + | == Features List == |
- | * Widget can be | + | * Widget can be '''multi-instantiated''', '''disabled''' and '''minimized''' on desktop (click on minimized icon on desktop will wakeup and maximize instance) |
- | * Possibility to define | + | * Possibility to define multiple commands and command labels to be displayed inside the Widget |
- | * | + | * Different types of Widget '''layouts''' and '''behaviours''' (currently Beecons and Snippets) |
* Possibility to sense Phone Orientation and execute scripts accordingly | * Possibility to sense Phone Orientation and execute scripts accordingly | ||
* Possibility to sense GPS/Location information/FIX from the phone and execute scripts accordingly | * Possibility to sense GPS/Location information/FIX from the phone and execute scripts accordingly | ||
- | * Possibility to | + | * Possibility to hide the background Canvas both for Beecons and Snippets |
- | * Possibility to use | + | * Possibility to use icons or images instead of text, both for Beecons/Snippets command '''title''' and '''output'' (with highly versatile positioning, zooming/scaling 5%-200%-FitToWidget) |
- | * Possibility to use | + | * Possibility to use '''custom progress animations''' for each instance of the widget (with up to 30 frames, configurable frame period in msec and highly versatile positioning |
- | * It is possible to | + | * It is possible to independently show or hide both snippet's images/texts and beecon images/texts. This way you can have two images and two text placeholders on widget, for more flexibility in graphic layout |
- | * | + | * Independent images/icons for Command Exit Statuses can also been specified. Useful, for example, for displaying different icons according to percentages values returned by command. |
- | * Widget can be clicked on 9 different | + | * Widget can be clicked on 9 different '''Hot Spots''' with a 3x3 grid layout or at specific position with ability to forward the click position to the script |
- | * | + | * '''Multi Click''' support on widget |
- | * Nice | + | * Nice "button-press"-like visual feedback using Gradient fill |
- | * Widget relies also on private | + | * Widget relies also on private general purpose directories "<code>~/.queen_beecon_dir/</code>" and "<code>..../MyDocs/.images/queen_beecon_dir/</code>" as images/icons immediate storage. For easier population via USB of BLUETOOTH File Services. |
- | * Widget texts can be formatted through | + | * Widget texts can be formatted through [http://maemo.org/api_refs/5.0/5.0-final/pango/PangoMarkupFormat.html Pango Markup Language] |
- | * Widget | + | * Widget Size can be customized (Width: 10-800, Height: 10-420 with pixel precision) and position can be fine tuned (X,Y +/- 5pix); Tweaking "<code>/usr/share/hildon-desktop/transitions.ini</code>" may also help. (<code>snap_grid_size = 1 & snap_to_grid_while_move = 1</code>) |
- | * | + | * Background color for Beecons can be customized for each 4 Command Exit Statuses (with graphical preview) |
- | * | + | * Background color for Snippets can be customized (with graphical preview) |
- | * | + | * Font Color of both command label and results can be configured (with graphical preview) |
- | * | + | * Position and visibility of both command label and results can be configured (Hidden, Top L, Top C, Top R, Center L, Center, Center R, Bottom L, Bottom C, Bottom R) Also, rotation of lables can be changed (0, 90, 180, 270 degrees) |
- | * | + | * Font Face, Style and Size of both command label and results can be configured with preview |
- | * | + | * Text Justification of both command label and results can be configured (Left, Center, Right, Fill) |
- | * | + | * Text Wrapping of results can be enabled |
- | * Command execution can be triggered optionally on widget | + | * Command execution can be triggered optionally on widget startup, by manual pressing on Widget, by desktop switching, by periodic updates (0=Manual, 30 s, 1 m, 5 m, 30 m, 1 h, 6 h, 12 h, 1 d, Custom Seconds Interval), by specific DBUS Events on System or Session Bus.which can be filtered through custom rules, by orientation changes, by GPS |
- | * Command execution can be | + | * Command execution can be subject to network connection status and widget visibility on current desktop |
- | * Tool includes a powerful | + | * Tool includes a powerful Advanced Maintenance Dialog Box for command development and testing (TestDrive mode to display raw output of predefined or user-defined commands) |
- | * A wide set of | + | * A wide set of Parameter Substitution Variables can be passed to executed scripts; variables include: Instance ID, Pressed Hot Spot, Visibility of Widget, Execution Triggering Event, content of Output text, verbose DBUS messages, persistent information stored in widget specific parameter, Proxy related information |
- | * Advanced Maintenance Dialog Box includes | + | * Advanced Maintenance Dialog Box includes extended functionalities like: |
- | * A | + | ** instance export/import with checksum |
- | * | + | ** command export/import with checksum |
- | * It is integrated into the | + | ** command update with current Test Drive buffer |
- | * Powerful | + | ** clipboard operations |
- | * For | + | ** export/import to/from files for instance data and commands. |
- | + | * A set of basic Images/Icons for Snippets and Beecon Statuses is included inside the distribution package and installed inside canonical hildon hicolor 48x48 directory | |
+ | * Inter Process Communication mechanism among QBW instances and with other Applications has been implemented through DBUS methods and signals handling | ||
+ | * It is integrated into the N900 system backup/restore features according to standard specifications as better described in the [[Documentation/Maemo 5 Developer Guide/Generic Platform Components/Using Backup Application#Custom back-up locations|SDK documentation]] | ||
+ | * Powerful Application Logging Subsystem | ||
+ | * For Web and Proxy related information and issues please have a look at the [[#Parameter_Substitution_at_Command.2FScript_Runtime|parameter substitution documentation]] and [http://talk.maemo.org/showpost.php?p=544591&postcount=12 THIS] post. | ||
- | = Donate = | + | == Donate == |
+ | |||
+ | [https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QTSK26NUKNXFC Queen BeeCon Widget is free software, but if you feel like donating for supporting further developments or just to let me know that you like it, you can donate via Paypal] | ||
+ | |||
+ | == Icons in Package == | ||
- | |||
- | |||
- | |||
[[Image:Snap039.png|600px]] | [[Image:Snap039.png|600px]] | ||
[[Image:DTl8W.png|600px]] | [[Image:DTl8W.png|600px]] | ||
- | = Settings and Tools = | + | == Settings and Tools == |
- | == Standard Settings and Configuration File == | + | === Standard Settings and Configuration File === |
Global and per-instance QBW parameters are stored in this file: | Global and per-instance QBW parameters are stored in this file: | ||
- | + | /home/user/.queen_beecon | |
- | === Configuration Parameters, Types & Reference === | + | ==== Configuration Parameters, Types & Reference ==== |
These are the parameters and settings which can be changed for each QBW instance. They are stored independently, for each Instance, inside the configuration file. | These are the parameters and settings which can be changed for each QBW instance. They are stored independently, for each Instance, inside the configuration file. | ||
- | Their reference is also useful for | + | Their reference is also useful for [[#Interaction with QBW over DBUS|Interaction with QBW over DBUS]] and in particular for parameters amendments/fetching methods: |
+ | |||
+ | =====Widget Type, Visibility, Status and Associated Command===== | ||
- | |||
[[Image:Snap193.jpg|350px]] | [[Image:Snap193.jpg|350px]] | ||
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.0.1</code>||<code> | + | |1||<code>0.0.1</code>||<code>widgetType</code>||<code>int32</code>||<code>0=Beecon<nowiki>|</nowiki>1=Snippet</code>||Specify the type of the instantiated widget |
|- | |- | ||
- | |2||<code>0.1.7</code>||<code> | + | |2||<code>0.1.7</code>||<code>widgetVisible</code>||<code>int32</code>||<code>0=Hidden<nowiki>|</nowiki>1=Visible</code>||Specify if widget components should be visible or not |
|- | |- | ||
- | |3||<code>0.1.4</code>||<code> | + | |3||<code>0.1.4</code>||<code>operationalStatus</code>||<code>int32</code>||<code>0=Enabled<nowiki>|</nowiki>1=Disabled</code>||If disabled, the widget will not be subject to update policies and will be iconified on desktop, a subsequent tap on it will revert its status to Enabled |
|- | |- | ||
- | |4||<code>0.0.1</code>||<code> | + | |4||<code>0.0.1</code>||<code>instanceTitle</code>||<code>string</code>||-||Holds the title of the command/script to be executed. If this field is blank, it means that command is still present in the widget instance but not present any more in the list of possible commands. Can still be adited via "Edit Cmd" button and added again to the list. |
|} | |} | ||
====Widget Size & Position Tuning==== | ====Widget Size & Position Tuning==== | ||
+ | |||
[[Image:Snap030.png|350px]] | [[Image:Snap030.png|350px]] | ||
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.0.1</code>||<code> | + | |1||<code>0.0.1</code>||<code>widWidth</code>||<code>double</code>||-||This is the Width of the widget |
|- | |- | ||
- | |2||<code>0.0.1</code>||<code> | + | |2||<code>0.0.1</code>||<code>widHeight</code>||<code>double</code>||-||This is the Height of the widget |
|- | |- | ||
- | |3||<code>1.3</code>||<code> | + | |3||<code>1.3</code>||<code>-</code>||<code>-</code>||-||This is the X coordinate of the widget, can be dynamically changed |
|- | |- | ||
- | |4||<code>1.3</code>||<code> | + | |4||<code>1.3</code>||<code>-</code>||<code>-</code>||-||This is the Y coordinate of the widget, can be dynamically changed |
|} | |} | ||
- | ====Status Background Colors & Images==== | + | =====Status Background Colors & Images===== |
+ | |||
[[Image:Snap031.png|350px]] | [[Image:Snap031.png|350px]] | ||
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.1.0</code>||<code> | + | |1||<code>0.1.0</code>||<code>hideCanvas</code>||<code>boolean</code>||<code>true<nowiki>|</nowiki>false</code>||If set to true, the geometric canvas of the widget will not be shown |
|- | |- | ||
- | |2||<code>1.0.4</code>||<code> | + | |2||<code>1.0.4</code>||<code>hideClickCanvas</code>||<code>boolean</code>||<code>true<nowiki>|</nowiki>false</code>||If set to true, the geometric canvas of the widget will not be shown on click |
|- | |- | ||
- | |3||<code>0.1.9.1</code>||<code> | + | |3||<code>0.1.9.1</code>||<code>snippetExtBgRGB</code>||<code>string</code>||<code>#<rrrr><gggg><bbbb></code>||Background color of Snippets |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>snippetBgRGB</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|} | |} | ||
- | ====Beecon Statuses: Images, Scale, Background Color==== | + | =====Beecon Statuses: Images, Scale, Background Color===== |
+ | |||
[[Image:Snap201.jpg|350px]] | [[Image:Snap201.jpg|350px]] | ||
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.1.0</code>||<code> | + | |1||<code>0.1.0</code>||<code>beecon_lt0_ImgFilename</code>||<code>string</code>||-||Applies to Beecons; it's the filename of the image to be displayed if script/command returns an Exit Status less than zero |
|- | |- | ||
- | |2||<code>0.1.4</code>||<code> | + | |2||<code>0.1.4</code>||<code>beecon_lt0_ImgZoom</code>||<code>int32</code>||<code>0=1:1</code><br/><code>1=Fit to widget dimensions</code><br/><code>2=5%</code><br/><code>3=10%</code><br/><code>4=15%</code><br/><code>... till 200%</code>||This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
|- | |- | ||
- | |3||<code>0.1.9.1</code>||<code> | + | |3||<code>0.1.9.1</code>||<code>beecon_lt0_ExtBgRGB</code>||<code>string</code>||<code>#<rrrr><gggg><bbbb></code>||Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status less than zero |
|- | |- | ||
- | |4||<code>0.1.0</code>||<code> | + | |4||<code>0.1.0</code>||<code>beecon_eq0_ImgFilename</code>||<code>string</code>||-||Applies to Beecons; it's the filename of the image to be displayed if script/command returns an Exit Status equals to zero |
|- | |- | ||
- | |5||<code>0.1.4</code>||<code> | + | |5||<code>0.1.4</code>||<code>beecon_eq0_ImgZoom</code>||<code>int32</code>||<code>0=1:1</code><br/><code>1=Fit to widget dimensions</code><br/><code>2=5%</code><br/><code>3=10%</code><br/><code>4=15%</code><br/><code>... till 200%</code>||This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
|- | |- | ||
- | |6||<code>0.1.9.1</code>||<code> | + | |6||<code>0.1.9.1</code>||<code>beecon_eq0_ExtBgRGB</code>||<code>string</code>||<code>#<rrrr><gggg><bbbb></code>||Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status equals to zero |
|- | |- | ||
- | |7||<code>0.1.0</code>||<code> | + | |7||<code>0.1.0</code>||<code>beecon_eq1_ImgFilename</code>||<code>string</code>||-||Applies to Beecons; it's the filename of the image to be displayed if script/command returns an Exit Status equals to 1 |
|- | |- | ||
- | |8||<code>0.1.4</code>||<code> | + | |8||<code>0.1.4</code>||<code>beecon_eq1_ImgZoom</code>||<code>int32</code>||<code>0=1:1</code><br/><code>1=Fit to widget dimensions</code><br/><code>2=5%</code><br/><code>3=10%</code><br/><code>4=15%</code><br/><code>... till 200%</code>||This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
|- | |- | ||
- | |9||<code>0.1.9.1</code>||<code> | + | |9||<code>0.1.9.1</code>||<code>beecon_eq1_ExtBgRGB</code>||<code>string</code>||<code>#<rrrr><gggg><bbbb></code>||Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status equals to 1 |
|- | |- | ||
- | |10||<code>0.1.0</code>||<code> | + | |10||<code>0.1.0</code>||<code>beecon_ge2_ImgFilename</code>||<code>string</code>||-||Applies to Beecons; it's the filename of the image to be displayed if script/command returns an Exit Status equals to 2 |
|- | |- | ||
- | |11||<code>0.1.4</code>||<code> | + | |11||<code>0.1.4</code>||<code>beecon_ge2_ImgZoom</code>||<code>int32</code>||<code>0=1:1</code><br/><code>1=Fit to widget dimensions</code><br/><code>2=5%</code><br/><code>3=10%</code><br/><code>4=15%</code><br/><code>... till 200%</code>||This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
|- | |- | ||
- | |12||<code>0.1.9.1</code>||<code> | + | |12||<code>0.1.9.1</code>||<code>beecon_ge2_ExtBgRGB</code>||<code>string</code>||<code>#<rrrr><gggg><bbbb></code>||Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status equals to 2 |
|- | |- | ||
- | |13||<code>0.1.0</code>||<code> | + | |13||<code>0.1.0</code>||<code>beecon_idxge2_ImgFilename</code>||<code>string</code>||-||Applies to Beecons; it's the basename of the image to be displayed if script/command returns an Exit Status greater than or equal to 3; Final image filename will be built as <code><basename>.png.<exit code></code> (Ex.dice.png.3, dice.png.4 ...) |
|- | |- | ||
- | |14||<code>0.1.4</code>||<code> | + | |14||<code>0.1.4</code>||<code>beecon_idxge2_ImgZoom</code>||<code>int32</code>||<code>0=1:1</code><br/><code>1=Fit to widget dimensions</code><br/><code>2=5%</code><br/><code>3=10%</code><br/><code>4=15%</code><br/><code>... till 200%</code>||This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
|- | |- | ||
- | |15||<code>0.1.9.1</code>||<code> | + | |15||<code>0.1.9.1</code>||<code>beecon_idxge2_ExtBgRGB</code>||<code>string</code>||<code>#<rrrr><gggg><bbbb></code>||Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status is greater than or equal to 3 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>beecon_lt0_BgRGB</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>beecon_eq0_BgRGB</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>beecon_eq1_BgRGB</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>beecon_ge2_BgRGB</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>beecon_idxge2_BgRGB</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|} | |} | ||
- | ====Command Title Settings==== | + | =====Command Title Settings===== |
+ | |||
[[Image:Snap203.jpg|350px]] | [[Image:Snap203.jpg|350px]] | ||
+ | |||
{|class="wikitable" border="2" | {|class="wikitable" border="2" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.1.0</code>||<code> | + | |1||<code>0.1.0</code>||<code>cmdImgFilename</code>||<code>string</code>||-||Applies both to Beecons and to Snippets; it's the filename of the image to be displayed as complementary to the Command Title label. Can be used to provide a customized image-based background to the widget. |
|- | |- | ||
- | |2||<code>1.0.3</code>||<code> | + | |2||<code>1.0.3</code>||<code>cmdImgAngle</code>||<code>uint32</code>||<code>0=0 Degrees</code><br/><code>1=90 Degrees</code><br/><code>2=180 Degrees</code><br/><code>3=270 Degrees</code>||It's the rotation of the Image associated to the Command Title (0, 90, 180, 270 degrees) |
|- | |- | ||
- | |3||<code>0.1.4</code>||<code> | + | |3||<code>0.1.4</code>||<code>cmdImgZoom</code>||<code>int32</code>||<code>0=1:1</code><br/><code>1=Fit to widget dimensions</code><br/><code>2=5%</code><br/><code>3=10%</code><br/><code>4=15%</code><br/><code>... till 200%</code>||This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
|- | |- | ||
- | |4||<code>0.1.3</code>||<code> | + | |4||<code>0.1.3</code>||<code>cmdImgVisibilityPosition</code>||<code>int32</code>||<code>0=Hidden<br/>1=Top Left<br/>2=Top Center<br/>3=Top Right<br/>4=Center Left<br/>5=Center<br/>6=Center Right<br/>7=Bottom Left<br/>8=Bottom Center<br/>9=Bottom Right</code>||Sets the Visibility and Position of the image associated to Command Title (Both for Snippets and for Beecons) |
|- | |- | ||
- | |5||<code>0.1.9</code>||<code> | + | |5||<code>0.1.9</code>||<code>cmdExtFont</code>||<code>string</code>||<code>[<family>] [italic] [bold] [<size>]</code>||Font string specification for Command label (Ex. Nokia Sans Italic Bold 12) |
|- | |- | ||
- | |6||<code>0.1.9.1</code>||<code> | + | |6||<code>0.1.9.1</code>||<code>cmdExtFgRGB</code>||<code>string</code>||<code>#<rrrr><gggg><bbbb></code>||It's the Foreground color to be used with Command Title label |
|- | |- | ||
- | |7||<code>0.1.3</code>||<code> | + | |7||<code>0.1.3</code>||<code>cmdVisibilityPosition</code>||<code>int32</code>||<code>0=Hidden<br/>1=Top Left<br/>2=Top Center<br/>3=Top Right<br/>4=Center Left<br/>5=Center<br/>6=Center Right<br/>7=Bottom Left<br/>8=Bottom Center<br/>9=Bottom Right</code>||Sets the Visibility and Position of the Command Title label |
|- | |- | ||
- | |8||<code>0.1.9.1</code>||<code> | + | |8||<code>0.1.9.1</code>||<code>cmdTextAngle</code>||<code>uint32</code>||<code>0=0 Degrees</code><br/><code>1=90 Degrees</code><br/><code>2=180 Degrees</code><br/><code>3=270 Degrees</code>||It's the rotation of the Command Title Label (0, 90, 180, 270 degrees) |
|- | |- | ||
- | |9||<code>0.1.0</code>||<code> | + | |9||<code>0.1.0</code>||<code>cmdJustify</code>||<code>int32</code>||<code>0=Left</code><br/><code>1=Right</code><br/><code>2=Center</code><br/><code>3=Fill</code>||It's the justification to be used with Command Title label |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>cmdFgRGB</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>cmdFontName</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>cmdFontSize</code>||<code>double</code>||-||Obsoleted as of release >=0.1.9 |
|} | |} | ||
- | ====Command Results Settings==== | + | =====Command Results Settings===== |
+ | |||
[[Image:Snap032.png|350px]] | [[Image:Snap032.png|350px]] | ||
+ | |||
{|class="wikitable" border="2" | {|class="wikitable" border="2" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.1.0</code>||<code> | + | |1||<code>0.1.0</code>||<code>resImgFilename</code>||<code>string</code>||-||Applies both to Snippets; it's the filename of the image to be displayed as complementary to the Command Results label. |
|- | |- | ||
- | |2||<code>1.0.3</code>||<code> | + | |2||<code>1.0.3</code>||<code>resImgAngle</code>||<code>uint32</code>||<code>0=0 Degrees</code><br/><code>1=90 Degrees</code><br/><code>2=180 Degrees</code><br/><code>3=270 Degrees</code>||It's the rotation of the Image associated to the Command Results (0, 90, 180, 270 degrees) |
|- | |- | ||
- | |3||<code>0.1.4</code>||<code> | + | |3||<code>0.1.4</code>||<code>resImgZoom</code>||<code>int32</code>||<code>0=1:1</code><br/><code>1=Fit to widget dimensions</code><br/><code>2=5%</code><br/><code>3=10%</code><br/><code>4=15%</code><br/><code>... till 200%</code>||This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
|- | |- | ||
- | |4||<code>0.1.3</code>||<code> | + | |4||<code>0.1.3</code>||<code>resImgVisibilityPosition</code>||<code>int32</code>||<code>0=Hidden<br/>1=Top Left<br/>2=Top Center<br/>3=Top Right<br/>4=Center Left<br/>5=Center<br/>6=Center Right<br/>7=Bottom Left<br/>8=Bottom Center<br/>9=Bottom Right</code>||Sets the Visibility and Position of the image associated to Command Results (For Snippets) |
|- | |- | ||
- | |5||<code>0.1.9</code>||<code> | + | |5||<code>0.1.9</code>||<code>resExtFont</code>||<code>string</code>||<code>[<family>] [italic] [bold] [<size>]</code>||Font string specification for Results label (Ex. Nokia Sans Italic Bold 12) |
|- | |- | ||
- | |6||<code>0.1.9.1</code>||<code> | + | |6||<code>0.1.9.1</code>||<code>resExtFgRGB</code>||<code>string</code>||<code>#<rrrr><gggg><bbbb></code>||It's the Foreground color to be used with Command Results label |
|- | |- | ||
- | |7||<code>0.1.3</code>||<code> | + | |7||<code>0.1.3</code>||<code>resVisibilityPosition</code>||<code>int32</code>||<code>0=Hidden<br/>1=Top Left<br/>2=Top Center<br/>3=Top Right<br/>4=Center Left<br/>5=Center<br/>6=Center Right<br/>7=Bottom Left<br/>8=Bottom Center<br/>9=Bottom Right</code>||Sets the Visibility and Position of the Command Results label |
|- | |- | ||
- | |8||<code>0.1.9.1</code>||<code> | + | |8||<code>0.1.9.1</code>||<code>resTextAngle</code>||<code>uint32</code>||<code>0=0 Degrees</code><br/><code>1=90 Degrees</code><br/><code>2=180 Degrees</code><br/><code>3=270 Degrees</code>||It's the rotation of the Command Results Label (0, 90, 180, 270 degrees) |
|- | |- | ||
- | |9||<code>0.1.0</code>||<code> | + | |9||<code>0.1.0</code>||<code>resJustify</code>||<code>int32</code>||<code>0=Left</code><br/><code>1=Right</code><br/><code>2=Center</code><br/><code>3=Fill</code>||It's the justification to be used with Command Results label |
|- | |- | ||
- | |10||<code>1.3</code>||<code> | + | |10||<code>1.3</code>||<code>resWrapLongLines</code>||<code>boolean</code>||<code>false=disabled</code><br/><code>true=enabled</code>||Enables the text wrapping on long lines with Command Results label |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>resFgRGB</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>resFontName</code>||<code>int32</code>||-||Obsoleted as of release >=0.1.9.1 |
|- | |- | ||
- | | ||<code>0.1.0</code>||<code> | + | | ||<code>0.1.0</code>||<code>resFontSize</code>||<code>double</code>||-||Obsoleted as of release >=0.1.9.1 |
|} | |} | ||
- | ====Progress Animation==== | + | =====Progress Animation===== |
+ | |||
[[Image:Snap033.png|350px]] | [[Image:Snap033.png|350px]] | ||
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.1.9.8</code>||<code> | + | |1||<code>0.1.9.8</code>||<code>progressAnimationFrames</code>||<code>uint32</code>||<code>[0-30]</code>||Holds the number of frames to display for the animation; 0 if animations should be hidden MAX 30 |
|- | |- | ||
- | |2||<code>0.1.9.8</code>||<code> | + | |2||<code>0.1.9.8</code>||<code>progressAnimationTimer</code>||<code>uint32</code>||<code>[0-20]</code>||Holds the number of milliseconds/50 to wait before drawing next frame (<=4secs) |
|- | |- | ||
- | |3||<code>0.1.9.8</code>||<code> | + | |3||<code>0.1.9.8</code>||<code>progressAnimationPos</code>||<code>uint32</code>||<code>0=Top Left</code><br/><code>1=Top Center</code><br/><code>2=Top Right</code><br/><code>3=Center Left</code><br/><code>4=Center</code><br/><code>5=Center Right</code><br/><code>6=Bottom Left</code><br/><code>7=Bottom Center</code><br/><code>8=Bottom Right</code><br/><code>9=Top Left & Hide Widget</code><br/><code>10=Top Center & Hide Widget</code><br/><code>11=Top Right & Hide Widget</code><br/><code>12=Center Left & Hide Widget</code><br/><code>13=Center & Hide Widget</code><br/><code>14=Center Right & Hide Widget</code><br/><code>15=Bottom Left & Hide Widget</code><br/><code>16=Bottom Center & Hide Widget</code><br/><code>17=Bottom Right & Hide Widget</code>||Holds the default position index of the animation in the widget and/or hide the widget itself during progress animation |
|- | |- | ||
- | |4||<code>1.0.4</code>||<code> | + | |4||<code>1.0.4</code>||<code>progressAnimationAtClickXY</code>||<code>boolean</code>||<code>true<nowiki>|</nowiki>false</code>||If checked, progress animation is displayed at X,Y position where widget is clicked. |
|- | |- | ||
- | |5||<code>0.1.9.8</code>||<code> | + | |5||<code>0.1.9.8</code>||<code>progressAnimationBasename</code>||<code>string</code>||-||Holds the basename of the files to load as frames from the relevant directory. Final frame filename will be built as <code><basename><frame number>.png</code> |
|} | |} | ||
- | ====Update Policy==== | + | =====Update Policy===== |
+ | |||
[[Image:Snap034.png|350px]] | [[Image:Snap034.png|350px]] | ||
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.1.0</code>||<code> | + | |1||<code>0.1.0</code>||<code>updOnStartup</code>||<code>boolean</code>||<code>true<nowiki>|</nowiki>false</code>||Update policy which defines if widget must be updated on system Startup or on widget Wakeup |
|- | |- | ||
- | |2||<code>0.0.1</code>||<code> | + | |2||<code>0.0.1</code>||<code>updOnDesktop</code>||<code>boolean</code>||<code>true<nowiki>|</nowiki>false</code>||Update policy which defines if widget must be updated when desktop, on which the widget resides, gets displayed either by being dragged or after resume from standby. |
|- | |- | ||
- | |3||<code>0.1.9.9</code>||<code> | + | |3||<code>0.1.9.9</code>||<code>updOnSight</code>||<code>uint32</code>||<code>true<nowiki>|</nowiki>false</code>||If set to <code>true</code>, widget content is only updated if on current desktop and visible (if screen locked no update will take place) |
|- | |- | ||
- | |4||<code>0.0.1</code>||<code> | + | |4||<code>0.0.1</code>||<code>updOnClick</code>||<code>boolean</code>||<code>true<nowiki>|</nowiki>false</code>||Update policy which defines if widget must be updated when it is clicked |
|- | |- | ||
- | |5||<code>1.2.10</code>||<code> | + | |5||<code>1.2.10</code>||<code>multiClick</code>||<code>boolean</code>||<code>true<nowiki>|</nowiki>false</code>||Enable/Disable support for multi click on widget (quicker click response if disabled) |
|- | |- | ||
- | |6||<code>1.3</code>||<code> | + | |6||<code>1.3</code>||<code>updOnOrientation</code>||<code>boolean</code>||<code>true<nowiki>|</nowiki>false</code>||Enable/Disable support for Phone Orientation |
|- | |- | ||
- | |7||<code>0.0.1</code>||<code> | + | |7||<code>0.0.1</code>||<code>delayIndex</code>||<code>uint32</code>||<code>0=Timer Disabled</code><br/><code>1=30 Secs</code><br/><code>2=1 Min</code><br/><code>3=5 Mins</code><br/><code>4=30 Mins</code><br/><code>5=1 Hour</code><br/><code>6=6 Hours</code><br/><code>7=12 Hours</code><br/><code>8=1 Day</code><br/><code>9=Custom (")</code>||Sets and index of values to use as intervals/periods for command/scripts executions |
|- | |- | ||
- | |8||<code>0.1.9.2</code>||<code> | + | |8||<code>0.1.9.2</code>||<code>customIntervalSecs</code>||<code>uint32</code>||<code><seconds></code>||Sets the number of seconds to use for Custom Update Intervals |
|- | |- | ||
- | |9||<code>0.0.1</code>||<code> | + | |9||<code>0.0.1</code>||<code>updNeworkPolicy</code>||<code>uint32</code>||<code>0=Irrelevant</code><br/><code>1=When Connected</code><br/><code>2=When Disconnected</code><br/><code>3=PassThrough (>= v1.0.6)</code>||Update policy which defines if widget update must be Network dependent and what network condition must trigger the update |
|- | |- | ||
- | |10||<code>1.3</code>||<code> | + | |10||<code>1.3</code>||<code>GPSsettings</code>||<code>uint32</code>||<code>(GPSsettings >> 8) 0=GPS Disabled, 1=GPS Enabled</code><br/><br/><code>(GPSsettings >> 4 & 0xF) 0=USER_SELECTED, 1=CWP, 2=ACWP, 3=GNSS, 4=AGNSS</code><br/><br/><code>(GPSsettings & 0xF) 0=DEFAULT, 1=1sec, 2=2sec, 3=5sec, 4=10sec, 5=20sec, 6=30sec, 7=60sec, 8=120sec</code>||See [[Documentation/Maemo 5 Developer Guide/Using Connectivity Components/Using Location API#LocationGPSDevice and LocationGPSDeviceFix|the location API reference]] |
|} | |} | ||
- | ====DBUS Event Monitoring==== | + | =====DBUS Event Monitoring===== |
+ | |||
[[Image:Snap035.png|350px]] | [[Image:Snap035.png|350px]] | ||
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.1.9.4</code>||<code> | + | |1||<code>0.1.9.4</code>||<code>updOnDBUS</code>||<code>uint32</code>||<code>0=Disabled<nowiki>|</nowiki>1=Enabled</code>||Enables DBUS Event Monitor and Update policy which defines if widget must be updated by any DBUS Event |
|- | |- | ||
- | |2||<code>0.1.9.4</code>||<code> | + | |2||<code>0.1.9.4</code>||<code>updOnDBUSBus</code>||<code>uint32</code>||<code>0=SYSTEM<nowiki>|</nowiki>1=SESSION</code>||Sets which DBUS bus to monitor (System/Session) |
|- | |- | ||
- | |3||<code>0.1.9.4</code>||<code> | + | |3||<code>0.1.9.4</code>||<code>updOnDBUSMatchRule</code>||<code>string</code>||[http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-routing See Specifications]||Specifies the rule to be matched in order for command/script to be executed (Ex.type='signal',path='/com/nokia/mce/signal',interface='com.nokia.mce.signal',member='tklock_mode_ind') |
|} | |} | ||
- | ====Remember Me Value==== | + | =====Remember Me Value===== |
[[Image:Snap094.jpg|350px]] | [[Image:Snap094.jpg|350px]] | ||
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | |1||<code>0.1.9.6</code>||<code> | + | |1||<code>0.1.9.6</code>||<code>rememberMe</code>||<code>string</code>||-||Holds status or persistency information across subsequent command executions.<br/>- Can be fetched/changed via DBUS method call <code>set/get_param_string string:"rememberMe" string:<remember_this_string></code><br/>- Can be transferred to command/scrips execution via <code>$QBW_REMEMBER_ME</code> Parameter Substitution<br/>- As of release >=1.0.5 Can be also be affected by executed command output. Just echo the following string (which will not be displayed) as output of your command <code>QBW_REMEMBER_ME(<content to be remembered>)</code> no angle brackets; escape "close round bracket" like this "\)" to store it as ")"<br/>See examples [http://talk.maemo.org/showthread.php?p=823123#post823123 HERE] |
|} | |} | ||
- | ====Not Present in Settings Dialog Box==== | + | =====Not Present in Settings Dialog Box===== |
- | {|class="wikitable | + | |
+ | {|class="wikitable" | ||
!Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | !Ref #!!Release!!Parameter!!Type!!Possible Values!!Description | ||
|- | |- | ||
- | | ||<code>0.0.1</code>||<code> | + | | ||<code>0.0.1</code>||<code>instanceCmd</code>||<code>string</code>||-||Holds the command/script to be executed |
|} | |} | ||
- | == Advanced Settings and Tools == | + | === Advanced Settings and Tools === |
Dialog can be reached via QBW Settings: | Dialog can be reached via QBW Settings: | ||
Line 313: | Line 337: | ||
[[image:29q0575.png]] | [[image:29q0575.png]] | ||
- | |||
[[image:Snap037.png|350px]] | [[image:Snap037.png|350px]] | ||
- | + | ====Section A: (Command TestDrive)==== | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | # This button opens up the About dialog box | ||
+ | # This selector allows to dynamically change the [[#Application Logging Subsystem|QBW Logging Subsystem Verbosity]] | ||
+ | # This is the list of Stored Commands that you can Test Drive; upon entering the dialog box, [3] & [8] are initialized with current Instance command. | ||
+ | # Use this button to Test Drive the command currently typed in [6] | ||
+ | # This button will update current instance command with the content of [8] (use it when command is working and thoroughly tested) | ||
+ | # Will copy to clipboard the command currently in [8] | ||
+ | # Will paste the clipboard into [8] | ||
+ | # Read-Write text field; this is the "command input buffer", it is used as extended Test Drive tool for troubleshooting commands with issues | ||
+ | # Read-Only text field; will display the '''Exit Status & Raw Output''' of the command in [8] executed by pressing button [4] | ||
[[image:Snap038.png|350px]] | [[image:Snap038.png|350px]] | ||
- | + | ====Section B: (Commands/Beecons Import/Export processing)==== | |
- | + | # Button will export the command currently in [A8]. Result of the export will be stored into [9] text buffer | |
- | + | # Button will import the command currently in [9]. | |
- | + | # Will paste the clipboard into [9] | |
- | + | # Will copy to clipboard the [9] text buffer | |
- | + | # Will read from a file into [9] | |
- | + | # Will write to a file the [9] text buffer | |
- | + | # Button will import the Beecon/Snippet Instance Data currently in []; useful for restoring Beecons of for importing Beecons created by others. | |
- | + | # Button will export the Beecon/Snippet Instance Data for the current instance. Result of the export will be stored into [9] text buffer; useful for backup of Beecons of for exporting Beecons to others. | |
- | + | # Read-Write text field; used for temporarily processing export/import of commands and Beecon/Snippet Instance Data | |
- | === Parameter Substitution at Command/Script Runtime === | + | ==== Parameter Substitution at Command/Script Runtime ==== |
QBW can provide a set of specific parameters to the executing script/command. The script will have to identify the placeholders for this extra parameters as better specified in the following table: | QBW can provide a set of specific parameters to the executing script/command. The script will have to identify the placeholders for this extra parameters as better specified in the following table: | ||
- | {|class="wikitable | + | {|class="wikitable" |
!Release!!Placeholder!!Substituted!!Description | !Release!!Placeholder!!Substituted!!Description | ||
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_ID</code>||<code><QBW Instance ID></code>||Retreives the [[#QBW Instance ID|QBW Instance ID]] and substitutes it into the run script |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_HOTSPOT_PRESS</code>||<code><Hot Spot Press/Click Position Index></code>||[[Image:QBW Hot Spot Press.gif|right]]Retreives the <code>POSITION INDEX</code> where the widget was pressed/clicked and substitutes it into the run script<br/><code>0 = Not Pressed (Other update policy)<br />1 = Top Left<br />2 = Top Center<br />3 = Top Right<br />4 = Center Left<br />5 = Center<br />6 = Center Right<br />7 = Bottom Left<br />8 = Bottom Center<br />9 = Bottom Right</code> |
|- | |- | ||
- | |<code>1.0.3</code>||<code> | + | |<code>1.0.3</code>||<code>$QBW_CLICKS_COUNT</code>||<code><Number></code>||Holds the number of times a QBW was pressed/clicked and substitutes it into the run script; useful for handling single/double/triple... clicks and behave accordingly (Tested up to 12 ... :) ) |
|- | |- | ||
- | |<s><code>1.0.4</code></s>||<s><code> | + | |<s><code>1.0.4</code></s>||<s><code>$QBW_IS_FINGER_TAP</code></s>||<s><code>true<nowiki>|</nowiki>false</code></s>||<s>Holds the type of click issued on the Touch Screen<br/><code>true</code>=Touch Screen was tapped with a finger<br/><code>false</code>=Touch Screen was clicked with stylus</s> |
|- | |- | ||
- | |<code>1.0.3</code>||<code> | + | |<code>1.0.3</code>||<code>$QBW_CLICK_X</code><br/><code>$QBW_CLICK_Y</code>||<code><X Coordinate></code><br/><code><Y Coordinate></code>||Hold exact X and Y coordinates respectively where a QBW was pressed/clicked (Useful for handling different arbitrary/dynamic hotspots on widgets via launched shell scripts; virtually unlimited as handling is left to launched script/program)<br/>Ex.<br/><code>x=$QBW_CLICK_X;<br/>y=$QBW_CLICK_Y;<br>if [ $x -ge 100 -a $x -le 200 -a $y -ge 100 -a $y -le 200 ];<br/>then echo "HOT SPOT HIT";<br/>else echo "HOT SPOT NOT HIT";<br/>fi;</code><br/>will echo "HOT SPOT HIT" if widget is clicked in rectangle delimited by p1(x=100,y=100) and p2(x=200,y=200) or "HOT SPOT NOT HIT" otherwise |
|- | |- | ||
- | |<code>1.0.53</code>||<code> | + | |<code>1.0.53</code>||<code>$QBW_WIDTH</code>||<code><Number></code>||Holds the current Width of QBW widget; useful for dynamic recalculation of click hotspots |
|- | |- | ||
- | |<code>1.0.53</code>||<code> | + | |<code>1.0.53</code>||<code>$QBW_HEIGHT</code>||<code><Number></code>||Holds the current Height of QBW widget; useful for dynamic recalculation of click hotspots |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_POSITION_X</code><br/><code>$QBW_POSITION_Y</code>||<code><X Coordinate></code><br/><code><Y Coordinate></code>||Hold the current X,Y Position of QBW widget |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_ORIENTATION_MODE</code>||<code><mode></code>||Holds the current Orientation Mode of QBW widget = <code>landscape</code>, <code>portrait</code>, <code>unknown</code>, <code>landscape (inverted)</code>, <code>portrait (inverted)</code> |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_ORIENTATION_STAND</code>||<code><stand></code>||Holds the current Orientation Stand of QBW widget = <code>off_stand</code>, <code>on_stand</code> |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_ORIENTATION_FACE</code>||<code><face></code>||Holds the current Orientation Face of QBW widget = <code>face_up</code>, <code>face_down</code> |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_ORIENTATION_X</code>||<code><X axis value></code>||Holds the current Orientation X axis of QBW widget = <code>-1</code><-><code>+1</code> |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_ORIENTATION_Y</code>||<code><Y axis value></code>||Holds the current Orientation Y axis of QBW widget = <code>-1</code><-><code>+1</code> |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_ORIENTATION_Z</code>||<code><Z axis value></code>||Holds the current Orientation Z axis of QBW widget = <code>-1</code><-><code>+1</code> |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_LOCATION_FIX</code>||<code><string></code>||Holds the current GPS Position FIX in colon separated string form: <code>status : time : ept : latitude : longitude : eph : altitude : epv : track : epd : speed : eps : climb : epc : gsm_cell_info.mcc : wcdma_cell_info.mcc : satellites_in_view : satellites_in_use</code><br/>If information is not available then <code>nan</code> is shown.<br/>See [[Documentation/Maemo_5_Developer_Guide/Using_Connectivity_Components/Using_Location_API#LocationGPSDevice_and_LocationGPSDeviceFix|HERE]] for reference.<br/>Ex. 1 : 1288031860 : 0 : 45,999999 : 9,999999 : 4026 : 157 : 20 : 210,490 : 359,990 : 0,11 : 4,43 : 0,00 : 0,03 : 0 : 0 : 10 : 5 |
|- | |- | ||
- | |<code>0.1.9.9</code>||<code> | + | |<code>0.1.9.9</code>||<code>$QBW_ON_SIGHT</code>||<code>true<nowiki>|</nowiki>false</code>||<code>true</code>=QBW Instance is "ON SIGHT", that is widget is on current desktop and display is not locked or on stand by.<br/><code>false</code>=QBW Instance is not on current desktop and visible or display is off or on stand by |
|- | |- | ||
- | |<code>1.0.2</code>||<code> | + | |<code>1.0.2</code>||<code>$QBW_IS_CONNECTED</code>||<code>true<nowiki>|</nowiki>false</code>||<code>true</code>=QBW Instance is connected to the network (either WLAN or GPRS)<br/><code>false</code>=QBW Instance is not connected to the network (either WLAN or GPRS) |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_TIMER_UPDATE</code>||Script is run due to a Timer event |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_STARTUP_UPDATE</code>||QBW instance is starting up and script run |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_SETTINGS_SAVE_RUN</code>||Save and Run is pressed in Settings Dialog Box and script run |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_TEST_DRIVE</code>||Script is run via Test Drive advanced dialog box |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_WAKEUP_CLICK</code>||A disabled instance is waken up by a click on icon and script is run |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_CLICK</code>||An instance is clicked and script is run |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_DESKTOP_SWITCH</code>||The desktop, on which and instance is displayed, is switched/scrolled and script is run |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_CONNECTION_EVENT</code>||A connection event takes place and script is run |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_DBUS_SET_PARAM_UPDATE</code>||A set_param DBUS method is called and "update content" (script run) is explicitly required |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_DBUS_WAKEUP</code>||A wakeup DBUS method is called and script is run |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_DBUS_UPDATE_CONTENT</code>||"update content" DBUS method is called and script run is explicitly required |
|- | |- | ||
- | |<code>0.1.9.1</code>||<code> | + | |<code>0.1.9.1</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_DBUS_EXEC</code>||"exec" DBUS method is called and external script run is explicitly required |
|- | |- | ||
- | |<code>0.1.9.4</code>||<code> | + | |<code>0.1.9.4</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_DBUS_MONITOR</code>||Execution of script was triggered by DBUS Match Rules in DBUS Event Monitoring |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_ORIENTATION_MONITOR</code>||Execution of script was triggered by phone Orientation Change if enabled in QBW instance configuration |
|- | |- | ||
- | |<code>1.3</code>||<code> | + | |<code>1.3</code>||<code>$QBW_EXEC_REASON</code>||<code>QBW_LOCATION_MONITOR_FIX</code>||Execution of script was triggered by FIX change in GPS Location subsystem if enabled in QBW instance configuration |
|- | |- | ||
- | |<code>0.1.9.4</code>||<code> | + | |<code>0.1.9.4</code>||<code>$QBW_DBUS_VERBOSE_OUTPUT</code>||<code>signal<nowiki>|</nowiki>method call<nowiki>|</nowiki>method return<nowiki>|</nowiki>error<nowiki>|</nowiki>unknown sender=<sender> -> dest=<destination> path=<path> interface=<interface> member=<member>\n</code><br/><code><type1> <param1>\n</code><br/><code><type2> <param2>\n</code><br/><code><typeX> <paramX></code>||Extended values returned by DBUS Monitor for Matched Rule. Example:<br/><code>signal sender=:1.31 -> dest=(null destination) path=/com/example/app/Signal; interface=com.example.app.Signal; member=Test<br/>string "192.168.47.100"<br/>boolean true</code> |
|- | |- | ||
- | |<code>1.0.6</code>||<code> | + | |<code>1.0.6</code>||<code>$QBW_PREVIOUS_EXIT_STATUS</code>||<code><last executed command's Exit Code></code>||Exit status of the last previous executed command |
|- | |- | ||
- | |<code>0.1.9.5</code>||<code> | + | |<code>0.1.9.5</code>||<code>$QBW_CURRENT_RESULTS_TEXT</code>||<code><current content of results text></code>||Current content of results text even if label is hidden. Useful for holding and processing previous state conditions across command executions |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_HTTP_PROXY</code>||<code><host>:<port></code>||Returns the current HTTP Proxy as entered into parameters for current active Internet Connection |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_HTTPS_PROXY</code>||<code><host>:<port></code>||Returns the current HTTPS Proxy as set into parameters for current active Internet Connection |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_FTP_PROXY</code>||<code><host>:<port></code>||Returns the current FTP Proxy as set into parameters for current active Internet Connection |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_SOCKS_PROXY</code>||<code><host>:<port></code>||Returns the current SOCKS Proxy as entered into parameters for current active Internet Connection |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_RTSP_PROXY</code>||<code><host>:<port></code>||Returns the current RTSP Proxy as set into parameters for current active Internet Connection |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_IGNORE_HOSTS_PROXY</code>||<code><host1>;<host2>;<host...></code>||Returns the current list of host which do not require a proxy as set into parameters for current active Internet Connection |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_AUTO_CONFIG_PROXY_URL</code>||<code><URL></code>||Returns the current Proxy configuration URL as set into parameters for current active Internet Connection |
|- | |- | ||
- | |<code>0.1.9.6</code>||<code> | + | |<code>0.1.9.6</code>||<code>$QBW_REMEMBER_ME</code>||<code><string></code>||Holds status or persistency information stored in configuration via Settings Dialog, DBUS method call or Command Output<br/>- Can be fetched/changed via DBUS method call <code>set/get_param_string string:"rememberMe" string:<remember_this_string></code><br/>- Can be transferred to command/scrips execution via <code>$QBW_REMEMBER_ME</code> Parameter Substitution<br/>- As of release >=1.0.5 Can be also affected by executed command output. Just echo the following string (which will not be displayed) as output of your command <code>QBW_REMEMBER_ME(<content to be remembered>)</code> no angle brackets; escape "close round bracket" like this "\)" to store it as ")"<br/>See examples [http://talk.maemo.org/showthread.php?p=823123#post823123 HERE] |
|} | |} | ||
- | == QBW Instance Timer Logic == | + | === QBW Instance Timer Logic === |
The Timer logic for each instance for actions to be run periodically is programmed as follows: | The Timer logic for each instance for actions to be run periodically is programmed as follows: | ||
- | * The timer of each instance is reset | + | * The timer of each instance is reset and re-armed every time the widget is Startup (System Boot or QBW release upgrade) |
- | * The timer of each instance is reset | + | * The timer of each instance is reset and re-armed every time it is changed in the Settings dialog box and it is different from its previous value |
- | * If a widget is disabled, either by changing is "Status" in the Settings dialog box or via DBUS method <code> | + | * If a widget is disabled, either by changing is "Status" in the Settings dialog box or via DBUS method <code>sleep</code>, its timer is disabled |
- | * If a widget is re-enabled, either by changing is "Status" in the Settings dialog box or via DBUS method <code> | + | * If a widget is re-enabled, either by changing is "Status" in the Settings dialog box or via DBUS method <code>wakeup</code>, its timer is reset and re-armed |
- | * If Settings Parameter <code> | + | * If Settings Parameter <code>delayIndex</code> has been changed via DBUS set_param_uint32 method, the relevant timer must be explicitly reset and rearmed via DBUS methos <code>reset_rearm_timer</code> |
- | * The timer is reset | + | * The timer is reset and re-armed every time a new QBW instance is imported via Advanced dialog box and relevant parameter is set |
- | + | ||
- | == System Backup/Restore Integration == | + | === System Backup/Restore Integration === |
- | As of release >=0.1.8 QBW is integrated into the N900 system backup/restore features according to standard specifications as better described in the SDK [ | + | As of release >=0.1.8 QBW is integrated into the N900 system backup/restore features according to standard specifications as better described in the SDK [[Documentation/Maemo 5 Developer Guide/Generic Platform Components/Using Backup Application#Custom back-up locations|Using Backup Application]] |
- | + | <code>/etc/osso-backup/applications/queen-beecon.conf</code> file is: | |
- | + | <source lang="xml"> | |
- | + | <backup-configuration> | |
- | + | <locations> | |
- | + | <location type="file" | |
- | + | category="settings">$HOME/.queen-beecon</location> | |
- | + | <location type="dir" | |
- | + | category="documents">$HOME/MyDocs/.images/queen_beecon_dir</location> | |
- | + | <location type="dir" | |
- | + | category="documents">$HOME/.queen_beecon_dir</location> | |
- | + | </locations> | |
- | + | </backup-configuration> | |
+ | </source> | ||
- | == Application Logging Subsystem == | + | === Application Logging Subsystem === |
As of release >=1.0.2, QBW employs a powerful Application Logging subsystem. | As of release >=1.0.2, QBW employs a powerful Application Logging subsystem. | ||
Log file is: | Log file is: | ||
- | + | ~/.queen_beecon_dir/queen_beecon.log | |
Time in logfile is ISO 8601 encoded string, relative to the Coordinated Universal Time (UTC) | Time in logfile is ISO 8601 encoded string, relative to the Coordinated Universal Time (UTC) | ||
- | Logging is | + | Logging is disabled by default. |
- | === Enabling Logging === | + | ==== Enabling Logging ==== |
Logging can be enabled in different ways: | Logging can be enabled in different ways: | ||
- | * | + | * Dynamically via QBW DBUS method call |
- | <code>run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw | + | <code>run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:<vX></code> |
- | : <code> | + | : <code><idX></code> is the [[#QBW Instance ID|QBW Instance ID]] of and existing QBW instance (no matter which one as logging is global) |
- | : <code> | + | : <code><vX></code> is the required verbosity (Allowed values are: <code>v0 v1 v2 v3 v4</code> from minimum verbosity to maximum) |
: Example: | : Example: | ||
- | + | run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid0 oh.no.more.qbw.logger_action string:v4 | |
- | : '''WARNING!''' Due to performance reasons, | + | : '''WARNING!''' Due to performance reasons, v0 v1 v2 v3 logging verbosity is asynchronous, meaning that the log file will not be instantly updated as soon as a new information is logged. |
:If you specifically need an up to date log file condition, you need to specifically issue a: | :If you specifically need an up to date log file condition, you need to specifically issue a: | ||
- | <code>run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw | + | <code>run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:flush</code> |
- | : | + | :<code>v4</code> logging verbosity is synchronous by design and logs a lot of information thus causing system slow down side effects at time and <code>~/.queen_beecon_dir/</code> directory/file system filling quite quickly. Keep file system space monitored if you need this level of verbosity! |
- | * | + | * Statically via condition file presence |
: If you need to setup permanent verbosity to a specified level, also to monitor QBW startup, just go to directory: | : If you need to setup permanent verbosity to a specified level, also to monitor QBW startup, just go to directory: | ||
- | + | ~/.queen_beecon_dir/ | |
: and issue command: | : and issue command: | ||
- | + | touch queen_beecon.log.<vX> | |
- | : where <code> | + | : where <code><vX></code> is the required verbosity (Allowed values are: <code>v0 v1 v2 v3 v4</code> from minimum verbosity to maximum) |
: Example: | : Example: | ||
- | + | touch queen_beecon.log.v4 | |
: Static Logging is activated every time the Phone/Widget is restarted | : Static Logging is activated every time the Phone/Widget is restarted | ||
- | === Changing Logging Verbosity === | + | ==== Changing Logging Verbosity ==== |
- | Logging verbosity can be dynamically changed by calling the following DBUS method call | + | |
- | + | Logging verbosity can be dynamically changed by calling the following DBUS method call: | |
- | : <code> | + | run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:<vX> |
- | : <code> | + | : <code><idX></code> is the [[#QBW Instance ID|QBW Instance ID]] of an existing QBW instance (no matter which one as logging is global) |
+ | : <code><vX></code> is the required verbosity (Allowed values are: <code>v0 v1 v2 v3 v4</code> from minimum verbosity to maximum) | ||
+ | |||
+ | ==== Disabling Logging ==== | ||
- | |||
Logging can be dynamically disabled by calling the following DBUS method call | Logging can be dynamically disabled by calling the following DBUS method call | ||
- | + | run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:disable | |
- | : <code> | + | : <code><idX></code> is the [[#QBW Instance ID|QBW Instance ID]] of an existing QBW instance (no matter which one as logging is global) |
+ | |||
+ | ==== Resetting Log File ==== | ||
- | |||
Log file can be dynamically reset to empty status by calling the following DBUS method call | Log file can be dynamically reset to empty status by calling the following DBUS method call | ||
- | + | run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:reset | |
- | : <code> | + | : <code><idX></code> is the [[#QBW Instance ID|QBW Instance ID]] of an existing QBW instance (no matter which one as logging is global) |
+ | |||
+ | == Interaction with QBW over DBUS == | ||
- | + | ===Overview=== | |
- | + | As of releases newer than 0.1.7, a new Inter Process Communication mechanism among QBW instances and with other Applications has been implemented. | |
- | + | ||
- | As of | + | |
Through the standard DBUS interface, both at the OS-shell and at different programming environments level, QBW instances can be controlled/accessed and mutual interaction can be guaranteed, thus allowing a set of extended functionalities like: | Through the standard DBUS interface, both at the OS-shell and at different programming environments level, QBW instances can be controlled/accessed and mutual interaction can be guaranteed, thus allowing a set of extended functionalities like: | ||
Line 534: | Line 559: | ||
* Provide to non graphical programs and daemons a suitable interface for displaying information on precustomized beecons on screen (for example Dbus Scripts for displaying events on the system/session DBUS like cell IDs changes, available WLANs and the like) | * Provide to non graphical programs and daemons a suitable interface for displaying information on precustomized beecons on screen (for example Dbus Scripts for displaying events on the system/session DBUS like cell IDs changes, available WLANs and the like) | ||
- | + | I encourage you to suggest possible enhancements or wishlists in this area and [http://talk.maemo.org/showthread.php?t=45388 report them in the main TALK thread] | |
- | ==QBW Instance ID== | + | ===QBW Instance ID=== |
- | Queen Beecon Widget's | + | |
+ | Queen Beecon Widget's Instance Id, needed for every reference in DBUS method calls, can be found at the very top of the Settings dialog box: | ||
[[Image:Snap017.png|300px]] | [[Image:Snap017.png|300px]] | ||
- | ==DBUS Specifications== | + | ===DBUS Specifications=== |
+ | |||
QBW_DBUS_SERVICE ="oh.no.more.qbw" [Name of D-Bus service] | QBW_DBUS_SERVICE ="oh.no.more.qbw" [Name of D-Bus service] | ||
- | QBW_DBUS_PATH ="/oh/no/more/qbw | + | QBW_DBUS_PATH ="/oh/no/more/qbw<idX>" [Name of Object Path] |
QBW_DBUS_IFACE ="oh.no.more.qbw" [Name of D-Bus interface] | QBW_DBUS_IFACE ="oh.no.more.qbw" [Name of D-Bus interface] | ||
- | * | + | * <idX> is the [[#QBW_Instance_ID|QBW Instance ID]] |
- | ==DBUS Methods & Parameters== | + | ===DBUS Methods & Parameters=== |
QBW implements the following list of methods to trigger specific actions: | QBW implements the following list of methods to trigger specific actions: | ||
- | + | WARNING!!! Methods' Parameters are case-sensitive | |
- | {|class="wikitable | + | {|class="wikitable" |
!Method!!Input Params!!Returns!!Description | !Method!!Input Params!!Returns!!Description | ||
|- | |- | ||
- | | | + | |<code>logger_action</code>||<code>string:'disable<nowiki> | </nowiki>v0<nowiki> | </nowiki>v1<nowiki> | </nowiki>v2<nowiki> | </nowiki>v3<nowiki> | </nowiki>v4<nowiki> | </nowiki>reset<nowiki> | </nowiki>flush'</code>||||Performs the following actions on the qbw logger subsystem:<br/><br/><code>disable</code> Disables logging<br/><br/><code>v0-4</code> Sets Logger Verbosity to specified depth level<br/><br/><code>reset</code> Resets the logfile <code>queen_beecon.log</code> in directory <code>/home/user/.queen_beecon_dir</code> to empty<br/><br/><code>flush</code> Flushes content of logfile <code>queen_beecon.log</code> |
|- | |- | ||
- | | | + | |<code>dbus_method_monitor</code>||<code>string:'on<nowiki> | </nowiki>off'</code>||||Toggle on-screen yellow notification message of incoming DBUS method requests for destination Instance (for debug purposes). Default=OFF |
|- | |- | ||
- | | | + | |<code>reset_rearm_timer</code>||||||Reset and rearm timer for periodically auto-updating QBW, needed to be explicitly called if parameter <code>delayIndex</code> has been changed via DBUS <code>set_param_uint32</code> method |
|- | |- | ||
- | | | + | |<code>reset_rearm_connection</code>||||||Reset and rearm the network connection subsystem, needed to be explicitly called if parameter <code>updNeworkPolicy</code> has been changed via DBUS method |
|- | |- | ||
- | | | + | |<code>reset_rearm_location</code>||||||Reset and rearm the GPS location subsystem, needed to be explicitly called if parameter <code>GPSsettings</code> has been changed via DBUS method |
|- | |- | ||
- | | | + | |<code>reset_rearm_orientation</code>||||||Reset and rearm the Phone Orientation subsystem, needed to be explicitly called if parameter <code>updOnOrientation</code> has been changed via DBUS method |
|- | |- | ||
- | | | + | |<code>reset_rearm_dbus_monitor</code>||||||Reset and rearm the DBUS Monitor subsystem, needed to be explicitly called if parameters <code>updOnDBUS</code>, <code>updOnDBUSBus</code> and <code>updOnDBUSMatchRule</code> have been changed via DBUS method |
|- | |- | ||
- | | | + | |<code>show</code>||||||Give show impulse to a QBW |
|- | |- | ||
- | | | + | |<code>hide</code>||||||Give hide impulse to a QBW |
|- | |- | ||
- | | | + | |<code>wakeup</code>||||||Give wake up impulse to a QBW and update content and layout |
|- | |- | ||
- | | | + | |<code>sleep</code>||||||Give sleep/disable/minimize impulse to a QBW |
|- | |- | ||
- | | | + | |<code>update_content</code>||||||Give impulse to a QBW for content update |
|- | |- | ||
- | | | + | |<code>update_layout</code>||||||Give impulse to a QBW for layout update |
|- | |- | ||
- | | | + | |<code>exec</code>||<code>string:'<command<nowiki>|</nowiki>script>'</code>||||Give other QBWs one-shot alternative scripts/commands to execute and update content accordingly |
|- | |- | ||
- | | | + | |<code>set_param_string</code>||<code>string:'<param name>'</code><br /><code>string:'<new value>'</code><br /><code>string:<nowiki>'' | </nowiki>'update_content'<nowiki> | </nowiki>'update_layout'</code>|||||Change and store QBW settings [[#Configuration_Parameters.2C_Types_.26_Reference|parameter]] of type string |
|- | |- | ||
- | | | + | |<code>set_param_int32</code>||<code>string:'<param name>'</code><br /><code>int32:'<new value>'</code><br /><code>string:<nowiki>'' | </nowiki>'update_content'<nowiki> | </nowiki>'update_layout'</code>||||Change and store QBW settings [[#Configuration_Parameters.2C_Types_.26_Reference|parameter]] of type int |
|- | |- | ||
- | | | + | |<code>set_param_uint32</code>||<code>string:'<param name>'</code><br /><code>uint32:'<new value>'</code><br /><code>string:<nowiki>'' | </nowiki>'update_content'<nowiki> | </nowiki>'update_layout'</code>||||Change and store QBW settings [[#Configuration_Parameters.2C_Types_.26_Reference|parameter]] of type uint |
|- | |- | ||
- | | | + | |<code>set_param_double</code>||<code>string:'<param name>'</code><br \><code>double:'<new value>'</code><br /><code>string:<nowiki>'' | </nowiki>'update_content'<nowiki> | </nowiki>'update_layout'</code>||||Change and store QBW settings [[#Configuration_Parameters.2C_Types_.26_Reference|parameter]] of type double |
|- | |- | ||
- | | | + | |<code>set_param_boolean</code>||<code>string:'<param name>'</code><br /><code>boolean:'<new value>'</code><br /><code>string:<nowiki>'' | </nowiki>'update_content'<nowiki> | </nowiki>'update_layout'</code>||||Change and store QBW settings [[#Configuration_Parameters.2C_Types_.26_Reference|parameter]] of type boolean |
|- | |- | ||
- | | | + | |<code>get_param</code>||<code>string:'<param name>'</code>||<code>string:'value'</code>||Get QBW settings [[#Configuration_Parameters.2C_Types_.26_Reference|parameter]] |
|- | |- | ||
- | | | + | |<code>is_on_sight</code>||||<code>string:'value'</code>||Get current widget On Sight status<br/>'''<code>true</code>'''=QBW Instance is "ON SIGHT", that is widget is on current desktop and display is not locked or on stand by.<br/><code>false</code>=QBW Instance is not on current desktop and visible or display is off or on stand by |
|- | |- | ||
- | | | + | |<code>get_current_results_text</code>||||<code>string:'value'</code>||Get current content of results text |
|- | |- | ||
- | | | + | |<code>set_position</code>||<code>int32:'<X-coord>'</code><br /><code>int32:'<Y-coord>'</code>||||Set QBW position on desktop |
|- | |- | ||
- | | | + | |<code>get_position</code>||||<code>int32:'<X-coord>'</code><br /><code>int32:'<Y-coord>'</code>||Get QBW position on desktop |
|- | |- | ||
- | | | + | |<code>get_exit_status</code>||||<code>int32:'<ExitStatus>'</code>||Retrieve other QBW's last executed commands exit status |
|} | |} | ||
- | ==DBUS Signals & Parameters== | + | ===DBUS Signals & Parameters=== |
+ | |||
QBW issues the following list of signals to notify the "world" about predefined conditions and events. They will be emitted on the bus according to the following specifications: | QBW issues the following list of signals to notify the "world" about predefined conditions and events. They will be emitted on the bus according to the following specifications: | ||
- | PATH ="/oh/no/more/qbw | + | PATH ="/oh/no/more/qbw<idX>" |
INTERFACE ="oh.no.more.qbw" | INTERFACE ="oh.no.more.qbw" | ||
MEMBER ="<signal name>" [Signal column in below list] | MEMBER ="<signal name>" [Signal column in below list] | ||
PARAMETERS ="<parameter>" [Broadcast column in below list] | PARAMETERS ="<parameter>" [Broadcast column in below list] | ||
- | * | + | * <idX> is the [[#QBW_Instance_ID|QBW Instance ID]] |
- | {|class="wikitable | + | {|class="wikitable" |
!Signal!!Broadcasts!!Description | !Signal!!Broadcasts!!Description | ||
|- | |- | ||
- | | | + | |<code>signal_content_update</code>||<code>int32:'<ExitStatus>'</code>||Issued when [[#QBW_Instance_ID|QBW Instance <idX>]] executes and returns an exit status |
|} | |} | ||
- | ==Interacting with QBW from the Shell== | + | ===Interacting with QBW from the Shell=== |
+ | |||
This is the template to use for calling the QBW instance methods: | This is the template to use for calling the QBW instance methods: | ||
- | * | + | * For methods which DO return values: |
- | run-standalone.sh dbus-send --session | + | run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.<method> <type1>:"<param1>" <type2>:"<param2>" ... <typeN>:"<paramN>" |
- | <s>'''WARNING!!!''' Hildon-home is quite sensitive to long running commands inside Queen Beecon Widget. If you believe that the dbus-send command is going to take much time (say >2/3 secs) it is better if you add the | + | <s>'''WARNING!!!''' Hildon-home is quite sensitive to long running commands inside Queen Beecon Widget. If you believe that the dbus-send command is going to take much time (say >2/3 secs) it is better if you add the <code>--reply-timeout=<milliseconds></code> to the dbus-send list of parameters.</s> As of >=0.1.9.3 release, asynchronous execution of commands/scripts obsoletes previous statement. |
- | * | + | * For methods which DO NOT return values: |
- | run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw | + | run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.<method> <type1>:"<param1>" <type2>:"<param2>" ... <typeN>:"<paramN>" |
Where: | Where: | ||
- | * | + | * <code><idX></code> is the [[#QBW Instance ID|QBW Instance ID]] |
- | * | + | * <code><method></code> is the [[#DBUS Methods|Method]] to be called for the specific QBW Instance |
- | * | + | * <code><typeX></code> and <code><paramX></code> are the parameter type and value as per the specific [[#DBUS Methods|Method Synopsis]] |
For example: | For example: | ||
Line 645: | Line 674: | ||
or | or | ||
- | run-standalone.sh dbus-send --session | + | run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid0 oh.no.more.qbw.get_position |
- | + | ||
- | = QBW DBUS Events Monitor and Interceptor = | + | == QBW DBUS Events Monitor and Interceptor == |
- | ==Overview== | + | |
- | As of | + | ===Overview=== |
+ | |||
+ | As of releases newer than 0.1.9.3 QBW is now able to monitor and intercept DBUS events (like signals, methods, errors) issued by the system or other applications. For example: | ||
* Keyboard lock/unlock | * Keyboard lock/unlock | ||
* Slide open/close | * Slide open/close | ||
Line 667: | Line 697: | ||
[[Image:Qbwdbusm.jpg||400px]] | [[Image:Qbwdbusm.jpg||400px]] | ||
- | + | # States if DBUS Monitoring is enabled or disabled for this QBW | |
+ | # Specify whether to monitor SYSTEM or SESSION BUS | ||
+ | # Is the Match Rule as per [http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-routing this DBUS specifications] | ||
- | + | I encourage you to suggest possible enhancements or wishlists in this area and report them in the main [http://talk.maemo.org/showthread.php?t=45388 TALK thread] | |
- | + | ==== Example ==== | |
- | |||
- | |||
- | |||
We will monitor the SYSTEM BUS with the following Match Rule: | We will monitor the SYSTEM BUS with the following Match Rule: | ||
type='signal',interface='com.example.app.Signal' | type='signal',interface='com.example.app.Signal' | ||
Line 688: | Line 717: | ||
[[Image:qbwmonw.jpg||400px]] | [[Image:qbwmonw.jpg||400px]] | ||
- | |||
- | = Known Issues = | + | == Known Issues == |
TBD | TBD | ||
- | |||
- | = Bug Tracker/Reports = | + | == Bug Tracker/Reports == |
- | + | ||
- | + | ||
- | + | [https://garage.maemo.org/tracker/?atid=4848&group_id=1295&func=browse Tracker/Report See HERE] | |
- | + | ||
- | + | ||
- | = | + | == Feature Requests == |
- | + | ||
- | + | [https://garage.maemo.org/tracker/?atid=4851&group_id=1295&func=browse Apply HERE] | |
- | = | + | == Now-Brewing == |
- | + | Nothing | |
- | + | == Change Log == | |
- | + | ||
- | + | ||
- | + | ||
- | + | {{main|Queen BeeCon Widget/Changelog}} | |
- | + | == TODO list == | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
*Bugfixing and Improving Stability | *Bugfixing and Improving Stability | ||
*Instance Import/Export optimization and simplification | *Instance Import/Export optimization and simplification | ||
- | |||
- | = HOW-TOs & FAQs = | + | == HOW-TOs & FAQs == |
+ | |||
+ | === Create a new Basic Instance of QBW === | ||
- | + | After you have installed QBW package, these are the steps to create and start customizing a new Instance of the widget. | |
- | After you have installed QBW package, these are the steps to | + | |
* Tap on an empty area of the Desktop and gear icon for configuration will pop up in the upper right area of the screen | * Tap on an empty area of the Desktop and gear icon for configuration will pop up in the upper right area of the screen | ||
Line 1,026: | Line 757: | ||
* A new instance of the widget will be created with very basic default configuration | * A new instance of the widget will be created with very basic default configuration | ||
:[[Image:Qbwinst4.png]] | :[[Image:Qbwinst4.png]] | ||
- | * Now if you click on the Settings Wrench Icon you'll reach the | + | * Now if you click on the Settings Wrench Icon you'll reach the Settings Dialog for customization |
- | + | ||
+ | === How and Where to store Icons and Images for your Beecons === | ||
- | + | If no PATH is specified in the Settings for Icons and Images, QBW will look in directories on the phone's internal memories in the following order: | |
- | + | ||
- | * | + | * First, the directory accessible via Bluetooth/PC Suite/OVI Suite or USB (Storage Mode). |
/home/user/MyDocs/.images/queen_beecon_dir/ | /home/user/MyDocs/.images/queen_beecon_dir/ | ||
Line 1,046: | Line 777: | ||
/usr/share/icons/hicolor/48x48/hildon/ | /usr/share/icons/hicolor/48x48/hildon/ | ||
- | If you want | + | If you want to replace a partial/complete set of QBW's [[#Icons in Package|Package Icons]] just create Icons/Images with same name in directories "First" or "Second" |
- | If specified | + | If the specified image is not found, the following icon will appear: |
[[Image:Queen-beecon-noimg.png]] | [[Image:Queen-beecon-noimg.png]] | ||
- | |||
- | == Create an Exit Status driven Multi Images Beecon == | + | === Create an Exit Status driven Multi Images Beecon === |
- | + | ||
- | + | ||
- | == Scripts/Commands with long output == | + | [http://talk.maemo.org/showthread.php?p=576408#post576408 Naive Dice Roller] is a good place to start looking for such implementation. |
+ | |||
+ | === Scripts/Commands with long output === | ||
Some scripts/commands may create multiple lines which are too long to be displayed on a single line. The widget will not wrap these. In order to wrap them you can use the fold command: | Some scripts/commands may create multiple lines which are too long to be displayed on a single line. The widget will not wrap these. In order to wrap them you can use the fold command: | ||
Line 1,064: | Line 794: | ||
The 80 in that instance is the maximum length of the line, which you can change. The -s option makes fold word wrap with spaces. More information is available from the [http://unixhelp.ed.ac.uk/CGI/man-cgi?fold fold man page]. | The 80 in that instance is the maximum length of the line, which you can change. The -s option makes fold word wrap with spaces. More information is available from the [http://unixhelp.ed.ac.uk/CGI/man-cgi?fold fold man page]. | ||
- | |||
- | == Backup all Widget Instances == | + | === Backup all Widget Instances === |
- | Apply | + | Apply [[#Export.2FSave.2FBackup Procedure for Beecon Instance Data|Export/Save/Backup Procedure for Beecon Instance Data]] for every Widget Instance you want to Backup |
Save content (Beecons' Images) of directories: | Save content (Beecons' Images) of directories: | ||
/home/user/.queen_beecon_dir | /home/user/.queen_beecon_dir | ||
/home/user/MyDocs/.images/queen_beecon_dir/ | /home/user/MyDocs/.images/queen_beecon_dir/ | ||
- | |||
- | == Restore all Widget Instances == | + | === Restore all Widget Instances === |
- | Apply | + | Apply [[#Import.2FLoad.2FRestore Procedure for Beecon Exported Instance Data|Import/Load/Restore Procedure for Beecon Exported Instance Data]] for every Widget Instance you want to Restore |
Restore content (Beecons' Images) of directories: | Restore content (Beecons' Images) of directories: | ||
/home/user/.queen_beecon_dir | /home/user/.queen_beecon_dir | ||
/home/user/MyDocs/.images/queen_beecon_dir/ | /home/user/MyDocs/.images/queen_beecon_dir/ | ||
- | |||
- | == Import/Load/Restore Procedure for Beecon Exported Instance Data == | + | === Import/Load/Restore Procedure for Beecon Exported Instance Data === |
- | + | ||
- | + | ||
- | + | [http://talk.maemo.org/showthread.php?p=572028#post572028 See HERE] | |
- | + | ||
- | + | ||
- | == | + | === Export/Save/Backup Procedure for Beecon Instance Data === |
- | + | ||
- | + | ||
- | == Reset QBW to Default Configuration/Commands == | + | [http://talk.maemo.org/showthread.php?p=613152#post613152 See HERE] |
- | + | ||
+ | === Copy Exported Instance Data from Browser to Phone's Clipboard === | ||
+ | |||
+ | [http://talk.maemo.org/showthread.php?p=575685&post575685 See HERE] | ||
+ | |||
+ | === Reset QBW to Default Configuration/Commands === | ||
+ | |||
+ | Open up [[terminal|X Terminal]] (or SSH/Putty into N900) and issue the following command: | ||
sudo gainroot (only if you are not already root) | sudo gainroot (only if you are not already root) | ||
rm /home/user/.queen_beecon | rm /home/user/.queen_beecon | ||
killall hildon-home | killall hildon-home | ||
- | |||
- | == Completely remove QBW from your N900 == | + | === Completely remove QBW from your N900 === |
- | + | ||
- | sudo gainroot | + | Open up [[terminal|X-Terminal]] (or SSH/Putty into N900) and issue the following command |
+ | sudo gainroot | ||
+ | (only if you are not already root) | ||
dpkg -P queen-beecon | dpkg -P queen-beecon | ||
rm /home/user/.queen_beecon | rm /home/user/.queen_beecon | ||
rm -r /home/user/.queen_beecon_dir | rm -r /home/user/.queen_beecon_dir | ||
rm -r /home/user/MyDocs/.images/queen_beecon_dir/ | rm -r /home/user/MyDocs/.images/queen_beecon_dir/ | ||
- | |||
- | == Run every Desktop Application with different Icons/Sizes buttons == | + | === Run every Desktop Application with different Icons/Sizes buttons === |
+ | |||
You can run every desktop application with a script like this and just change the image and size of the Beecon to one of your choice: | You can run every desktop application with a script like this and just change the image and size of the Beecon to one of your choice: | ||
- | dbus-send --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:" | + | dbus-send --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:"<application name here>" |
- | where | + | where <code><application name here></code> is application name that you can find in <code>/usr/share/applications/hildon</code> directory without the trailing <code>.desktop</code> |
Example for launching the image viewer: | Example for launching the image viewer: | ||
Line 1,121: | Line 850: | ||
/usr/bin/dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:image-viewer | /usr/bin/dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:image-viewer | ||
- | + | [http://talk.maemo.org/showthread.php?p=741381#post741381 See EXAMPLE Here] | |
+ | |||
+ | === Run Application in xterm with different Icons/Sizes buttons === | ||
- | |||
You can run every application in xterm and customize a button on Desktop to launch it. | You can run every application in xterm and customize a button on Desktop to launch it. | ||
- | + | [http://talk.maemo.org/showthread.php?p=741436&post=741436 See THIS post for a Tutorial] | |
- | + | ||
- | + | ||
- | + | ||
- | == | + | === Create invisible clickable Hot Spots on your Desktop Background Image to launch Applications or perform Actions === |
- | + | [http://talk.maemo.org/showthread.php?p=786923#post786923 See Here] and follow-up posts. | |
- | + | ||
- | == | + | === Relocate/Rotate a QBW widget on a Keyboard slide event === |
- | ===Could you make an easy way to install new beecons/scripts please?=== | + | [http://talk.maemo.org/showthread.php?p=823118#post823118 See Here] and follow-up posts. |
- | + | ||
+ | === FAQs === | ||
+ | |||
+ | ====Could you make an easy way to install new beecons/scripts please?==== | ||
+ | |||
+ | ... perhaps define a standard folder structure inside a compressed file, perhaps some install directions file inside to guide installation, and use a custom extension; kinda like how Firefox does with XPIs, and add some GUI to install/uninstall them | ||
This is a good question and I still haven't figured out a good answer. | This is a good question and I still haven't figured out a good answer. | ||
Line 1,153: | Line 884: | ||
I know there is no proper answer here... | I know there is no proper answer here... | ||
- | |||
- | = Easter Eggs = | + | == Easter Eggs == |
+ | |||
+ | === Magic Word for bypassing Export/Import Instance Data CheckSum protection === | ||
- | |||
[[Image:Qbwlsowk.jpg]] | [[Image:Qbwlsowk.jpg]] | ||
- | + | Use the Source ... Luke! ;) or ask politely! | |
- | + | ||
+ | == Troubleshooting == | ||
- | = | + | === Startup === |
- | + | If you are having issues at widget startup because of improper "Update on Widget/System Startup" settings: | |
- | If you are having | + | |
- | * Open up [[terminal|X | + | * Open up [[terminal|X Terminal]] (or SSH/Putty into N900) and issue the following commands: |
- | sudo gainroot | + | sudo gainroot |
+ | (only if you are not already root) | ||
vi /home/user/.queen_beecon | vi /home/user/.queen_beecon | ||
- | + | * find <code>updOnStartup=true</code> (all instances supposed to be culprits) | |
- | * find | + | * Set it to false: |
- | + | updOnStartup=false | |
- | * Set it to false | + | |
- | + | ||
* Save file | * Save file | ||
- | |||
* Immediately issue: | * Immediately issue: | ||
killall hildon-home | killall hildon-home | ||
- | |||
* hildon-home will automatically restart and widgets won't run any more at startup | * hildon-home will automatically restart and widgets won't run any more at startup | ||
- | More generally just open | + | More generally just open <code>/home/user/.queen_beecon</code> and change the Update Policies of your offending instance as per [[#Update Policy|THIS section's specifications]] |
- | + | ||
- | == Running == | + | === Running === |
- | === QBW Warning! Possible Pango Markup Language inconsistent/unterminated Tag! === | + | ==== QBW Warning! Possible Pango Markup Language inconsistent/unterminated Tag! ==== |
- | If you are using | + | |
- | + | If you are using [http://maemo.org/api_refs/5.0/5.0-final/pango/PangoMarkupFormat.html Pango Markup Language] tags as output from your scripts, make sure all Tags are correctly written/spelled and terminated. Make also sure that there is an explicit newline at the very end of your output. | |
If you need to display the following special characters: | If you need to display the following special characters: | ||
- | These | + | These NEED to be escaped: |
- | *The | + | *The less-than character (<) starts element markup (the first character of a start-tag or an end-tag). Escape: <code>&lt;</code> |
+ | *The greater-than character (>) ends a start-tag or an end-tag. Escape: <code>&gt;</code> | ||
- | + | These MIGHT NEED to be escaped: | |
- | + | *The ampersand character (&) starts entity markup (the first character of a character entity reference). Escape: <code>&amp;</code> | |
+ | *The double-quote character (") can be symbolised with this character entity reference when you need to embed a double-quote inside a string which is already double-quoted. Escape: <code>&quot;</code> | ||
+ | *The apostrophe or single-quote character (') can be symbolised with this character entity reference when you need to embed a single-quote or apostrophe inside a string which is already single-quoted. Escape: <code>&apos;</code> | ||
- | + | ==== Beecon seems to hang when fetching data or accessing the Internet/Network ==== | |
- | + | Please have a look at the thread of [http://talk.maemo.org/showthread.php?p=544591#post544591 Timeout and Proxy related issues]. | |
- | + | You can also have a look at [[#Parameter Substitution at Command.2FScript Runtime|THIS section]] of the WIKI for proxy related information | |
- | + | ||
- | === | + | === Advanced Settings and Tools Dialog Box === |
- | + | ||
- | + | ==== QBW Warning! Expected/Shown Command Output mismatch. Possible charset different from UTF-8! ==== | |
- | + | ||
- | + | ||
- | = | + | |
- | + | ||
- | === QBW Warning! Expected/Shown Command Output mismatch. Possible charset different from UTF-8! === | + | |
If you press '''TestDrive''' for a command and the '''Exit Status and Command RAW Output Buffer''' still displays '''''"Exit Status & Command RAW Output will be displayed HERE"''''' then maybe your output contains a charset different from UTF-8. | If you press '''TestDrive''' for a command and the '''Exit Status and Command RAW Output Buffer''' still displays '''''"Exit Status & Command RAW Output will be displayed HERE"''''' then maybe your output contains a charset different from UTF-8. | ||
Line 1,223: | Line 946: | ||
[[image:Snap091.jpg|250px]] | [[image:Snap091.jpg|250px]] | ||
- | To have the Command Output properly displayed, try to append " | + | To have the Command Output properly displayed, try to append "<code.| iconv --from-code=ISO-8859-1 --to-code=UTF-8</code>". For example: |
- | + | ||
- | + | ... command1 | iconv --from-code=ISO-8859-1 --to-code=UTF-8 | |
[[image:Snap090.jpg|250px]] | [[image:Snap090.jpg|250px]] | ||
- | |||
- | === WARNING! Bad Checksum! Possibly corrupt Import Instance/Command Data! === | + | ==== WARNING! Bad Checksum! Possibly corrupt Import Instance/Command Data! ==== |
+ | |||
Every exported QBW Instance/Command Data is protected by a checksum value which is stored in the header part of the export. | Every exported QBW Instance/Command Data is protected by a checksum value which is stored in the header part of the export. | ||
Line 1,237: | Line 960: | ||
* To preserve integrity of what the author of the QBW created (and supposedly assumed "working") | * To preserve integrity of what the author of the QBW created (and supposedly assumed "working") | ||
* To prevent unwanted changes to the data due to clipboard copy/paste operations | * To prevent unwanted changes to the data due to clipboard copy/paste operations | ||
- | * To ease the QBW exported data import process, and avoid some extra effort in coding import/export routines, by using the <code> | + | * To ease the QBW exported data import process, and avoid some extra effort in coding import/export routines, by using the <code>g_key_file_*</code> APIs |
Exported data is not "pure" configuration text; it is "meta-text" with some extra '''escape characters''' (Newline, tab, carriage return, backslash, blank which are escaped as \n, \t, \r, \\, \s respectively) | Exported data is not "pure" configuration text; it is "meta-text" with some extra '''escape characters''' (Newline, tab, carriage return, backslash, blank which are escaped as \n, \t, \r, \\, \s respectively) | ||
This is why directly changing the data inside the import/export buffer or in a text editor before importing is strictly discouraged (unless, of course, you know what you are doing and side effects) | This is why directly changing the data inside the import/export buffer or in a text editor before importing is strictly discouraged (unless, of course, you know what you are doing and side effects) | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | == Published Beecons, Scripts & Commands == | |
- | + | {{main|Queen BeeCon Widget/BeeCons, scripts and commands}} | |
- | + |
Latest revision as of 09:57, 11 October 2021
Queen BeeCon Widget (See Talk Thread) is a highly customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for Maemo 5 (Fremantle) and the N900. In 8 words ... A Super Powerful and Customizable Widget Generation Engine
The Widget is based on the execution of external Shell/OS Commands which can be either as simple as one-liner statements or as complex as articulated shell scripts, which, for example, fetch, parse and aggregate contents retreived from the system, other applications or the Internet.
There are two basic Widget types, Beecons and Snippets:
Beecons are small hexagonal cells whose background color or associated image/icon changes according to the executed Command Exit Status.
Beecons can handle virtually unlimited Command Exit Status:
-
<0
Normally notifying system errors in esecuting the script/command -
0
Returned when script/command successfully completes -
1
Used to report a warning condition -
2
If script/command needs to notify some application error conditions -
<=126
Other exit status which can be handled for displaying user defined icons/images
Snippets are normal text/graphic boxes with fixed background color and images which is not influenced by the executed Command Exit Status.
[edit] Current Status in Maemo Repositories
v1.3.3(18/1/2011) extras-devel / v1.3.3(02/09/2011) extras-testing / v1.3.3(07/10/2011) EXTRAs
[edit] Features List
- Widget can be multi-instantiated, disabled and minimized on desktop (click on minimized icon on desktop will wakeup and maximize instance)
- Possibility to define multiple commands and command labels to be displayed inside the Widget
- Different types of Widget layouts and behaviours (currently Beecons and Snippets)
- Possibility to sense Phone Orientation and execute scripts accordingly
- Possibility to sense GPS/Location information/FIX from the phone and execute scripts accordingly
- Possibility to hide the background Canvas both for Beecons and Snippets
- Possibility to use icons or images instead of text, both for Beecons/Snippets command title' and output (with highly versatile positioning, zooming/scaling 5%-200%-FitToWidget)
- Possibility to use custom progress animations for each instance of the widget (with up to 30 frames, configurable frame period in msec and highly versatile positioning
- It is possible to independently show or hide both snippet's images/texts and beecon images/texts. This way you can have two images and two text placeholders on widget, for more flexibility in graphic layout
- Independent images/icons for Command Exit Statuses can also been specified. Useful, for example, for displaying different icons according to percentages values returned by command.
- Widget can be clicked on 9 different Hot Spots with a 3x3 grid layout or at specific position with ability to forward the click position to the script
- Multi Click support on widget
- Nice "button-press"-like visual feedback using Gradient fill
- Widget relies also on private general purpose directories "
~/.queen_beecon_dir/
" and "..../MyDocs/.images/queen_beecon_dir/
" as images/icons immediate storage. For easier population via USB of BLUETOOTH File Services. - Widget texts can be formatted through Pango Markup Language
- Widget Size can be customized (Width: 10-800, Height: 10-420 with pixel precision) and position can be fine tuned (X,Y +/- 5pix); Tweaking "
/usr/share/hildon-desktop/transitions.ini
" may also help. (snap_grid_size = 1 & snap_to_grid_while_move = 1
) - Background color for Beecons can be customized for each 4 Command Exit Statuses (with graphical preview)
- Background color for Snippets can be customized (with graphical preview)
- Font Color of both command label and results can be configured (with graphical preview)
- Position and visibility of both command label and results can be configured (Hidden, Top L, Top C, Top R, Center L, Center, Center R, Bottom L, Bottom C, Bottom R) Also, rotation of lables can be changed (0, 90, 180, 270 degrees)
- Font Face, Style and Size of both command label and results can be configured with preview
- Text Justification of both command label and results can be configured (Left, Center, Right, Fill)
- Text Wrapping of results can be enabled
- Command execution can be triggered optionally on widget startup, by manual pressing on Widget, by desktop switching, by periodic updates (0=Manual, 30 s, 1 m, 5 m, 30 m, 1 h, 6 h, 12 h, 1 d, Custom Seconds Interval), by specific DBUS Events on System or Session Bus.which can be filtered through custom rules, by orientation changes, by GPS
- Command execution can be subject to network connection status and widget visibility on current desktop
- Tool includes a powerful Advanced Maintenance Dialog Box for command development and testing (TestDrive mode to display raw output of predefined or user-defined commands)
- A wide set of Parameter Substitution Variables can be passed to executed scripts; variables include: Instance ID, Pressed Hot Spot, Visibility of Widget, Execution Triggering Event, content of Output text, verbose DBUS messages, persistent information stored in widget specific parameter, Proxy related information
- Advanced Maintenance Dialog Box includes extended functionalities like:
- instance export/import with checksum
- command export/import with checksum
- command update with current Test Drive buffer
- clipboard operations
- export/import to/from files for instance data and commands.
- A set of basic Images/Icons for Snippets and Beecon Statuses is included inside the distribution package and installed inside canonical hildon hicolor 48x48 directory
- Inter Process Communication mechanism among QBW instances and with other Applications has been implemented through DBUS methods and signals handling
- It is integrated into the N900 system backup/restore features according to standard specifications as better described in the SDK documentation
- Powerful Application Logging Subsystem
- For Web and Proxy related information and issues please have a look at the parameter substitution documentation and THIS post.
[edit] Donate
[edit] Icons in Package
[edit] Settings and Tools
[edit] Standard Settings and Configuration File
Global and per-instance QBW parameters are stored in this file:
/home/user/.queen_beecon
[edit] Configuration Parameters, Types & Reference
These are the parameters and settings which can be changed for each QBW instance. They are stored independently, for each Instance, inside the configuration file.
Their reference is also useful for Interaction with QBW over DBUS and in particular for parameters amendments/fetching methods:
[edit] Widget Type, Visibility, Status and Associated Command
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.0.1 | widgetType | int32 | 0=Beecon|1=Snippet | Specify the type of the instantiated widget |
2 | 0.1.7 | widgetVisible | int32 | 0=Hidden|1=Visible | Specify if widget components should be visible or not |
3 | 0.1.4 | operationalStatus | int32 | 0=Enabled|1=Disabled | If disabled, the widget will not be subject to update policies and will be iconified on desktop, a subsequent tap on it will revert its status to Enabled |
4 | 0.0.1 | instanceTitle | string | - | Holds the title of the command/script to be executed. If this field is blank, it means that command is still present in the widget instance but not present any more in the list of possible commands. Can still be adited via "Edit Cmd" button and added again to the list. |
[edit] Widget Size & Position Tuning
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.0.1 | widWidth | double | - | This is the Width of the widget |
2 | 0.0.1 | widHeight | double | - | This is the Height of the widget |
3 | 1.3 | - | - | - | This is the X coordinate of the widget, can be dynamically changed |
4 | 1.3 | - | - | - | This is the Y coordinate of the widget, can be dynamically changed |
[edit] Status Background Colors & Images
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.1.0 | hideCanvas | boolean | true|false | If set to true, the geometric canvas of the widget will not be shown |
2 | 1.0.4 | hideClickCanvas | boolean | true|false | If set to true, the geometric canvas of the widget will not be shown on click |
3 | 0.1.9.1 | snippetExtBgRGB | string | #<rrrr><gggg><bbbb> | Background color of Snippets |
0.1.0 | snippetBgRGB | int32 | - | Obsoleted as of release >=0.1.9.1 |
[edit] Beecon Statuses: Images, Scale, Background Color
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.1.0 | beecon_lt0_ImgFilename | string | - | Applies to Beecons; it's the filename of the image to be displayed if script/command returns an Exit Status less than zero |
2 | 0.1.4 | beecon_lt0_ImgZoom | int32 | 0=1:1 1=Fit to widget dimensions 2=5% 3=10% 4=15% ... till 200% | This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
3 | 0.1.9.1 | beecon_lt0_ExtBgRGB | string | #<rrrr><gggg><bbbb> | Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status less than zero |
4 | 0.1.0 | beecon_eq0_ImgFilename | string | - | Applies to Beecons; it's the filename of the image to be displayed if script/command returns an Exit Status equals to zero |
5 | 0.1.4 | beecon_eq0_ImgZoom | int32 | 0=1:1 1=Fit to widget dimensions 2=5% 3=10% 4=15% ... till 200% | This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
6 | 0.1.9.1 | beecon_eq0_ExtBgRGB | string | #<rrrr><gggg><bbbb> | Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status equals to zero |
7 | 0.1.0 | beecon_eq1_ImgFilename | string | - | Applies to Beecons; it's the filename of the image to be displayed if script/command returns an Exit Status equals to 1 |
8 | 0.1.4 | beecon_eq1_ImgZoom | int32 | 0=1:1 1=Fit to widget dimensions 2=5% 3=10% 4=15% ... till 200% | This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
9 | 0.1.9.1 | beecon_eq1_ExtBgRGB | string | #<rrrr><gggg><bbbb> | Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status equals to 1 |
10 | 0.1.0 | beecon_ge2_ImgFilename | string | - | Applies to Beecons; it's the filename of the image to be displayed if script/command returns an Exit Status equals to 2 |
11 | 0.1.4 | beecon_ge2_ImgZoom | int32 | 0=1:1 1=Fit to widget dimensions 2=5% 3=10% 4=15% ... till 200% | This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
12 | 0.1.9.1 | beecon_ge2_ExtBgRGB | string | #<rrrr><gggg><bbbb> | Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status equals to 2 |
13 | 0.1.0 | beecon_idxge2_ImgFilename | string | - | Applies to Beecons; it's the basename of the image to be displayed if script/command returns an Exit Status greater than or equal to 3; Final image filename will be built as <basename>.png.<exit code> (Ex.dice.png.3, dice.png.4 ...)
|
14 | 0.1.4 | beecon_idxge2_ImgZoom | int32 | 0=1:1 1=Fit to widget dimensions 2=5% 3=10% 4=15% ... till 200% | This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
15 | 0.1.9.1 | beecon_idxge2_ExtBgRGB | string | #<rrrr><gggg><bbbb> | Applies to Beecons; it's the Background color to be displayed if script/command returns and Exit Status is greater than or equal to 3 |
0.1.0 | beecon_lt0_BgRGB | int32 | - | Obsoleted as of release >=0.1.9.1 | |
0.1.0 | beecon_eq0_BgRGB | int32 | - | Obsoleted as of release >=0.1.9.1 | |
0.1.0 | beecon_eq1_BgRGB | int32 | - | Obsoleted as of release >=0.1.9.1 | |
0.1.0 | beecon_ge2_BgRGB | int32 | - | Obsoleted as of release >=0.1.9.1 | |
0.1.0 | beecon_idxge2_BgRGB | int32 | - | Obsoleted as of release >=0.1.9.1 |
[edit] Command Title Settings
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.1.0 | cmdImgFilename | string | - | Applies both to Beecons and to Snippets; it's the filename of the image to be displayed as complementary to the Command Title label. Can be used to provide a customized image-based background to the widget. |
2 | 1.0.3 | cmdImgAngle | uint32 | 0=0 Degrees 1=90 Degrees 2=180 Degrees 3=270 Degrees | It's the rotation of the Image associated to the Command Title (0, 90, 180, 270 degrees) |
3 | 0.1.4 | cmdImgZoom | int32 | 0=1:1 1=Fit to widget dimensions 2=5% 3=10% 4=15% ... till 200% | This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
4 | 0.1.3 | cmdImgVisibilityPosition | int32 | 0=Hidden | Sets the Visibility and Position of the image associated to Command Title (Both for Snippets and for Beecons) |
5 | 0.1.9 | cmdExtFont | string | [<family>] [italic] [bold] [<size>] | Font string specification for Command label (Ex. Nokia Sans Italic Bold 12) |
6 | 0.1.9.1 | cmdExtFgRGB | string | #<rrrr><gggg><bbbb> | It's the Foreground color to be used with Command Title label |
7 | 0.1.3 | cmdVisibilityPosition | int32 | 0=Hidden | Sets the Visibility and Position of the Command Title label |
8 | 0.1.9.1 | cmdTextAngle | uint32 | 0=0 Degrees 1=90 Degrees 2=180 Degrees 3=270 Degrees | It's the rotation of the Command Title Label (0, 90, 180, 270 degrees) |
9 | 0.1.0 | cmdJustify | int32 | 0=Left 1=Right 2=Center 3=Fill | It's the justification to be used with Command Title label |
0.1.0 | cmdFgRGB | int32 | - | Obsoleted as of release >=0.1.9.1 | |
0.1.0 | cmdFontName | int32 | - | Obsoleted as of release >=0.1.9 | |
0.1.0 | cmdFontSize | double | - | Obsoleted as of release >=0.1.9 |
[edit] Command Results Settings
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.1.0 | resImgFilename | string | - | Applies both to Snippets; it's the filename of the image to be displayed as complementary to the Command Results label. |
2 | 1.0.3 | resImgAngle | uint32 | 0=0 Degrees 1=90 Degrees 2=180 Degrees 3=270 Degrees | It's the rotation of the Image associated to the Command Results (0, 90, 180, 270 degrees) |
3 | 0.1.4 | resImgZoom | int32 | 0=1:1 1=Fit to widget dimensions 2=5% 3=10% 4=15% ... till 200% | This is the zoom/scale of the previous parameter's image (1:1, Fit, 5%-200%) |
4 | 0.1.3 | resImgVisibilityPosition | int32 | 0=Hidden | Sets the Visibility and Position of the image associated to Command Results (For Snippets) |
5 | 0.1.9 | resExtFont | string | [<family>] [italic] [bold] [<size>] | Font string specification for Results label (Ex. Nokia Sans Italic Bold 12) |
6 | 0.1.9.1 | resExtFgRGB | string | #<rrrr><gggg><bbbb> | It's the Foreground color to be used with Command Results label |
7 | 0.1.3 | resVisibilityPosition | int32 | 0=Hidden | Sets the Visibility and Position of the Command Results label |
8 | 0.1.9.1 | resTextAngle | uint32 | 0=0 Degrees 1=90 Degrees 2=180 Degrees 3=270 Degrees | It's the rotation of the Command Results Label (0, 90, 180, 270 degrees) |
9 | 0.1.0 | resJustify | int32 | 0=Left 1=Right 2=Center 3=Fill | It's the justification to be used with Command Results label |
10 | 1.3 | resWrapLongLines | boolean | false=disabled true=enabled | Enables the text wrapping on long lines with Command Results label |
0.1.0 | resFgRGB | int32 | - | Obsoleted as of release >=0.1.9.1 | |
0.1.0 | resFontName | int32 | - | Obsoleted as of release >=0.1.9.1 | |
0.1.0 | resFontSize | double | - | Obsoleted as of release >=0.1.9.1 |
[edit] Progress Animation
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.1.9.8 | progressAnimationFrames | uint32 | [0-30] | Holds the number of frames to display for the animation; 0 if animations should be hidden MAX 30 |
2 | 0.1.9.8 | progressAnimationTimer | uint32 | [0-20] | Holds the number of milliseconds/50 to wait before drawing next frame (<=4secs) |
3 | 0.1.9.8 | progressAnimationPos | uint32 | 0=Top Left 1=Top Center 2=Top Right 3=Center Left 4=Center 5=Center Right 6=Bottom Left 7=Bottom Center 8=Bottom Right 9=Top Left & Hide Widget 10=Top Center & Hide Widget 11=Top Right & Hide Widget 12=Center Left & Hide Widget 13=Center & Hide Widget 14=Center Right & Hide Widget 15=Bottom Left & Hide Widget 16=Bottom Center & Hide Widget 17=Bottom Right & Hide Widget | Holds the default position index of the animation in the widget and/or hide the widget itself during progress animation |
4 | 1.0.4 | progressAnimationAtClickXY | boolean | true|false | If checked, progress animation is displayed at X,Y position where widget is clicked. |
5 | 0.1.9.8 | progressAnimationBasename | string | - | Holds the basename of the files to load as frames from the relevant directory. Final frame filename will be built as <basename><frame number>.png
|
[edit] Update Policy
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.1.0 | updOnStartup | boolean | true|false | Update policy which defines if widget must be updated on system Startup or on widget Wakeup |
2 | 0.0.1 | updOnDesktop | boolean | true|false | Update policy which defines if widget must be updated when desktop, on which the widget resides, gets displayed either by being dragged or after resume from standby. |
3 | 0.1.9.9 | updOnSight | uint32 | true|false | If set to true , widget content is only updated if on current desktop and visible (if screen locked no update will take place)
|
4 | 0.0.1 | updOnClick | boolean | true|false | Update policy which defines if widget must be updated when it is clicked |
5 | 1.2.10 | multiClick | boolean | true|false | Enable/Disable support for multi click on widget (quicker click response if disabled) |
6 | 1.3 | updOnOrientation | boolean | true|false | Enable/Disable support for Phone Orientation |
7 | 0.0.1 | delayIndex | uint32 | 0=Timer Disabled 1=30 Secs 2=1 Min 3=5 Mins 4=30 Mins 5=1 Hour 6=6 Hours 7=12 Hours 8=1 Day 9=Custom (") | Sets and index of values to use as intervals/periods for command/scripts executions |
8 | 0.1.9.2 | customIntervalSecs | uint32 | <seconds> | Sets the number of seconds to use for Custom Update Intervals |
9 | 0.0.1 | updNeworkPolicy | uint32 | 0=Irrelevant 1=When Connected 2=When Disconnected 3=PassThrough (>= v1.0.6) | Update policy which defines if widget update must be Network dependent and what network condition must trigger the update |
10 | 1.3 | GPSsettings | uint32 | (GPSsettings >> 8) 0=GPS Disabled, 1=GPS Enabled (GPSsettings >> 4 & 0xF) 0=USER_SELECTED, 1=CWP, 2=ACWP, 3=GNSS, 4=AGNSS (GPSsettings & 0xF) 0=DEFAULT, 1=1sec, 2=2sec, 3=5sec, 4=10sec, 5=20sec, 6=30sec, 7=60sec, 8=120sec | See the location API reference |
[edit] DBUS Event Monitoring
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.1.9.4 | updOnDBUS | uint32 | 0=Disabled|1=Enabled | Enables DBUS Event Monitor and Update policy which defines if widget must be updated by any DBUS Event |
2 | 0.1.9.4 | updOnDBUSBus | uint32 | 0=SYSTEM|1=SESSION | Sets which DBUS bus to monitor (System/Session) |
3 | 0.1.9.4 | updOnDBUSMatchRule | string | See Specifications | Specifies the rule to be matched in order for command/script to be executed (Ex.type='signal',path='/com/nokia/mce/signal',interface='com.nokia.mce.signal',member='tklock_mode_ind') |
[edit] Remember Me Value
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
1 | 0.1.9.6 | rememberMe | string | - | Holds status or persistency information across subsequent command executions. - Can be fetched/changed via DBUS method call set/get_param_string string:"rememberMe" string:<remember_this_string> - Can be transferred to command/scrips execution via $QBW_REMEMBER_ME Parameter Substitution- As of release >=1.0.5 Can be also be affected by executed command output. 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 ")"See examples HERE |
[edit] Not Present in Settings Dialog Box
Ref # | Release | Parameter | Type | Possible Values | Description |
---|---|---|---|---|---|
0.0.1 | instanceCmd | string | - | Holds the command/script to be executed |
[edit] Advanced Settings and Tools
Dialog can be reached via QBW Settings:
[edit] Section A: (Command TestDrive)
- This button opens up the About dialog box
- This selector allows to dynamically change the QBW Logging Subsystem Verbosity
- This is the list of Stored Commands that you can Test Drive; upon entering the dialog box, [3] & [8] are initialized with current Instance command.
- Use this button to Test Drive the command currently typed in [6]
- This button will update current instance command with the content of [8] (use it when command is working and thoroughly tested)
- Will copy to clipboard the command currently in [8]
- Will paste the clipboard into [8]
- Read-Write text field; this is the "command input buffer", it is used as extended Test Drive tool for troubleshooting commands with issues
- Read-Only text field; will display the Exit Status & Raw Output of the command in [8] executed by pressing button [4]
[edit] Section B: (Commands/Beecons Import/Export processing)
- Button will export the command currently in [A8]. Result of the export will be stored into [9] text buffer
- Button will import the command currently in [9].
- Will paste the clipboard into [9]
- Will copy to clipboard the [9] text buffer
- Will read from a file into [9]
- Will write to a file the [9] text buffer
- Button will import the Beecon/Snippet Instance Data currently in []; useful for restoring Beecons of for importing Beecons created by others.
- Button will export the Beecon/Snippet Instance Data for the current instance. Result of the export will be stored into [9] text buffer; useful for backup of Beecons of for exporting Beecons to others.
- Read-Write text field; used for temporarily processing export/import of commands and Beecon/Snippet Instance Data
[edit] Parameter Substitution at Command/Script Runtime
QBW can provide a set of specific parameters to the executing script/command. The script will have to identify the placeholders for this extra parameters as better specified in the following table:
Release | Placeholder | Substituted | Description |
---|---|---|---|
0.1.9.1 | $QBW_ID | <QBW Instance ID> | Retreives the QBW Instance ID and substitutes it into the run script |
0.1.9.6 | $QBW_HOTSPOT_PRESS | <Hot Spot Press/Click Position Index> | Retreives the POSITION INDEX where the widget was pressed/clicked and substitutes it into the run script0 = Not Pressed (Other update policy)
|
1.0.3 | $QBW_CLICKS_COUNT | <Number> | Holds the number of times a QBW was pressed/clicked and substitutes it into the run script; useful for handling single/double/triple... clicks and behave accordingly (Tested up to 12 ... :) ) |
1.0.4 | $QBW_IS_FINGER_TAP | true|false | true =Touch Screen was tapped with a fingerfalse =Touch Screen was clicked with stylus |
1.0.3 | $QBW_CLICK_X $QBW_CLICK_Y | <X Coordinate> <Y Coordinate> | Hold exact X and Y coordinates respectively where a QBW was pressed/clicked (Useful for handling different arbitrary/dynamic hotspots on widgets via launched shell scripts; virtually unlimited as handling is left to launched script/program) Ex. x=$QBW_CLICK_X; will echo "HOT SPOT HIT" if widget is clicked in rectangle delimited by p1(x=100,y=100) and p2(x=200,y=200) or "HOT SPOT NOT HIT" otherwise |
1.0.53 | $QBW_WIDTH | <Number> | Holds the current Width of QBW widget; useful for dynamic recalculation of click hotspots |
1.0.53 | $QBW_HEIGHT | <Number> | Holds the current Height of QBW widget; useful for dynamic recalculation of click hotspots |
1.3 | $QBW_POSITION_X $QBW_POSITION_Y | <X Coordinate> <Y Coordinate> | Hold the current X,Y Position of QBW widget |
1.3 | $QBW_ORIENTATION_MODE | <mode> | Holds the current Orientation Mode of QBW widget = landscape , portrait , unknown , landscape (inverted) , portrait (inverted)
|
1.3 | $QBW_ORIENTATION_STAND | <stand> | Holds the current Orientation Stand of QBW widget = off_stand , on_stand
|
1.3 | $QBW_ORIENTATION_FACE | <face> | Holds the current Orientation Face of QBW widget = face_up , face_down
|
1.3 | $QBW_ORIENTATION_X | <X axis value> | Holds the current Orientation X axis of QBW widget = -1 <->+1
|
1.3 | $QBW_ORIENTATION_Y | <Y axis value> | Holds the current Orientation Y axis of QBW widget = -1 <->+1
|
1.3 | $QBW_ORIENTATION_Z | <Z axis value> | Holds the current Orientation Z axis of QBW widget = -1 <->+1
|
1.3 | $QBW_LOCATION_FIX | <string> | Holds the current GPS Position FIX in colon separated string form: status : time : ept : latitude : longitude : eph : altitude : epv : track : epd : speed : eps : climb : epc : gsm_cell_info.mcc : wcdma_cell_info.mcc : satellites_in_view : satellites_in_use If information is not available then nan is shown.See HERE for reference. Ex. 1 : 1288031860 : 0 : 45,999999 : 9,999999 : 4026 : 157 : 20 : 210,490 : 359,990 : 0,11 : 4,43 : 0,00 : 0,03 : 0 : 0 : 10 : 5 |
0.1.9.9 | $QBW_ON_SIGHT | true|false | true =QBW Instance is "ON SIGHT", that is widget is on current desktop and display is not locked or on stand by.false =QBW Instance is not on current desktop and visible or display is off or on stand by
|
1.0.2 | $QBW_IS_CONNECTED | true|false | 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)
|
0.1.9.1 | $QBW_EXEC_REASON | QBW_TIMER_UPDATE | Script is run due to a Timer event |
0.1.9.1 | $QBW_EXEC_REASON | QBW_STARTUP_UPDATE | QBW instance is starting up and script run |
0.1.9.1 | $QBW_EXEC_REASON | QBW_SETTINGS_SAVE_RUN | Save and Run is pressed in Settings Dialog Box and script run |
0.1.9.1 | $QBW_EXEC_REASON | QBW_TEST_DRIVE | Script is run via Test Drive advanced dialog box |
0.1.9.1 | $QBW_EXEC_REASON | QBW_WAKEUP_CLICK | A disabled instance is waken up by a click on icon and script is run |
0.1.9.1 | $QBW_EXEC_REASON | QBW_CLICK | An instance is clicked and script is run |
0.1.9.1 | $QBW_EXEC_REASON | QBW_DESKTOP_SWITCH | The desktop, on which and instance is displayed, is switched/scrolled and script is run |
0.1.9.1 | $QBW_EXEC_REASON | QBW_CONNECTION_EVENT | A connection event takes place and script is run |
0.1.9.1 | $QBW_EXEC_REASON | QBW_DBUS_SET_PARAM_UPDATE | A set_param DBUS method is called and "update content" (script run) is explicitly required |
0.1.9.1 | $QBW_EXEC_REASON | QBW_DBUS_WAKEUP | A wakeup DBUS method is called and script is run |
0.1.9.1 | $QBW_EXEC_REASON | QBW_DBUS_UPDATE_CONTENT | "update content" DBUS method is called and script run is explicitly required |
0.1.9.1 | $QBW_EXEC_REASON | QBW_DBUS_EXEC | "exec" DBUS method is called and external script run is explicitly required |
0.1.9.4 | $QBW_EXEC_REASON | QBW_DBUS_MONITOR | Execution of script was triggered by DBUS Match Rules in DBUS Event Monitoring |
1.3 | $QBW_EXEC_REASON | QBW_ORIENTATION_MONITOR | Execution of script was triggered by phone Orientation Change if enabled in QBW instance configuration |
1.3 | $QBW_EXEC_REASON | QBW_LOCATION_MONITOR_FIX | Execution of script was triggered by FIX change in GPS Location subsystem if enabled in QBW instance configuration |
0.1.9.4 | $QBW_DBUS_VERBOSE_OUTPUT | signal|method call|method return|error|unknown sender=<sender> -> dest=<destination> path=<path> interface=<interface> member=<member>\n <type1> <param1>\n <type2> <param2>\n <typeX> <paramX> | Extended values returned by DBUS Monitor for Matched Rule. Example:signal sender=:1.31 -> dest=(null destination) path=/com/example/app/Signal; interface=com.example.app.Signal; member=Test
|
1.0.6 | $QBW_PREVIOUS_EXIT_STATUS | <last executed command's Exit Code> | Exit status of the last previous executed command |
0.1.9.5 | $QBW_CURRENT_RESULTS_TEXT | <current content of results text> | Current content of results text even if label is hidden. Useful for holding and processing previous state conditions across command executions |
0.1.9.6 | $QBW_HTTP_PROXY | <host>:<port> | Returns the current HTTP Proxy as entered into parameters for current active Internet Connection |
0.1.9.6 | $QBW_HTTPS_PROXY | <host>:<port> | Returns the current HTTPS Proxy as set into parameters for current active Internet Connection |
0.1.9.6 | $QBW_FTP_PROXY | <host>:<port> | Returns the current FTP Proxy as set into parameters for current active Internet Connection |
0.1.9.6 | $QBW_SOCKS_PROXY | <host>:<port> | Returns the current SOCKS Proxy as entered into parameters for current active Internet Connection |
0.1.9.6 | $QBW_RTSP_PROXY | <host>:<port> | Returns the current RTSP Proxy as set into parameters for current active Internet Connection |
0.1.9.6 | $QBW_IGNORE_HOSTS_PROXY | <host1>;<host2>;<host...> | Returns the current list of host which do not require a proxy as set into parameters for current active Internet Connection |
0.1.9.6 | $QBW_AUTO_CONFIG_PROXY_URL | <URL> | Returns the current Proxy configuration URL as set into parameters for current active Internet Connection |
0.1.9.6 | $QBW_REMEMBER_ME | <string> | Holds status or persistency information stored in configuration via Settings Dialog, DBUS method call or Command Output - Can be fetched/changed via DBUS method call set/get_param_string string:"rememberMe" string:<remember_this_string> - Can be transferred to command/scrips execution via $QBW_REMEMBER_ME Parameter Substitution- As of release >=1.0.5 Can be also affected by executed command output. 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 ")"See examples HERE |
[edit] QBW Instance Timer Logic
The Timer logic for each instance for actions to be run periodically is programmed as follows:
- The timer of each instance is reset and re-armed every time the widget is Startup (System Boot or QBW release upgrade)
- The timer of each instance is reset and re-armed every time it is changed in the Settings dialog box and it is different from its previous value
- If a widget is disabled, either by changing is "Status" in the Settings dialog box or via DBUS method
sleep
, its timer is disabled - If a widget is re-enabled, either by changing is "Status" in the Settings dialog box or via DBUS method
wakeup
, its timer is reset and re-armed - If Settings Parameter
delayIndex
has been changed via DBUS set_param_uint32 method, the relevant timer must be explicitly reset and rearmed via DBUS methosreset_rearm_timer
- The timer is reset and re-armed every time a new QBW instance is imported via Advanced dialog box and relevant parameter is set
[edit] System Backup/Restore Integration
As of release >=0.1.8 QBW is integrated into the N900 system backup/restore features according to standard specifications as better described in the SDK Using Backup Application
/etc/osso-backup/applications/queen-beecon.conf
file is:
<backup-configuration> <locations> <location type="file" category="settings">$HOME/.queen-beecon</location> <location type="dir" category="documents">$HOME/MyDocs/.images/queen_beecon_dir</location> <location type="dir" category="documents">$HOME/.queen_beecon_dir</location> </locations> </backup-configuration>
[edit] Application Logging Subsystem
As of release >=1.0.2, QBW employs a powerful Application Logging subsystem.
Log file is:
~/.queen_beecon_dir/queen_beecon.log
Time in logfile is ISO 8601 encoded string, relative to the Coordinated Universal Time (UTC)
Logging is disabled by default.
[edit] Enabling Logging
Logging can be enabled in different ways:
- Dynamically via QBW DBUS method call
run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:<vX>
-
<idX>
is the QBW Instance ID of and existing QBW instance (no matter which one as logging is global) -
<vX>
is the required verbosity (Allowed values are:v0 v1 v2 v3 v4
from minimum verbosity to maximum) - Example:
run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid0 oh.no.more.qbw.logger_action string:v4
- WARNING! Due to performance reasons, v0 v1 v2 v3 logging verbosity is asynchronous, meaning that the log file will not be instantly updated as soon as a new information is logged.
- If you specifically need an up to date log file condition, you need to specifically issue a:
run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:flush
v4
logging verbosity is synchronous by design and logs a lot of information thus causing system slow down side effects at time and~/.queen_beecon_dir/
directory/file system filling quite quickly. Keep file system space monitored if you need this level of verbosity!
- Statically via condition file presence
- If you need to setup permanent verbosity to a specified level, also to monitor QBW startup, just go to directory:
~/.queen_beecon_dir/
- and issue command:
touch queen_beecon.log.<vX>
- where
<vX>
is the required verbosity (Allowed values are:v0 v1 v2 v3 v4
from minimum verbosity to maximum) - Example:
touch queen_beecon.log.v4
- Static Logging is activated every time the Phone/Widget is restarted
[edit] Changing Logging Verbosity
Logging verbosity can be dynamically changed by calling the following DBUS method call:
run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:<vX>
-
<idX>
is the QBW Instance ID of an existing QBW instance (no matter which one as logging is global) -
<vX>
is the required verbosity (Allowed values are:v0 v1 v2 v3 v4
from minimum verbosity to maximum)
[edit] Disabling Logging
Logging can be dynamically disabled by calling the following DBUS method call
run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:disable
-
<idX>
is the QBW Instance ID of an existing QBW instance (no matter which one as logging is global)
[edit] Resetting Log File
Log file can be dynamically reset to empty status by calling the following DBUS method call
run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.logger_action string:reset
-
<idX>
is the QBW Instance ID of an existing QBW instance (no matter which one as logging is global)
[edit] Interaction with QBW over DBUS
[edit] Overview
As of releases newer than 0.1.7, a new Inter Process Communication mechanism among QBW instances and with other Applications has been implemented.
Through the standard DBUS interface, both at the OS-shell and at different programming environments level, QBW instances can be controlled/accessed and mutual interaction can be guaranteed, thus allowing a set of extended functionalities like:
- Give impulse to other Beecons for content update
- Give impulse to other Beecons for layout update
- Give other Beecons one-shot alternative scripts to execute
- Remotely change QBW settings
- Retrieve other beecon's last executed commands exit status
- Provide to non graphical programs and daemons a suitable interface for displaying information on precustomized beecons on screen (for example Dbus Scripts for displaying events on the system/session DBUS like cell IDs changes, available WLANs and the like)
I encourage you to suggest possible enhancements or wishlists in this area and report them in the main TALK thread
[edit] QBW Instance ID
Queen Beecon Widget's Instance Id, needed for every reference in DBUS method calls, can be found at the very top of the Settings dialog box:
[edit] DBUS Specifications
QBW_DBUS_SERVICE ="oh.no.more.qbw" [Name of D-Bus service] QBW_DBUS_PATH ="/oh/no/more/qbw<idX>" [Name of Object Path] QBW_DBUS_IFACE ="oh.no.more.qbw" [Name of D-Bus interface]
- <idX> is the QBW Instance ID
[edit] DBUS Methods & Parameters
QBW implements the following list of methods to trigger specific actions:
WARNING!!! Methods' Parameters are case-sensitive
Method | Input Params | Returns | Description |
---|---|---|---|
logger_action | string:'disable | v0 | v1 | v2 | v3 | v4 | reset | flush' | Performs the following actions on the qbw logger subsystem:disable Disables loggingv0-4 Sets Logger Verbosity to specified depth levelreset Resets the logfile queen_beecon.log in directory /home/user/.queen_beecon_dir to emptyflush Flushes content of logfile queen_beecon.log
| |
dbus_method_monitor | string:'on | off' | Toggle on-screen yellow notification message of incoming DBUS method requests for destination Instance (for debug purposes). Default=OFF | |
reset_rearm_timer | Reset and rearm timer for periodically auto-updating QBW, needed to be explicitly called if parameter delayIndex has been changed via DBUS set_param_uint32 method
| ||
reset_rearm_connection | Reset and rearm the network connection subsystem, needed to be explicitly called if parameter updNeworkPolicy has been changed via DBUS method
| ||
reset_rearm_location | Reset and rearm the GPS location subsystem, needed to be explicitly called if parameter GPSsettings has been changed via DBUS method
| ||
reset_rearm_orientation | Reset and rearm the Phone Orientation subsystem, needed to be explicitly called if parameter updOnOrientation has been changed via DBUS method
| ||
reset_rearm_dbus_monitor | Reset and rearm the DBUS Monitor subsystem, needed to be explicitly called if parameters updOnDBUS , updOnDBUSBus and updOnDBUSMatchRule have been changed via DBUS method
| ||
show | Give show impulse to a QBW | ||
hide | Give hide impulse to a QBW | ||
wakeup | Give wake up impulse to a QBW and update content and layout | ||
sleep | Give sleep/disable/minimize impulse to a QBW | ||
update_content | Give impulse to a QBW for content update | ||
update_layout | Give impulse to a QBW for layout update | ||
exec | string:'<command|script>' | Give other QBWs one-shot alternative scripts/commands to execute and update content accordingly | |
set_param_string | string:'<param name>' string:'<new value>' string:'' | 'update_content' | 'update_layout' | Change and store QBW settings parameter of type string | |
set_param_int32 | string:'<param name>' int32:'<new value>' string:'' | 'update_content' | 'update_layout' | Change and store QBW settings parameter of type int | |
set_param_uint32 | string:'<param name>' uint32:'<new value>' string:'' | 'update_content' | 'update_layout' | Change and store QBW settings parameter of type uint | |
set_param_double | string:'<param name>' double:'<new value>' string:'' | 'update_content' | 'update_layout' | Change and store QBW settings parameter of type double | |
set_param_boolean | string:'<param name>' boolean:'<new value>' string:'' | 'update_content' | 'update_layout' | Change and store QBW settings parameter of type boolean | |
get_param | string:'<param name>' | string:'value' | Get QBW settings parameter |
is_on_sight | string:'value' | Get current widget On Sight statustrue =QBW Instance is "ON SIGHT", that is widget is on current desktop and display is not locked or on stand by.false =QBW Instance is not on current desktop and visible or display is off or on stand by
| |
get_current_results_text | string:'value' | Get current content of results text | |
set_position | int32:'<X-coord>' int32:'<Y-coord>' | Set QBW position on desktop | |
get_position | int32:'<X-coord>' int32:'<Y-coord>' | Get QBW position on desktop | |
get_exit_status | int32:'<ExitStatus>' | Retrieve other QBW's last executed commands exit status |
[edit] DBUS Signals & Parameters
QBW issues the following list of signals to notify the "world" about predefined conditions and events. They will be emitted on the bus according to the following specifications:
PATH ="/oh/no/more/qbw<idX>" INTERFACE ="oh.no.more.qbw" MEMBER ="<signal name>" [Signal column in below list] PARAMETERS ="<parameter>" [Broadcast column in below list]
- <idX> is the QBW Instance ID
Signal | Broadcasts | Description |
---|---|---|
signal_content_update | int32:'<ExitStatus>' | Issued when QBW Instance <idX> executes and returns an exit status |
[edit] Interacting with QBW from the Shell
This is the template to use for calling the QBW instance methods:
- For methods which DO return values:
run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.<method> <type1>:"<param1>" <type2>:"<param2>" ... <typeN>:"<paramN>"
WARNING!!! Hildon-home is quite sensitive to long running commands inside Queen Beecon Widget. If you believe that the dbus-send command is going to take much time (say >2/3 secs) it is better if you add the As of >=0.1.9.3 release, asynchronous execution of commands/scripts obsoletes previous statement.
--reply-timeout=<milliseconds>
to the dbus-send list of parameters.
- For methods which DO NOT return values:
run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw<idX> oh.no.more.qbw.<method> <type1>:"<param1>" <type2>:"<param2>" ... <typeN>:"<paramN>"
Where:
-
<idX>
is the QBW Instance ID -
<method>
is the Method to be called for the specific QBW Instance -
<typeX>
and<paramX>
are the parameter type and value as per the specific Method Synopsis
For example:
run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid0 oh.no.more.qbw.set_param_string string:"cmdImgFilename" string:"new_image_filename.png" string:"update_layout"
or
run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid0 oh.no.more.qbw.dbus_method_monitor string:'on'
or
run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid0 oh.no.more.qbw.get_position
[edit] QBW DBUS Events Monitor and Interceptor
[edit] Overview
As of releases newer than 0.1.9.3 QBW is now able to monitor and intercept DBUS events (like signals, methods, errors) issued by the system or other applications. For example:
- Keyboard lock/unlock
- Slide open/close
- Bluetooth connections
- GSM cells change
- WIFI networks
- Battery & Charging status
- Changes in device orientation
- Incoming Calls
- Incoming SMS/IM
These events will then trigger the execution of a script which can be programmed to analyze and parse the intercepted event and perform actions accordingly.
The configuration is performed via the DBUS Event Monitoring section in Settings Dialog Box:
- States if DBUS Monitoring is enabled or disabled for this QBW
- Specify whether to monitor SYSTEM or SESSION BUS
- Is the Match Rule as per this DBUS specifications
I encourage you to suggest possible enhancements or wishlists in this area and report them in the main TALK thread
[edit] Example
We will monitor the SYSTEM BUS with the following Match Rule:
type='signal',interface='com.example.app.Signal'
The cmd/script which will be executed when the event is intercepted is the following:
echo "$QBW_ID $QBW_EXEC_REASON"; echo '$QBW_DBUS_VERBOSE_OUTPUT'; exit 2
This is a simulation of the following sample DBUS command:
run-standalone.sh dbus-send --system --type=signal /com/example/app/Signal com.example.app.Signal.Test string:'Oh' string:'No!!!' string:'More QBWs!!!' boolean:true uint32:10000
And here's the output:
[edit] Known Issues
TBD
[edit] Bug Tracker/Reports
[edit] Feature Requests
[edit] Now-Brewing
Nothing
[edit] Change Log
Main article: Queen BeeCon Widget/Changelog
[edit] TODO list
- Bugfixing and Improving Stability
- Instance Import/Export optimization and simplification
[edit] HOW-TOs & FAQs
[edit] Create a new Basic Instance of QBW
After you have installed QBW package, these are the steps to create and start customizing a new Instance of the widget.
- Tap on an empty area of the Desktop and gear icon for configuration will pop up in the upper right area of the screen
- Click on the "Add widget" button
- Scroll selector till you find "Queen Beecon Widget" and click on it
- A new instance of the widget will be created with very basic default configuration
- Now if you click on the Settings Wrench Icon you'll reach the Settings Dialog for customization
[edit] How and Where to store Icons and Images for your Beecons
If no PATH is specified in the Settings for Icons and Images, QBW will look in directories on the phone's internal memories in the following order:
- First, the directory accessible via Bluetooth/PC Suite/OVI Suite or USB (Storage Mode).
/home/user/MyDocs/.images/queen_beecon_dir/
- WARNING!!! When phone is connected via USB in Storage Mode this directory is not available to the Widget; so if you plan to use QBW when in Storage Mode use directory in "Second" point.
- Second, the directory:
/home/user/.queen_beecon_dir
- Third, the directory where QBW's Package Icons are stored:
/usr/share/icons/hicolor/48x48/hildon/
If you want to replace a partial/complete set of QBW's Package Icons just create Icons/Images with same name in directories "First" or "Second"
If the specified image is not found, the following icon will appear:
[edit] Create an Exit Status driven Multi Images Beecon
Naive Dice Roller is a good place to start looking for such implementation.
[edit] Scripts/Commands with long output
Some scripts/commands may create multiple lines which are too long to be displayed on a single line. The widget will not wrap these. In order to wrap them you can use the fold command:
command-that-produces-long-lines | fold -s -w 80
The 80 in that instance is the maximum length of the line, which you can change. The -s option makes fold word wrap with spaces. More information is available from the fold man page.
[edit] Backup all Widget Instances
Apply Export/Save/Backup Procedure for Beecon Instance Data for every Widget Instance you want to Backup
Save content (Beecons' Images) of directories:
/home/user/.queen_beecon_dir /home/user/MyDocs/.images/queen_beecon_dir/
[edit] Restore all Widget Instances
Apply Import/Load/Restore Procedure for Beecon Exported Instance Data for every Widget Instance you want to Restore
Restore content (Beecons' Images) of directories:
/home/user/.queen_beecon_dir /home/user/MyDocs/.images/queen_beecon_dir/
[edit] Import/Load/Restore Procedure for Beecon Exported Instance Data
[edit] Export/Save/Backup Procedure for Beecon Instance Data
[edit] Copy Exported Instance Data from Browser to Phone's Clipboard
[edit] Reset QBW to Default Configuration/Commands
Open up X Terminal (or SSH/Putty into N900) and issue the following command:
sudo gainroot (only if you are not already root) rm /home/user/.queen_beecon killall hildon-home
[edit] Completely remove QBW from your N900
Open up X-Terminal (or SSH/Putty into N900) and issue the following command
sudo gainroot
(only if you are not already root)
dpkg -P queen-beecon rm /home/user/.queen_beecon rm -r /home/user/.queen_beecon_dir rm -r /home/user/MyDocs/.images/queen_beecon_dir/
[edit] Run every Desktop Application with different Icons/Sizes buttons
You can run every desktop application with a script like this and just change the image and size of the Beecon to one of your choice:
dbus-send --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:"<application name here>"
where <application name here>
is application name that you can find in /usr/share/applications/hildon
directory without the trailing .desktop
Example for launching the image viewer:
/usr/bin/dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:image-viewer
[edit] Run Application in xterm with different Icons/Sizes buttons
You can run every application in xterm and customize a button on Desktop to launch it.
[edit] Create invisible clickable Hot Spots on your Desktop Background Image to launch Applications or perform Actions
See Here and follow-up posts.
[edit] Relocate/Rotate a QBW widget on a Keyboard slide event
See Here and follow-up posts.
[edit] FAQs
[edit] Could you make an easy way to install new beecons/scripts please?
... perhaps define a standard folder structure inside a compressed file, perhaps some install directions file inside to guide installation, and use a custom extension; kinda like how Firefox does with XPIs, and add some GUI to install/uninstall them
This is a good question and I still haven't figured out a good answer.
Here are a few issues I mused about.
- QBW is not a standalone application; it is a Hildon-Desktop/Home plugin (a library) with plenty of constraints and with a certain fixed integration with the whole system. Messing with it it's a pain in the a**
- I tried to find a simple operational way to achieve what you are asking for, here, but to my knowledge and due to the nature of HD-HH I couldn't find any better, faster, simpler, cuter or leanier way.
- QBWs, which get shared by the community or myself, are just mockups or proof of concepts which are meant to be "abused", "mishandled" and further customized to match each one's expectations and visual/functional taste
- The complexity of some QBWs requires manual intervention to adapt to each and everyone's environment (Ex. the QBW Instance ID used for inter-widget communication varies on each machine). To my knowledge, the automation of this adaptation process is very time consuming and far from being error-proof. I preferred to focus my effort in the most interesting area of functionalities
- QBW is a very powerful tool and can do a lot of good and nasty things... so: the more you expose its behaviour and the more "open" the code and effects will be
- Maemo ain't for doubleclickers
I know there is no proper answer here...
[edit] Easter Eggs
[edit] Magic Word for bypassing Export/Import Instance Data CheckSum protection
Use the Source ... Luke! ;) or ask politely!
[edit] Troubleshooting
[edit] Startup
If you are having issues at widget startup because of improper "Update on Widget/System Startup" settings:
- Open up X Terminal (or SSH/Putty into N900) and issue the following commands:
sudo gainroot
(only if you are not already root)
vi /home/user/.queen_beecon
- find
updOnStartup=true
(all instances supposed to be culprits) - Set it to false:
updOnStartup=false
- Save file
- Immediately issue:
killall hildon-home
- hildon-home will automatically restart and widgets won't run any more at startup
More generally just open /home/user/.queen_beecon
and change the Update Policies of your offending instance as per THIS section's specifications
[edit] Running
[edit] QBW Warning! Possible Pango Markup Language inconsistent/unterminated Tag!
If you are using Pango Markup Language tags as output from your scripts, make sure all Tags are correctly written/spelled and terminated. Make also sure that there is an explicit newline at the very end of your output.
If you need to display the following special characters:
These NEED to be escaped:
- The less-than character (<) starts element markup (the first character of a start-tag or an end-tag). Escape:
<
- The greater-than character (>) ends a start-tag or an end-tag. Escape:
>
These MIGHT NEED to be escaped:
- The ampersand character (&) starts entity markup (the first character of a character entity reference). Escape:
&
- The double-quote character (") can be symbolised with this character entity reference when you need to embed a double-quote inside a string which is already double-quoted. Escape:
"
- The apostrophe or single-quote character (') can be symbolised with this character entity reference when you need to embed a single-quote or apostrophe inside a string which is already single-quoted. Escape:
'
[edit] Beecon seems to hang when fetching data or accessing the Internet/Network
Please have a look at the thread of Timeout and Proxy related issues.
You can also have a look at THIS section of the WIKI for proxy related information
[edit] Advanced Settings and Tools Dialog Box
[edit] QBW Warning! Expected/Shown Command Output mismatch. Possible charset different from UTF-8!
If you press TestDrive for a command and the Exit Status and Command RAW Output Buffer still displays "Exit Status & Command RAW Output will be displayed HERE" then maybe your output contains a charset different from UTF-8.
To have the Command Output properly displayed, try to append "<code.| iconv --from-code=ISO-8859-1 --to-code=UTF-8</code>". For example:
... command1 | iconv --from-code=ISO-8859-1 --to-code=UTF-8
[edit] WARNING! Bad Checksum! Possibly corrupt Import Instance/Command Data!
Every exported QBW Instance/Command Data is protected by a checksum value which is stored in the header part of the export.
There are a few reason why I chose to do that:
- To preserve integrity of what the author of the QBW created (and supposedly assumed "working")
- To prevent unwanted changes to the data due to clipboard copy/paste operations
- To ease the QBW exported data import process, and avoid some extra effort in coding import/export routines, by using the
g_key_file_*
APIs
Exported data is not "pure" configuration text; it is "meta-text" with some extra escape characters (Newline, tab, carriage return, backslash, blank which are escaped as \n, \t, \r, \\, \s respectively)
This is why directly changing the data inside the import/export buffer or in a text editor before importing is strictly discouraged (unless, of course, you know what you are doing and side effects)
[edit] Published Beecons, Scripts & Commands
Main article: Queen BeeCon Widget/BeeCons, scripts and commands
- This page was last modified on 11 October 2021, at 09:57.
- This page has been accessed 706,564 times.