maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread (https://talk.maemo.org/showthread.php?t=45388)

No!No!No!Yes! 2010-04-18 19:32

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by No!No!No!Yes! (Post 612667)
You are right... I promised about "TVRage" beecon but ... forgot!!! Sorry!
Next pop from my stack.

Stay tuned.

OK ... TVRage Beecon is now spotted into the wild :cool:
WIKI will soon be updated accordingly.

UNderworld 2010-04-19 13:48

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
hi is there any way I can back up my widgets etc without using the phone backup function??
please please full command

No!No!No!Yes! 2010-04-19 14:26

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by UNderworld (Post 617675)
hi is there any way I can back up my widgets etc without using the phone backup function??
please please full command

Sure,
See HOWTO procedures in the WIKI

UNderworld 2010-04-19 14:50

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

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

I have tried this before posting but did not work..

Nokia-N900-02-8:~# cp -r /home/user/.queen_beecon_dir /home/user/MyDocs/dir1

no error is produced but there is nothing in dir1

edit: do I have to save one by one using the export procedure?

No!No!No!Yes! 2010-04-19 15:15

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by UNderworld (Post 617775)
I have tried this before posting but did not work..

Nokia-N900-02-8:~# cp -r /home/user/.queen_beecon_dir /home/user/MyDocs/dir1

no error is produced but there is nothing in dir1

edit: do I have to save one by one using the export procedure?

For every widget you have instantiated:
Apply Export/Save/Backup Procedure for Beecon Instance Data and store the notes you have saved in a safe place

Save content (Beecons' Images) of these TWO directories:

Code:

/home/user/.queen_beecon_dir
/home/user/MyDocs/.images/queen_beecon_dir/

It could be possible that this directory is empty:
Code:

/home/user/.queen_beecon_dir

No!No!No!Yes! 2010-04-19 16:25

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by jakiman (Post 613237)
...
btw, I cannot get output to word wrap within the snippet mode.
Is this possible for big text outputs? (so output doesn't go outside of the box)...

Sorry, forgot this!!!

I quote mjec

Quote:

Originally Posted by mjec (Post 617069)
Piping your command through fold might do what you need. For example:

command | fold -s -w 60

Note that I haven't tested this. More info on fold is available from http://unixhelp.ed.ac.uk/CGI/man-cgi?fold. Specifically the -w width may be of interest, depending on the width of your widget.

Not quite automatic word wrap, but this should work on a command-by-command basis.


zimon 2010-04-19 16:37

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
About "Internal IP" command. Would it be possible somehow to colorize differently address which has default route (out to Internet)?
Code:

# ifconfig;route
bnep0    Link encap:Ethernet  HWaddr EC:9B:5B:D3:XX:XX 
          inet addr:192.168.3.15  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2720 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:397510 (388.1 KiB)  TX bytes:356735 (348.3 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3016 (2.9 KiB)  TX bytes:3016 (2.9 KiB)

phonet0  Link encap:UNSPEC  HWaddr 15-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          UP POINTOPOINT RUNNING NOARP  MTU:4000  Metric:1
          RX packets:345 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8444 (8.2 KiB)  TX bytes:5422 (5.2 KiB)

usb0      Link encap:Ethernet  HWaddr C6:B2:5D:9E:YY:YY 
          inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.3.0    *              255.255.255.0  U    0      0        0 bnep0
192.168.2.0    *              255.255.255.0  U    0      0        0 usb0
default        bt              0.0.0.0        UG    0      0        0 bnep0

In this case 192.168.3.15

No!No!No!Yes! 2010-04-19 16:53

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by zimon (Post 617938)
About "Internal IP" command. Would it be possible somehow to colorize differently address which has default route (out to Internet)?
Code:

# ifconfig;route
bnep0    Link encap:Ethernet  HWaddr EC:9B:5B:D3:XX:XX 
          inet addr:192.168.3.15  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2720 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:397510 (388.1 KiB)  TX bytes:356735 (348.3 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3016 (2.9 KiB)  TX bytes:3016 (2.9 KiB)

phonet0  Link encap:UNSPEC  HWaddr 15-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          UP POINTOPOINT RUNNING NOARP  MTU:4000  Metric:1
          RX packets:345 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8444 (8.2 KiB)  TX bytes:5422 (5.2 KiB)

usb0      Link encap:Ethernet  HWaddr C6:B2:5D:9E:YY:YY 
          inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.3.0    *              255.255.255.0  U    0      0        0 bnep0
192.168.2.0    *              255.255.255.0  U    0      0        0 usb0
default        bt              0.0.0.0        UG    0      0        0 bnep0

In this case 192.168.3.15

Yes, it is.

As long as you can write logic to parse the output, with awk/sed/etc. and programmatically isolate the ipaddress ... you can stick Pango Markup Language around it:

PHP Code:

echo "<span foreground=\"green\"><big><i>IP_ADDRESS_GOES_HERE</i></big></span>" 

And it will be shown with all the bells & wistles you like :cool:

gabby131 2010-04-20 16:03

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
hi! how can a NOOB execute this commands and see a text result in queen beecon:

sudo gainroot
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

thanks

UPDATE: i tried cat "cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq" Ι sudo gainroot, butnothing cane out.

please help

BTW: this app is awesome! typing commands is just a tap away!

matts76 2010-04-22 10:04

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by gabby131 (Post 619582)
hi! how can a NOOB execute this commands and see a text result in queen beecon:

sudo gainroot
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

thanks

UPDATE: i tried cat "cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq" Ι sudo gainroot, butnothing cane out.

please help

BTW: this app is awesome! typing commands is just a tap away!

I see from your post in the oc thread that you've resolved this, could you please post the scripl you used to get it working and also the 805mhz one please:D
Thanks

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

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by gabby131 (Post 619582)
hi! how can a NOOB execute this commands and see a text result in queen beecon:

sudo gainroot
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

thanks

UPDATE: i tried cat "cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq" Ι sudo gainroot, butnothing cane out.

please help

BTW: this app is awesome! typing commands is just a tap away!

Hi, try this:

Code:

echo "cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq" | sudo gainroot

rolan900d 2010-04-22 10:47

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
I keep having issues with this great app.
Please some help...

When I create my own commands I sometimes have an error in de the desktop stating that hildon-desktop needs to shutdown???

I am trying to add a command to start homunculus from root.
In X-terminal it works like this:
root homunculus

can this be done in queen app?

No!No!No!Yes! 2010-04-22 11:18

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by rolan900d (Post 622286)
I keep having issues with this great app.
Please some help...

When I create my own commands I sometimes have an error in de the desktop stating that hildon-desktop needs to shutdown???

I am trying to add a command to start homunculus from root.
In X-terminal it works like this:
root homunculus

can this be done in queen app?

QBW is not actually meant for running programs with their own GUI as it'll wait till program is closed before returning control to hildon-home (N900 part of desktop processes).
N900 hildon-desktop & hildon-home processes might have some sort of watchdog mechanisms which prevent them from getting stuck if some widgets/status applets don't return them control in a timely fashion.

Try put a "&" character at the end of your command and cross your fingers!

This will force "homunculus" to be run in the background and immediately return control to hildon-* processes

UPDATE 201004221350CET: Sorry, method described above launches program but locks desktop widgets. Do not use it!!!!

rolan900d 2010-04-22 11:21

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Thanks mate, but tried that as well...

I would like to have commands in the desktop to start apps from root...

No!No!No!Yes! 2010-04-22 11:31

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by rolan900d (Post 622333)
Thanks mate, but tried that as well...

I would like to have commands in the desktop to start apps from root...

Maybe you'd like to try this...
http://www.themaemo.com/howto-launch...om-a-shortcut/

And change:
Code:

Exec=/usr/bin/osso-xterm top
with:
Code:

Exec=root homunculus
Maybe you should use full path for the two commands.

rolan900d 2010-04-22 11:34

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Gonna try that!

Cheers

gabby131 2010-04-23 22:35

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by No!No!No!Yes! (Post 622256)
Hi, try this:

Code:

echo "cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq" | sudo gainroot

thanks, so in every sudo gainroot comand, i'll just type in:

Code:

echo "/sudo_command/" ׀ sudo gainroot
working for me, gonna try a reboot widget :D

gabby131 2010-04-23 23:02

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by matts76 (Post 622241)
I see from your post in the oc thread that you've resolved this, could you please post the scripl you used to get it working and also the 805mhz one please:D
Thanks

at my post above, in every sudo command (root commands),

type: echo "<command_that_is_root>" І sudo gainroot

for example:

Code:

echo "echo 1000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" | sudo gainroot
that is for kernel for power users to increase cpu max frequency to 1GHz.

you can also do some sudo commands like reboot, apt-get clean etc, but be carefull and read between the lines of the options.

thanks to No!No!No!Yes! and jakiman

jakiman 2010-04-24 03:50

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
I noticed that that piping it to sudo gainroot doesn't work for my friend's N900 for some reason. So I used following instead and it works. (works in my phone also and this is better a it returns no output)

sudo /usr/sbin/kernel-load /home/user/MyDocs/files/overclock_1000

(where overclock_1000 is a copied/modified file of the kernel power setting default profiles)

Sash 2010-04-24 09:33

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by jakiman (Post 625423)
I noticed that that piping it to sudo gainroot doesn't work for my friend's N900 for some reason. So I used following instead and it works. (works in my phone also and this is better a it returns no output)

sudo /usr/sbin/kernel-load /home/user/MyDocs/files/overclock_1000

(where overclock_1000 is a copied/modified file of the kernel power setting default profiles)

Mine was the same. Doing it this way works fine though.

SallyJane 2010-04-24 16:06

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
I'm trying to create a 2G/3G toggle widget.

When I copy and paste the (rather long) 2g3g.sh script from here

http://wiki.maemo.org/Desktop_Comman...cripts#2G.2F3G

into the Command field of the AddCmd settings, all that is entered is the first line of the script

*!/bin/sh

No!No!No!Yes! 2010-04-24 21:16

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by SallyJane (Post 626026)
I'm trying to create a 2G/3G toggle widget.

When I copy and paste the (rather long) 2g3g.sh script from here

http://wiki.maemo.org/Desktop_Comman...cripts#2G.2F3G

into the Command field of the AddCmd settings, all that is entered is the first line of the script

*!/bin/sh

You cannot paste it directly into QBW.
You need to connect to X-Terminal for that and then...:
Code:

~ $
cd /home/user
cat > 2g3g.sh
<here you paste the script>
#!/bin/sh
if [ `dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_selected_radio_access_technology | awk '/b/ {print $2}'` -eq 1 ]; then
dbus-send --system --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.set_selected_radio_access_technology byte:2
else
dbus-send --system --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.set_selected_radio_access_technology byte:1
fi

<then you press CTRL-D and you get the prompt again>

~ $ chmod 755 2g3g.sh

Now you can "AddCmd": /home/user/2g3g.sh

... and see what happens.

No!No!No!Yes! 2010-04-26 16:05

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
:cool: We are now in... Extras Repository eventually!!! :D Yayyyyy!!! :D

No!No!No!Yes! 2010-04-27 00:12

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
N900 Mini Monitor... preview. Still testing output formatting and minor issues!

http://i44.tinypic.com/14iei6f.jpg

No!No!No!Yes! 2010-05-05 20:12

[Announce] Queen BeeCon Widget - GPRS Compact Data Monitor
 
1 Attachment(s)
This is in very early stages of development so it doesn't deserve its proper thread...
It's just a proof of concept for handling persistency of configuration data across multiple command executions... Furthermore PR1.2 is supposed to bring changes to counters position so... let's wait a little bit more for final version.

Customize Queen BeeCon Widget (>=v0.1.4) to display:
GPRS Compact Data Monitor

The Beecon will show plenty of Data Plan information and statistics, plus changes background according to data plan capacity consumption.

http://i39.tinypic.com/f1mpn6.jpg
http://i43.tinypic.com/14u7uva.jpg

http://i42.tinypic.com/o79k5y.png http://i42.tinypic.com/2ly3ejo.png http://i43.tinypic.com/2wlvlao.png http://i40.tinypic.com/5wkwld.png

Code:

[queen-beecon-header]
version=1,000000
checksum=5739874
[queen-beecon-exported-instance]
widgetType=0
operationalStatus=0
hideCanvas=true
snippetBgRGB=0
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ImgFilename=queen-beecon-syserr.png
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ImgFilename=gprsmon-green.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ImgFilename=gprsmon-yellow.png
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ImgFilename=gprsmon-red.png
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ImgFilename=queen-beecon-index.png
widWidth=175
widHeight=110
instanceTitle=Gprs Compact Data Monitor
instanceCmd=SD=20100414;RP=2M;U=0;D=0;T=600;red=95;yellow=90;echo `gconftool-2 --get /system/osso/connectivity/network_type/GPRS/gprs_reset_time` `gconftool-2 --get /system/osso/connectivity/network_type/GPRS/gprs_tx_bytes` `gconftool-2 --get /system/osso/connectivity/network_type/GPRS/gprs_rx_bytes` | awk -v r=$red -v y=$yellow -v U=$U -v D=$D -v T=$T -v SD=$SD -v RP=$RP -v N=$(date -d "`echo $SD | cut -c 5-6` `echo $SD | cut -c 7-8` `echo $SD | cut -c 1-4`" +%s) -v CD=`date "+%Y%m%d"` '{x=0;M=1048576;SDd=substr(SD,7,2);SDm=substr(SD,5,2);SDy=substr(SD,1,4);i=substr(RP,1,length(RP)-1);u=$2/M;if(U>0)Uu=($2/M)/U*100;d=$3/M;if(D>0)Dd=($3/M)/D*100;t=($2+$3)/M;if(T>0)Tt=($2+$3)/M/T*100;Xm=nXm(SDd,SDm,SDy,i,RP,N);LR=strftime("%Y%m%d@%H%M",$1);if(Uu>=y||Dd>=y||Tt>=y)x++;if(Uu>=r||Dd>=r||Tt>=r)x++;if(x>2)x=2;printf("SD:%s RP:%3s\\nNR:%s\\nU%4dM(%4dM-%3d%%)\\nD%4dM(%4dM-%3d%%)\\nT%4dM(%4dM-%3d%%)\\nLR:%s\\n",SD,RP,Xm,u,U,Uu,d,D,Dd,t,T,Tt,LR);exit x;}function Dy(d,m,y){m=(m+9)%12;y=int(y-m/10);return 365*y+y/4-y/100+y/400+(m*306+5)/10+(d-1);}function nXm(d,m,y,i,RP,N){split("31,28,31,30,31,30,31,31,30,31,30,31",dm,",");CDd=substr(CD,7,2);CDm=substr(CD,5,2);CDy=substr(CD,1,4);if(index(RP,"D")>0){s=strftime("%Y%m%d",N+86400*(i-1));od=substr(s,7,2);om=substr(s,5,2);oy=substr(s,1,4);} else {om=(m+i)%12;oy=y+int((m+i)/12);od=d;while(od>dm[om])od--;if (((oy%4==0&&oy%100!=0)||(oy%400==0))&&om==2&&d>28)then od++;}return sprintf("%4d%02d%02d D:%4d",oy,om,od,-1*int(Dy(od,om,oy)-Dy(CDd,CDm,CDy)));}'
cmdImgFilename=gprsmon.png
cmdImgZoom=0
cmdFgRGB=1
cmdVisibilityPosition=0
cmdImgVisibilityPosition=5
cmdJustify=0
cmdFontName=3
cmdFontSize=12
resImgFilename=queen-beecon-resimg.png
resImgZoom=0
resFgRGB=0
resVisibilityPosition=5
resImgVisibilityPosition=5
resJustify=0
resFontName=14
resFontSize=11
updOnStartup=false
updOnClick=true
updOnDesktop=false
delayIndex=4
updNeworkPolicy=0

Change specific parameters (explained inside the image above) at the very beginning of the command line...

No!No!No!Yes! 2010-05-14 08:15

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Current developments are now focused on providing Inter Process Communication among QBW instances and with other Applications.

This feature is under design/development as I would like to release the much complete and customizable IPC mechanism possible, like for example:
  • Give impulse to a Beecon for content update
  • Give impulse to a Beecon 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.

There are infinite possibilities ... just stay tuned!!!

AlMehdi 2010-05-14 17:43

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
I am sure this is written somewhere but can't get it to work.

echo `date +"<span size=\\"15\\"><b>%A, %-Y-%m-%-d - Vecka %W</b></span>"`

What am i doing wrong? Also i am trying to make a button to switch my kernel-setting to use limits. In this case i don't want the "root shell enabled" output. Just want the bg to show. Is it possible to get output not to show?

Sash 2010-05-14 18:10

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by AlMehdi (Post 658666)
Is it possible to get output not to show?

Under Command Result Settings choose the position to be hidden, then the output won't show up.

AlMehdi 2010-05-14 18:20

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by Sash (Post 658701)
Under Command Result Settings choose the position to be hidden, then the output won't show up.

Ahh.. great! thanks. ;)

No!No!No!Yes! 2010-05-14 19:25

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by AlMehdi (Post 658666)
I am sure this is written somewhere but can't get it to work.

echo `date +"<span size=\\"15\\"><b>%A, %-Y-%m-%-d - Vecka %W</b></span>"`

What am i doing wrong? Also i am trying to make a button to switch my kernel-setting to use limits. In this case i don't want the "root shell enabled" output. Just want the bg to show. Is it possible to get output not to show?

Ciao,
this will work ...
Code:

echo "<span font=\"15\"><b>`date +"%A, %-Y-%m-%-d - Vecka %W"`</b></span>"
BTW: why bothering using Pango Markup Tags when you can stick to native QBW formatting settings from here:
http://i43.tinypic.com/2rrmgea.jpg

No!No!No!Yes! 2010-05-14 23:20

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by No!No!No!Yes! (Post 657980)
Current developments are now focused on providing Inter Process Communication among QBW instances and with other Applications.

This feature is under design/development as I would like to release the much complete and customizable IPC mechanism possible, like for example:
  • Give impulse to a Beecon for content update
  • Give impulse to a Beecon 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.

There are infinite possibilities ... just stay tuned!!!

OK this is Naive Poker Roller: just a Proof of Concept of what will be possible when new IPC mechanism will be implemented:

http://i41.tinypic.com/34f1mpx.jpg

The 5 poker dices and the "ROLL DICES" button are all QBW

Every dice is the graphic instance of a simple random number generator command (From 1 to 6 ... Duh!)
Every dice will be able to roll separately by just touching it.

The "ROLL DICES" button will be able to roll all of the 5 dices at the same time.

It will only be necessary to know the Instance ID of the 5 QBW dices and attach to the button a specially crafted command/script which will basically issue the following five commands:
Code:

dbus-send --session --type=method_call --dest=com.nokia.qbw /com/nokia/qbwid0 com.nokia.qbw.update
dbus-send --session --type=method_call --dest=com.nokia.qbw /com/nokia/qbwid1 com.nokia.qbw.update
dbus-send --session --type=method_call --dest=com.nokia.qbw /com/nokia/qbwid2 com.nokia.qbw.update
dbus-send --session --type=method_call --dest=com.nokia.qbw /com/nokia/qbwid3 com.nokia.qbw.update
dbus-send --session --type=method_call --dest=com.nokia.qbw /com/nokia/qbwid4 com.nokia.qbw.update

The id0 id1 id2 id3 id4 QBW Instance IDs will be easily visible/accessible at the top of settings dialog box.

AlMehdi 2010-05-15 01:49

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by No!No!No!Yes! (Post 658792)
Ciao,
this will work ...
Code:

echo "<span font=\"15\"><b>`date +"%A, %-Y-%m-%-d - Vecka %W"`</b></span>"
BTW: why bothering using Pango Markup Tags when you can stick to native QBW formatting settings from here:
http://i43.tinypic.com/2rrmgea.jpg

I wanted to have one string at one size and another at another size in the same command. So thats why i could change the "global" setting ;)

AlMehdi 2010-05-15 02:14

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Another question.. and this might be a too big one. Right now if i use the date command. It will show the date in english. But i would like it to show in my native language swedish. Is there any easy way to do this? If a script is necessary could someone help me with this as i am not good at scripting? ;)

No!No!No!Yes! 2010-05-16 09:01

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by AlMehdi (Post 659157)
Another question.. and this might be a too big one. Right now if i use the date command. It will show the date in english. But i would like it to show in my native language swedish. Is there any easy way to do this? If a script is necessary could someone help me with this as i am not good at scripting? ;)

See HERE

Ciao.

BluesLee 2010-05-16 09:51

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
@No!No!No!Yes!: hi, i am impressed by your scripting skills.

maybe, you have a quick solution for the following:

the rss feed from http://talk.maemo.org/ gives me unfortunately
the latest threads but what i want is different:

1) i want the the latest n active topics as shown on
http://talk.maemo.org/search.php?do=getdaily and

