nice! bravo, frate!
Space Monitor v1.1
I was quite pissed of by the fact that i don't have much space in my phone just in the moments i need it more, and so i made an application that alerts me when the free space goes under a certain level.
As i don't know how to code and compile an app for my rokr e6 it's script based. [bash]
Here's a "short" walkthrough for the app ("short" as all my tutorials)
First time you run the app you'll have to set some settings, but you don't have to worry about forgetting anything as the app automatically walks you through all the needed information as it follows:
You'll have to set the Timezone GMT
(it's not used too much and so you could let it be 0 if you don't care)
If you'll just use it from the main phone menu let it be 0 as it gets the time correctly. You'll have to adjust the value if you decide to run it from startup script, ekonsole or from startmenu or other kind of launcher.
Next is the refresh rate in minutes. This is the time between two space checks. You can set it as you wish. I prefer keeping it either at 1 or 5 minutes.
If you want to activate sound you do it from this next question.
The sound consists in a short "ding" sound which is also used in the overclock app.
If you activate the sound you'll have to set the volume which has a range from 1 to 7. (1=lowest volume; 7=highest volume)
[v1.1] After that you can choose the desired sound. To add more sounds just copy your *.mid or *.mp3 file to /mmc/mmca1/.system/QTDownLoad/space/sounds/
By default there are the ding sound and the siren provided by intermario
Now comes a sequence of 3 repetitive dialogs but for different locations. First you'll be asked if you want to monitor the given location (3 available: ezx_user, ezxlocal, mmc) as you can see in the screenshot:
[v1.1] And if you agree to monitor the location you'll have to set the measuring format KB/MB and the alarm level, meaning the size of the desired free memory measured in MB (the maximum value is given and the minimum is 1):
All this happens only at the first-time run. After that you'll get straight to this next step which consists in the menu:
1. Check Now
2. Start MonitoringJust check the space level (if there's any alarm you'll be announced, or else you'll be returned to the menu)
3. Delayed StartIt starts the monitoring process. / When the monitoring process is running this option will show Stop Monitoring which obviously will stop the monitoring.
4.Change Settings [v1.1]This option allows you to set a certain time (in minutes) after which the monitoring starts.
When the monitoring process runs this option will show Pause Monitoring and you'll be able to pause the monitoring process for a certain time (also in minutes).
5. Add to startup [v1.1]Shows the settings menu:
From this menu you can change the previously encountered settings.
-change timezone GMT
-change refresh rate
-monitor or not the locations
-set other alert levels
-change size types [v1.1]
-tune the sound setting/choose another sound [v1.1]
6. Statistics [v1.1]This one allows you to add to startup the app easier. It has a couple of startup methods already implemented but there might be missing some and so you can manually insert the path to the startup file/folder.
![]()
Shows some statistics relating the app. You also have the option to reset the statistics. This is the main use of the Timezone GMT setting.
Format:
Date: dd/mm/yy
Time: hh:mm:ss
NOTE: If you don't get the time right and it's the value of the gmt instead it means you don't have the date binary in your firmware. In this case you should use this pkg version which includes the binary: http://www.motorolafans.com/forums/e...tml#post186415
You can also use some command lines if you want as it has a couple implemented [v1.1] added log option to log in /mmc/mmca1/spacem.log:
Feel free to propose any improvement or to report bugs as it still is a beta. I didn't have much time to test it.
The program isn't zipped just renamed.
Last edited by BruceLee; 03-13-2009 at 11:48 AM. Reason: Update v1.1
nice! bravo, frate!
msia uite domne
) te stiu de cand am intrat prima data pe forumu asta si habar naveam ca esti roman
Very handy application! Great one, thanks for sharing!
Oh, and about the add to startup function..
Other possible locations would be "autorun.txt" and "autorun1.txt", some firmwares use these files as startup scripts.
(Mine uses the "autorun.txt" script so I had to manually insert the script code into my startup script).
EDIT: Alright, I made some improvements to BruceLee's original version.Just rename these files to remove the ZIP extension and copy them to the app's installation folder (should be "/mmc/mmca1/.system/QTDownLoad/space").
- I added the two extra locations (mentioned above) myself!
- I changed the alert sound to something more "specific" and alert-like, a factory siren
Again, credits go to BruceLee for making this amazing app!
Last edited by intermario_gr; 03-09-2009 at 12:51 AM.
Very Nice App.
Thanks For Sharing.
Regards
@BruceLee
BUG FOUND
The user-defined alarm limits for ezx_user and ezxlocal are calculated in MegaBytes by dividing by 1024 but that's a problem. You see, we may have 3.9MB of ezxlocal freespace and if the alarm limit is set to 3MB, the alarm will go off! That's because 3900KB get truncated (cut off) to 3MB. This results in the program being highly inaccurate, especially in ezxuser and ezxlocal limits where values are within the [1-7] range.
Can you please modify the app so that it uses KiloBytes?
P.S. For the MMC, we could still use MegaBytes without having this problem, since sizes there vary from (128-2000)MB.
Thanks...![]()
Last edited by intermario_gr; 03-10-2009 at 12:30 AM.
A very useful application found , just some improvements needed
--==__NIRMAL__==--
Click on "THANKS" if you like my post...
@intermario
thanks for the updated script and mentioned bug.. some update will show off today
@nimsrules
you could mention the needed improvements
edit:
-made the KB thing solved
-backup bug with the startup add
-made sounds adding really easy
-other improvements in the script code
but still didn't complete it so i'll post it tomorow.. sorry
Last edited by BruceLee; 03-10-2009 at 08:11 PM.
Getting an unknown format error with SmartAsst. I'm at work and can't get the file to my pc to repack it. I'll see about it when I get home later if I'm in the mood.
Is there any way to have the user select (browse for) their startup file - I use Intermario_gr's RunScript and my startup file is located in ".system/QTDownLoad/RunScript/autorun.lin".
Or I guess you could add the location... I haven't looked at the script yet to see for myself how it's laid out.
Opera/9.60 (J2ME/MIDP; Opera Mini/4.2.13337/670; U; en) Presto/2.2.0
@Casper
Since we're expecting an update from BruceLee anytime today or tomorrow, I'll probably get and update the latest version.
It's not a big deal to add this specific location, I'll do it once BruceLee is done with his updates.![]()
Last edited by intermario_gr; 03-11-2009 at 11:44 AM.