maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Desktop Command Execution Widget scripts (https://talk.maemo.org/showthread.php?t=39177)

Robb 2010-04-02 10:43

Re: Desktop Command Execution Widget scripts
 
Does anyone know where/if I can access the data for GPRS data download?

I want to make a 2 queries to show
1) GPRS data download (units) for last month
2) GPRS data download (units) for this month
1 unit for me is 100k of data for every connection startup.
Sumed from a given day in month


I'm looking for info where/if I can find this data...
I will make this query by myself, and post for all ;)

lubabula 2010-04-04 07:57

Re: Desktop Command Execution Widget scripts
 
anyone can help?
i can only open 3 widgets on desktop, fourth only shows as "result" and all desktop widgets and shortcuts freeze. then hildon-home crashes.

Pavol 2010-04-04 18:24

Re: Desktop Command Execution Widget scripts
 
cpu and memory usage ?

DrHofmann 2010-04-04 19:07

Re: Desktop Command Execution Widget scripts
 
I wanted to try out the widget, and I created a new command that I called Reboot, sudo reboot. That was not so smart.... :-) My N900 started to reboot and reboot and reboot. We can call it major loop :-) I solved it by flashing the phone. http://wiki.maemo.org/Updating_the_tablet_firmware # Flashing_the_eMMC_in_the_N900
I dident flash the eMMC, only point: 2.3 Windows
2.3.1 N900: XP (SP3) / Vista (SP2) / Windows 7 32-bit

Maybe this can help someone in the future.

// DrH

rooted 2010-04-04 22:25

Re: Desktop Command Execution Widget scripts
 
Many scripts have been added to the DCEW wiki page lately. I suggest that author somehow connects/integrates/embeds those scripts into the program (at least the link to the wiki page should be added because it really has tons of scripts). Also some of the default scripts are a little outdated or better version has been added to the wiki.

Scripts that are in the wiki and not in the program:

1. Enhanced battery, IP, uptime/load scripts
2. Date
3. Disk usage
4. Wi-Fi signal
5. CPU frequency
6. Memory (RAM, swap) usage
7. GPRS data usage
8. Top X processes
9. World time

Pavol 2010-04-05 09:54

Re: Desktop Command Execution Widget scripts
 
Ram usage conky 135,64 / 239,76
script : RAM used : free | awk '/M/ {printf ("%.1f MB\n",$3/1024)}'
output 30 MB :) ?

HRZ 2010-04-05 10:15

Re: Desktop Command Execution Widget scripts
 
is it possible to make a script to show how many SMS's you've sent this month.

The devel app "SMS counter" isn't stable for me (weird graphical glitches) and sometimes doesn't count correctly - ie a deleted SMS wont be counted, or some new SMSs wont even be registered....

rooted 2010-04-05 11:18

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by Pavol (Post 596027)
Ram usage conky 135,64 / 239,76
script : RAM used : free | awk '/M/ {printf ("%.1f MB\n",$3/1024)}'
output 30 MB :) ?

Thank you for feedback. I've retested the scripts and everything seems to be fine. Scripts are not that complicated, they take output of the free command, and calculate MB out of it. The mathematical part of the script is reliable. The error could happen when getting data from free command, but it is unlikely. Please retest and post the output of the "free" command (enter it in terminal) when you see wrong readings. And run conky in the background when you are testing, because conky itself impacts readings (uses RAM).

Also keep in mind that the commands are very similar and therefore when you see multiple almost same commands on the wiki page you might take the wrong one in confusion. Again, please retest and rethink and I'll do the debug work when I get more feedback.


Quote:

Originally Posted by HRZ (Post 596039)
is it possible to make a script to show how many SMS's you've sent this month.

The devel app "SMS counter" isn't stable for me (weird graphical glitches) and sometimes doesn't count correctly - ie a deleted SMS wont be counted, or some new SMSs wont even be registered....


It is not possible at the moment, because N900 does not count sent SMSes yet. Aforementioned app scans your messages and counts sent SMSes this month, that's why deleted SMSes are not counted.

Pavol 2010-04-05 11:33

Re: Desktop Command Execution Widget scripts
 
free | awk '/M/ {printf ("%.1f MB\n",$3/1024)}'
output : 214,2 MB

RAM free
free | awk '/M/ {printf ("%.1f MB\n",$4/1024)}'
output : 25,2 MB

25,2 is little

syteminfowidget = 136 MB used
conky = 138 MB used

rooted 2010-04-05 12:01

Re: Desktop Command Execution Widget scripts
 
Please enter command free in root terminal and post the output. Also post output of cat /proc/meminfo. Don't worry, the data is not sensitive.


All times are GMT. The time now is 10:34.

vBulletin® Version 3.8.8