2) i want the latest m posts for the threads under 1)

can you help out? thanx.


Blues

No!No!No!Yes! 2010-05-16 19:11

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by BluesLee (Post 660578)
@No!No!No!Yes!: hi, i am impressed by your scripting skills.

maybe, you have a quick solution for the following:

the rss feed from http://talk.maemo.org/ gives me unfortunately
the latest threads but what i want is different:

1) i want the the latest n active topics as shown on
http://talk.maemo.org/search.php?do=getdaily and

2) i want the latest m posts for the threads under 1)

can you help out? thanx.


Blues

Ciao,
could you find out the exact RSS urls for 1) and 2) ?
Once I have the two urls and an idea of what you'd like to obtain as output (meaning structure of the output) I'll try to help with the shell/awk scripting.
Bye.

BluesLee 2010-05-17 15:46

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
@No!No!No!Yes!: the point is that there is no rss feed for 1)
and 2) :-)

if you go to http://talk.maemo.org/ an press "more ..." on the
lower right hand side you will be redirected to
http://talk.maemo.org/search.php?do=getdaily

from here i see the latest n=25 active topics. pressing "last page"
on a chosen topic gives me the latest m posts on the topic.


BluesLee

No!No!No!Yes! 2010-05-17 19:03

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by BluesLee (Post 662637)
@No!No!No!Yes!: the point is that there is no rss feed for 1)
and 2) :-)

