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 - N900 Mini Monitor (Extras Admission Celebration Edition)!!! (https://talk.maemo.org/showthread.php?t=51147)

No!No!No!Yes! 2010-04-27 10:06

[Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
1 Attachment(s)
Customize Queen BeeCon Widget (>=v0.1.4) to display:
N900 Mini Monitor - Extras Admission Celebration Edition

The Beecon will show System Information relevant to Battery, CPU and Load, Uptime, Network/Internet, WIFI and File Systems.

This is a special Beecon celebrating the QBW admission to Maemo Extras

Images are attached to this post.

http://i44.tinypic.com/72dk6q.jpg

http://i44.tinypic.com/efqp80.png

Code:

[queen-beecon-header]
version=1,000000
checksum=3850144
[queen-beecon-exported-instance]
widgetType=1
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=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ImgFilename=queen-beecon-appwrn.png
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ImgFilename=queen-beecon-apperr.png
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ImgFilename=queen-beecon-index.png
widWidth=229
widHeight=409
instanceTitle=N900 Mini Monitor
instanceCmd=hal-device bme | awk '/l.p/ {perc = $3}; /g.c/ {curr = $3}; /g.la/ {last = $3}; /s_c/ {isch = $3} END if (isch == "false") {print curr"/"last"<span font=\\"11\\">mAh</span>(%"perc")"} else {print "Charging"}';echo CPU `awk '{print $1/1000"<span font=\\"11\\">MHz</span>"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq` `cat /sys/devices/platform/omap34xx_temp/temp1_input`C;uptime | sed -e 's/.*up */Up: /' -e 's/, load average: /\\n/' -e 's/[ ,]+/ /';echo "Boot:`cat /proc/bootreason`(#`cat /var/lib/dsme/boot_count`)";wget -t 1 -T 5 -q -O - api.myiptest.com | awk -F"\\"" 'BEGIN{r=0}{print "W:"$4"\\n"substr($12 "-"toupper($28),1,17);r=1}END{if(r==0)print "W:<span font=\\"11\\">Not Available\\nNo Provider</span>"}';/sbin/ifconfig wlan0 | awk -F "[: ]" 'BEGIN{r=0}/Bc/ {print "L:"$13;r=1}END{if(r==0)print "L:<span font=\\"11\\">Not Available</span>"}';awk -F "[. ]+" '/0/ {print $4"%/" $5 "<span font=\\"11\\">dBm<\\/span>/" $6 "<span font=\\"11\\">dBm<\\/span>"}' /proc/net/wireless;df -h| awk '/(^rootfs)|(\\/home)|(\\/mmc1)/{print $6;printf("%17s\\n",$5 "/" $4)}'
cmdImgFilename=n900.png
cmdImgZoom=0
cmdFgRGB=1
cmdVisibilityPosition=0
cmdImgVisibilityPosition=5
cmdJustify=0
cmdFontName=3
cmdFontSize=12
resImgFilename=queen-beecon-resimg.png
resImgZoom=0
resFgRGB=4
resVisibilityPosition=5
resImgVisibilityPosition=0
resJustify=3
resFontName=14
resFontSize=11
updOnStartup=false
updOnClick=true
updOnDesktop=false
delayIndex=0
updNeworkPolicy=0

Thanks and Credit to maintainers and contributors of THIS wiki.

Schuhsohle 2010-04-30 08:49

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Hi i just want to try the mini monitor on my N900 but even if i change the settings and the command i dont be able to see any output on the desktop -.-' what setting do i have to make??

http://upload.iszene.com/images/rman...it8j_thumb.pnghttp://upload.iszene.com/images/abe1...z8dz_thumb.pnghttp://upload.iszene.com/images/di4r...he28_thumb.png

Schuhsohle 2010-04-30 09:09

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
So i finally got an output but it's not straight. do you have a clue??

http://upload.iszene.com/images/qv6m16aywcdinyjgq2j.png

rolan900d 2010-04-30 09:13

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Same here!!

Can you give me the command from the desktop widget at the bottom of your screen?!

Also, do you have a working temp. command?

Schuhsohle 2010-04-30 09:33

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
did you mean the traffic widget??? thats Personal Dataplan Monitor which you can download on the program manger!

http://maemo.org/downloads/product/r...et_installfile

No!No!No!Yes! 2010-04-30 09:59

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Quote:

Originally Posted by Schuhsohle (Post 634665)
Hi i just want to try the mini monitor on my N900 but even if i change the settings and the command i dont be able to see any output on the desktop -.-' what setting do i have to make??

http://upload.iszene.com/images/di4r...he28_thumb.png

The WIFI monitor line is missing ... this is the cause of the misalignment.
But I see there could be and issue with the import of the instance here.

How did you perform the import?

Try to paste this command there:
Code:

hal-device bme | awk '/l.p/ {perc = $3}; /g.c/ {curr = $3}; /g.la/ {last = $3}; /s_c/ {isch = $3} END if (isch == "false") {print curr"/"last"<span font=\"11\">mAh</span>(%"perc")"} else {print "Charging"}';echo CPU `awk '{print $1/1000"<span font=\"11\">MHz</span>"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq` `cat /sys/devices/platform/omap34xx_temp/temp1_input`C;uptime | sed -e 's/.*up */Up: /' -e 's/, load average: /\n/' -e 's/[ ,]+/ /';echo "Boot:`cat /proc/bootreason`(#`cat /var/lib/dsme/boot_count`)";wget -t 1 -T 5 -q -O - api.myiptest.com | awk -F"\"" 'BEGIN{r=0}{print "W:"$4"\n"substr($12 "-"toupper($28),1,17);r=1}END{if(r==0)print "W:<span font=\"11\">Not Available\nNo Provider</span>"}';/sbin/ifconfig wlan0 | awk -F "[: ]" 'BEGIN{r=0}/Bc/ {print "L:"$13;r=1}END{if(r==0)print "L:<span font=\"11\">Not Available</span>"}';awk -F "[. ]+" '/0/ {print $4"%/" $5 "<span font=\"11\">dBm<\/span>/" $6 "<span font=\"11\">dBm<\/span>"}' /proc/net/wireless;df -h| awk '/(^rootfs)|(\/home)|(\/mmc1)/{print $6;printf("%17s\n",$5 "/" $4)}'

IceJunior 2010-04-30 09:59

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
The MiniMonitor does not work for me. There is no outpput with error-code 2. Is there something special to pay attention to?

EDIT: Output works for me now but still not the right background.

IceJunior

No!No!No!Yes! 2010-04-30 10:14

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
This is the list of commands which get executed by the QBW.
In case of problems, try to execute each command with the Test Drive button in the Advanced Settings and Tools Dialog.
Please check and report exit code and output.

Code:

hal-device bme | awk '/l.p/ {perc = $3}; /g.c/ {curr = $3}; /g.la/ {last = $3}; /s_c/ {isch = $3} END if (isch == "false") {print curr"/"last"<span font=\"11\">mAh</span>(%"perc")"} else {print "Charging"}';
Code:

echo CPU `awk '{print $1/1000"<span font=\"11\">MHz</span>"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq` `cat /sys/devices/platform/omap34xx_temp/temp1_input`C;
Code:

uptime | sed -e 's/.*up */Up: /' -e 's/, load average: /\n/' -e 's/[ ,]+/ /';echo "Boot:`cat /proc/bootreason`(#`cat /var/lib/dsme/boot_count`)";
MAKE SURE YOU HAVE WGET PACKAGE INSTALLED
Code:

wget -t 1 -T 5 -q -O - api.myiptest.com | awk -F"\"" 'BEGIN{r=0}{print "W:"$4"\n"substr($12 "-"toupper($28),1,17);r=1}END{if(r==0)print "W:<span font=\"11\">Not Available\nNo Provider</span>"}';
Code:

/sbin/ifconfig wlan0 | awk -F "[: ]" 'BEGIN{r=0}/Bc/ {print "L:"$13;r=1}END{if(r==0)print "L:<span font=\"11\">Not Available</span>"}';
Code:

awk -F "[. ]+" '/0/ {print $4"%/" $5 "<span font=\"11\">dBm<\/span>/" $6 "<span font=\"11\">dBm<\/span>"}' /proc/net/wireless;df -h| awk '/(^rootfs)|(\/home)|(\/mmc1)/{print $6;printf("%17s\n",$5 "/" $4)}'

No!No!No!Yes! 2010-04-30 10:30

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Quote:

Originally Posted by IceJunior (Post 634753)
The MiniMonitor does not work for me. There is no outpput with error-code 2. Is there something special to pay attention to?

EDIT: Output works for me now but still not the right background.

IceJunior

Please post a screenshot of what you get.

IceJunior 2010-04-30 10:44

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
http://img52.imageshack.us/img52/192...0043012414.png

I just changed the Widget size to the n900.png's size and the Widgettype to Snipet.

EDIT: ... And I pastet the n900.png in the two default directories.

IceJunior

No!No!No!Yes! 2010-04-30 11:29

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Quote:

Originally Posted by IceJunior (Post 634821)
http://img52.imageshack.us/img52/192...0043012414.png

I just changed the Widget size to the n900.png's size and the Widgettype to Snipet.

EDIT: ... And I pastet the n900.png in the two default directories.

IceJunior

You didn't follow the INSTANCE IMPORT PROCEDURE, did you?

IceJunior 2010-04-30 12:21

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Hmpf... Now i get CheckSumError... Sorry, but it's the first time I use this widget ;-)

I read that there is a magic word to bypass checksum protection? :-)


IceJunior

No!No!No!Yes! 2010-04-30 12:30

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Uhm... if there is a checksum violation maybe you didn't correctly copy the instance data again from the first post of the thread and don't modify nothing.

I discourage you from using the magic word unless you really know what you are doing.

IceJunior 2010-04-30 12:41

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
It works :-), looks nice but the content is not centered like on your image.. Anything missed again?

