![]() |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
As I told you, with 1 line of shell script and use of Param Subst you can just handle your scenario. Something like this... (but by heart, not tested on phone shell) Code:
xxx=`echo '$QBW_DBUS_VERBOSE_OUTPUT' | tail -1 | cut -d \" -f 2`;if [ "$xxx" == "locked" ] ; then <action_if_locked>; else <action_if_unlocked>; fi |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Code:
xxx=`echo '$QBW_DBUS_VERBOSE_OUTPUT' | tail -1 | cut -d \" -f 2`;if [ "$xxx" == "locked" ] ; then <action_if_locked>; else <action_if_unlocked>; fiinside "unlocked" never gets executed:rolleyes: I'll get back to you with code:) |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
1. not setting @sight on at all resulting in execution of commands not intended to run when locked. 2. if @sight is set then all I can do is use $QBW_ON_SIGHTto check its status but that won't help me get it to run at regular intervals. Look at my code and intended outcome, you will get my point:) |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
Commands gets executed @timer and @DBUS lock/unlock event Code:
$QBW_EXEC_REASON == QBW_TIMER_UPDATE? |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Perfect ! will get on to implementing this idea asap.
THANKS!! you have been verrry helpful and patient! EDIT : One question though during locked phase there still would be update_interval execution right? possibly causing override;). Let me put your idea in action first I think there maybe a way out:) EDIT 2 : Got it! If i write the dbus status to a file then check it under timer_update, appropriate exit can be planned without any need for @sight here.Thanks:D |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
$QBW_REMEMBER_ME or $QBW_CURRENT_RESULTS_TEXT (echo locked/unlocked to your widget, if you don't need any output to your widget) :cool: |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
This tool is one of the most powerful things I've ever seen on my N900...
Creating new widgets using Queen BeeCon Widget is my new hobby! This are my first creations: http://torpedo48.files.wordpress.com...714-175313.png The clocks buttons let me choose the CPU frequency on-the-go, the two snippets under them monitor the actual frequency and the biggest beecon on the left changes its color in order to alert me when the CPU is overclocked: http://torpedo48.files.wordpress.com...714-175323.png The monitoring widgets are all updated by the clocks buttons. They're all very simple, but they looks great on the N900's desktop! I just want to say thank you to No!No!No!Yes! for this amazing app, it's as entertaining as a game and as powerful as the Terminal itself, never seen anything like that. :eek: Thank you. |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
2 Attachment(s)
No!No!No!Yes! - Thanks for you great work.
I have used Hide User Agent for some time (my thanks to the author) but i needed to switch between 3 or 4 microb user agent strings. Then i saw your post #342 - Poker Dice Here!!! - and thought that using dbus commands i could do some kind of user agent swither for microb. This was the result: http://i32.tinypic.com/345be2q.jpg There are 4 snippets named Ua-N900, UA-Iphone, UA-Null and UA-Droid. To change the active microb user agent just touch the respective snippet. The current user agent is shown by the red color of the snippet. The user agent can be switched either with microb running or not running. The current user agent strings are: UA-N900 - "Mozilla/5.0 (X11; U; Linux armv7l; en-GB; rv:1.9.2b6pre) Gecko/20100318 Firefox/3.5 Maemo Browser 1.7.4.8 RX-51 N900" UA-Iphone - "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7C97d Safari/528.16" UA-Null - "" UA.Droid - "Mozilla/5.0 (Linux; U; Android 2.1; en-us; dream) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2" To create the widgets: 1 - Copy the 4 user.xxx files in useragents.zip to: /home/user/MyDocs/.images/queen_beecon_dir/ 2 - Create 4 QBW instances 3 - For each QBW instance import the UA-xxx.txt file in qwbUA.zip and take note of the respective Instance ID 4 - "Edit Cmd" for each QBW instance and replace the IDs taking in consideration that in my case: id2 is UA-N900 id3 is UA-Iphone id4 is UA-Null id5 is UA-Droid instanceTitle=UA-N900 instanceCmd=run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid2 oh.no.more.qbw.set_param_string string:"snippetExtBgRGB" string:"#ffff00000000" string:"update_layout";run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid3 oh.no.more.qbw.set_param_string string:"snippetExtBgRGB" string:"#000000000000" string:"update_layout";run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid4 oh.no.more.qbw.set_param_string string:"snippetExtBgRGB" string:"#000000000000" string:"update_layout";run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid5 oh.no.more.qbw.set_param_string string:"snippetExtBgRGB" string:"#000000000000" string:"update_layout";cp /home/user/MyDocs/.images/queen_beecon_dir/user.n900 /home/user/.mozilla/microb/user.js ; pkill -f browserui It works well for me but i am still testing so use this with caution. Enjoy :) |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
I'll give it a mention in the WIKI if you OK with it. |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
Feel free to enhance / change anything. |
Simple Calendar Task widget -- using QBW
2 Attachment(s)
With the existing calendar widgets there is always the drawback that tasks are not shown, or only one of them/the number of tasks. As the tasks are stored in a sqlite database and can be easily drawn from this database, I decided to create myself a simple widget showing the next tasks: the widget in the red box in the screenshot attached.
It's simple and displays the next 5 tasks with the following command, each task in a separate line: Code:
sqlite3 /home/user/.calendar/calendardb 'select substr(Summary,0,30) from Components where ComponentType="2" order by DateStart limit 5;You can modify the number of tasks shown by changing the number after "limit", and you can change the line length of the ouput lines by modifying the "30" in the substr(....,30) call in the code snippet. Disclaimer: Please be aware that this code snippet/widget accesses your calendar database. If you don't change the command, it shoud be a harmless read-only access, but there may be some issues when this command and the calendar app access the database at the same time. I will take no responsibility for your calendar databases if you use this command/widget! Have fun! Goetz |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
for ua changer my id are this ;
android id14 iphone id15 n900 id16 null id17 but not sure how im editing the command ? i did this but correct ? for android used in order to replace ids as id14 id15 id16 id17 for iphone used in order to replace ids as id15 id16 id17 id14 for n900 used in order to replace ids as id16 id17 id14 id15 for null used in order to replace ids as id17 id14 id15 id16 cheers , moepda |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
I'm afraid your substitution will not work. In my case i have: id2 is UA-N900 id3 is UA-Iphone id4 is UA-Null id5 is UA-Droid in your case you have: id16 is UA-N900 id15 is UA-Iphone id17 is UA-Null id14 is UA-Droid so please try to edit all UA-xxx qbw instance commands replacing: id2 with id16 id3 with id15 id4 with id17 id5 with id14 for instance for UA-N900 after edit you shall have: instanceTitle=UA-N900 instanceCmd=run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid16 oh.no.more.qbw.set_param_string string:"snippetExtBgRGB" string:"#ffff00000000" string:"update_layout";run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid15 oh.no.more.qbw.set_param_string string:"snippetExtBgRGB" string:"#000000000000" string:"update_layout";run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid17 oh.no.more.qbw.set_param_string string:"snippetExtBgRGB" string:"#000000000000" string:"update_layout";run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbwid14 oh.no.more.qbw.set_param_string string:"snippetExtBgRGB" string:"#000000000000" string:"update_layout";cp /home/user/MyDocs/.images/queen_beecon_dir/user.n900 /home/user/.mozilla/microb/user.js ; pkill -f browserui Hope i was clear enough. Please report if it works as expected. |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
many thanks sacal :) yes it now works perfectly ! your help is much appreciated :)
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
1 Attachment(s)
The POWER of QBW!
Some of the widgets I have for overclocking:
So how many widgets I am using to achieve all this............... ONE !!!! :p:D Attachment 12294 Note: Clicking at center of the widget updates the values (temperature & max clock) without changing any profile HowTo : Download & Setup |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
I'll wait of your code... its a really .great widget..:cool:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
Quote:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
I`m new Linux fan as well ;)
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
hi ,wondering how to make a script to run this command as root with qbw ?
Code:
cd /home/opt/scripts/ sh OptimizeN900many thanks for any help offered :) moepda |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Guys I now updated the above post to link to download.Hope you like it:)
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Wow, how did I ignore this application for so long.. I'm really impressed.
Particulary interested in having it for use in the car.. http://i49.tinypic.com/2n1yz5h.png I've just set up the contacts, conversations and media player shortcuts on the desktop as per the great instructions.. I don't use sygic.. is there a way I can set this to Web browser? (I can create the .png file for it myself) just need to know what code to change? Many thanks! |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Nice work techie much appreciated , am already using the under/overclock script but like your widget looks good :) you mentioned suggestions maybe requests so please see my post up the page #382 , possible?
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Guys, if you like Queen Beecon Widget please vote for it in current Maemo Coding Competition in this thread
Ciao and thank you, No!No!No!Yes! |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
voted for QBW No!No!No!Yes! and was an easy vote to cast ! maybe you could point me in the right direction of making a widget for my post #382 up the page ? many thanks moepda |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
Code:
echo '/home/opt/scripts/OptimizeN900' | sudo gainroot |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
[exit code = 27] Roo on widget on desktop says Code:
[!?7f00] root shell enabled |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Edit:
Ah was just about to post the command moepda:) For the above command by No!No!No!Yes! make sure you have OptimizeN900 set as executable |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
will set executable and post back , cheers techie
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
Check these posts http://talk.maemo.org/showpost.php?p...&postcount=385 http://talk.maemo.org/showpost.php?p...&postcount=377 http://talk.maemo.org/showpost.php?p...postcount=1692 |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
set executable but still no action
cd /home/opt/scripts/ sh OptimizeN900 works 100% on xterm but nothing on widget :( |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Did you use chmod +x to set file executable?
Then even this should work Code:
/home/opt/scripts/OptimizeN900 |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Quote:
|
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
Run this in terminal
Code:
chmod +x /home/opt/scripts/OptimizeN900Code:
/home/opt/scripts/OptimizeN900For widget use the same command now Code:
/home/opt/scripts/OptimizeN900 |
Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
really confused now , chmod used and confirmed on winscp that properties had changed but on confirm command replies
-sh: /home/opt/scripts/OptimizeN900 : not found |
| All times are GMT. The time now is 11:50. |
vBulletin® Version 3.8.8