if you go to http://talk.maemo.org/ an press "more ..." on the
lower right hand side you will be redirected to
http://talk.maemo.org/search.php?do=getdaily

from here i see the latest n=25 active topics. pressing "last page"
on a chosen topic gives me the latest m posts on the topic.


BluesLee

I'm sorry but it is almost impossible to get something usable out of full HTML pages with CSS markers, javascript code and CSS style driven layout (themes); patterns are quite complex and hardly discernable from garbage formatting tags.
RSS could be a good place to start because of the minimalist formatting and pretty lean source page structure; but the only feed you can retrieve is http://talk.maemo.org/external.php?type=rss2 which is not actually up to date.
I suggest you also try and figure out vbulletin capabilities with respect to special URLs crafting for such needs... or maybe ask the forum admins for suggestions.
Further, I still don't get what kind of output you are expecting.
I believe you can try to reformulate your request and apply here for some Mods help.
Also I'm sorry I've gone far beyond off-topic here ... :D

No!No!No!Yes! 2010-05-18 18:15

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by No!No!No!Yes! (Post 657980)
Current developments are now focused on providing Inter Process Communication among QBW instances and with other Applications.

This feature is under design/development as I would like to release the much complete and customizable IPC mechanism possible, like for example:
  • Give impulse to a Beecon for content update
  • Give impulse to a Beecon 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.