I think the checksumerror happend because I used some of the code posted after the first post.

IceJunior, thanking..

No!No!No!Yes! 2010-04-30 12:53

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
WARNING!!! There was an issue with the "uptime" command which caused the third line to grow longer than expected, in case of uptime greater than 1 day, and mess up the whole beacon graphic and formatting... first post has been updated with corrected instance data which will prevent "Avg:" string from showing.

http://i43.tinypic.com/20sfmw.jpg

IceJunior 2010-04-30 13:02

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Okay, now its centered but the Batterystuff is one line under the right position (where your CPUfreq is).

IceJunior

No!No!No!Yes! 2010-04-30 13:14

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Quote:

Originally Posted by IceJunior (Post 634983)
Okay, now its centered but the Batterystuff is one line under the right position (where your CPUfreq is).

IceJunior

I believe you don't have a microSD card inside your phone ... that could be the culprit for misalignment as widget is customized to be center aligned both vertically and horizontally and the line with microSD capacity is missing

So goto settings and "Edit Cmd"
Goto the very end of the command:

Code:

..."/" $4)}'
and try and stick an extra newline echo:

Code:

..."/" $4)}'; echo ""
Crossfingers...

mrl0n3ly714 2010-05-21 03:16

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
would you fix this? i copy and paste from the battery codes above.

hal-device bme | awk '/l.p/ {perc = $3}; /g.c/ {curr = $3}; /g.la/ {last = $3}; /s_c/ {isch = $3} END if (isch == "false") {print curr"/"last"<span font=\"11\">mAh</span>(%"perc")"} else {print "Charging"}';

output only show the current mah/0 ...isnt it should show current mah/last mah ? try to test code above, thanks alot

goetz 2010-05-21 05:23

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
0 -- that's what the N900 reports for last full battery capacity in some cases, so you would have to fix the N900 ;)

It seems that this value is 0 when the last charging took place before the last reboot.

sb10ck 2010-07-15 13:39

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
on my device is in the list of filesystems the /opt-dir, too. its the same free space of /home-dir. Of this reason there are two lines to much in the monitor. the battery info begins one line above and the sd-card one line under the graphic. is it possible to delete the opt entry?

sorry my bad english.

sblock.tel

No!No!No!Yes! 2010-07-15 13:52

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Quote:

Originally Posted by sb10ck (Post 752816)
on my device is in the list of filesystems the /opt-dir, too. its the same free space of /home-dir. Of this reason there are two lines to much in the monitor. the battery info begins one line above and the sd-card one line under the graphic. is it possible to delete the opt entry?

sorry my bad english.

sblock.tel

Could you please post a screenshot?
Ciao...

sb10ck 2010-07-15 16:01

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
1 Attachment(s)
Ok. Here is it.

goetz 2010-07-15 16:12

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
I had the same problem since updating to PR1.2. I replaced the df command by the following but forgot to post it here:
Code:

df -h| awk '/(^rootfs)|(\\/dev\\/[^s])/{print $6;printf("%17s\\n",$5 "/" $4)}
That prints "df -h" for /, /home, /home/user/MyDocs, and /media/mmc1

The full shell command for Mini-Monitor is:

Code:

hal-device bme | awk '/l.p/ {perc = $3}; /g.c/ {curr = $3}; /g.la/ {last = $3}; /s_c/ {isch = $3} END if (isch == "false") {print curr"/"last"<span font=\\"11\\">mAh</span>(%"perc")"} else {print "Charging"}';echo CPU `awk '{print $1/1000"<span font=\\"11\\">MHz</span>"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq` `cat /sys/devices/platform/omap34xx_temp/temp1_input`C;uptime | sed -e 's/.*up */Up: /' -e 's/, load average: /\\n/' -e 's/[ ,]+/ /';echo "Boot:`cat /proc/bootreason`(#`cat /var/lib/dsme/boot_count`)";wget -t 1 -T 5 -q -O - api.myiptest.com | awk -F"\\"" 'BEGIN{r=0}{print "W:"$4"\\n"substr($12 "-"toupper($28),1,17);r=1}END{if(r==0)print "W:<span font=\\"11\\">Not Available\\nNo Provider</span>"}';/sbin/ifconfig wlan0 | awk -F "[: ]" 'BEGIN{r=0}/Bc/ {print "L:"$13;r=1}END{if(r==0)print "L:<span font=\\"11\\">Not Available</span>"}';awk -F "[. ]+" '/0/ {print $4"%/" $5 "<span font=\\"11\\">dBm<\\/span>/" $6 "<span font=\\"11\\">dBm<\\/span>"}' /proc/net/wireless;df -h| awk '/(^rootfs)|(\\/dev\\/[^s])/{print $6;printf("%17s\\n",$5 "/" $4)}'
HTH,

Goetz

sb10ck 2010-07-15 18:21

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
@goetz: this worked not for me. when i replaced the df-line the filesystem output is empty. when i replaced the whole code, then is no output of all data in the monitor.

goetz 2010-07-15 18:48

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
1 Attachment(s)
Strange. As I did only copy & paste from the widget code snippet, maybe something happened afterwards. Maybe there are additional line breaks. There should not by any line breaks.

What do you get when you try the command on the command line (in the XTerm)?

To make sure, there are no conversion problems, I have attached the exported widget to this post. Let's hope there are no automatic conversions of txt files involved in the forum!. Please try and import it and check if it works.

Goetz

PipoXtreme 2010-07-15 19:40

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Quote:

Originally Posted by IceJunior (Post 634821)
http://img52.imageshack.us/img52/192...0043012414.png

I just changed the Widget size to the n900.png's size and the Widgettype to Snipet.

EDIT: ... And I pastet the n900.png in the two default directories.

IceJunior

hi guys

can somebody give me the xterminal code to swap the N900.png from my download folder to the queen beecon`s folder ??

edit: it works with the midnight commander !!!

sb10ck 2010-07-15 20:17

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
@goetz: With the attached file now it works. Special Thanks.

Dany-69 2010-08-02 13:29

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
1 Attachment(s)
I've removed some useless command ... useless for me clearly.
If some wants a smaller and reduced widget like this, here the command :) :

Code:

echo CPU: `awk '{print $1/1000" MHz"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq` `cat /sys/class/power_supply/bq27200-0/temp`°C;echo Wi-fi: `awk -F "[. ]" '/0/ {print $6" %"}' /proc/net/wireless`;df -h| awk '/(^rootfs)|(\/dev\/[^s])/{print $6;printf("%17s\n",$5 "/" $4)}'

CasTTeLLo 2010-08-16 23:35

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
edited: thanks...

SirKlip 2010-10-31 09:39

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
Just wanted to say thx to all that went through all the trial and error on this Widget
All i had to do was import the txt and copy over the png
works like a charm
Thanks for the work guys

moudy91 2010-12-30 07:09

Re: [Announce] Queen BeeCon Widget - N900 Mini Monitor (Extras Admission Celebration Edition)!!!
 
hi guys, i want to create my own script with mini monitor, like the uptime and cpu and couple of other commands script, and i have all the scripts that i want to use but the problem is, i don't know whats separate them so i can combine into one script, so anyone can help me?
:confused:


All times are GMT. The time now is 23:04.

vBulletin® Version 3.8.8