There are infinite possibilities ... just stay tuned!!!

WIKI is updated with current design and specifications.
Developments are in the brewery.

No!No!No!Yes! 2010-05-19 21:14

Re: [Announce] Queen BeeCon Widget: Customizable and flexible monitoring tool.
 
Quote:

Originally Posted by No!No!No!Yes! (Post 657980)
Current developments are now focused on providing Inter Process Communication among QBW instances and with other Applications.

This feature is under design/development as I would like to release the much complete and customizable IPC mechanism possible, like for example:
  • Give impulse to a Beecon for content update
  • Give impulse to a Beecon 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.

There are infinite possibilities ... just stay tuned!!!

Brief brewery status update:

DBUS Methods & Parameters
WARNING!!! Methods' Parameters are case-sensitive

Implemented (Internal Testing in Scratchbox) 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

Implemented (Internal Testing in Scratchbox) show
:Give show impulse to a Beecon

Implemented (Internal Testing in Scratchbox) hide
:Give hide impulse to a Beecon

Implemented (Internal Testing in Scratchbox) wakeup
:Give wake up impulse to a Beecon and update content and layout

Implemented (Internal Testing in Scratchbox) sleep
:Give sleep/disabled impulse to a Beecon (Minimize and Disable)

Implemented (Internal Testing in Scratchbox) update_content
:Give impulse to a Beecon for content update

Implemented (Internal Testing in Scratchbox) update_layout
:Give impulse to a Beecon for layout update

Implemented (Internal Testing in Scratchbox) exec string:'<alternative command/script>'
:Give other beecons one-shot alternative scripts/commands to execute and update content accordingly

Implemented (Internal Testing in Scratchbox) set_param_string string:'<param name>' string:'<new value>'
Implemented (Internal Testing in Scratchbox) set_param_int32 string:'<param name>' int32:'<new value>'
Implemented (Internal Testing in Scratchbox) set_param_uint32 string:'<param name>' uint32:'<new value>'
Implemented (Internal Testing in Scratchbox) set_param_double string:'<param name>' double:'<new value>'
Implemented (Internal Testing in Scratchbox) set_param_boolean string:'<param name>' boolean:'<new value>'
:Change and store QBW settings

Implemented (Internal Testing in Scratchbox) get_param string:'<param name>' returning string:'<value>'
:Get QBW settings

Implemented (Internal Testing in Scratchbox) get_exit_status returning int32:'<ExitStatus>'
:Retrieve other beecon's last executed commands exit status

Implemented (Internal Testing in Scratchbox) set_position int32:'<X-coord>' int32:'<Y-coord>'
Implemented (Internal Testing in Scratchbox) get_position returning int32:'<X-coord>' int32:'<Y-coord>'

0.1.7 expected in extras-devel within 2 days or so
Naive Dice Poker tutorial expected within several days


All times are GMT. The time now is 18:24.

vBulletin® Version 3.8.8