![]() |
[HACK] Display remaining minutes left out of free minutes
2 Attachment(s)
Some places like in UK here allot free minutes each month. The scripts attached are to display the remaining minutes and the used minutes each month.
Steps: 1. Enable endtime recording in database following the triggers script here 2. Copy freecalls.sh and calltimerpopup.sh in /home/user/scripts and make them executable (chmod +x freecalls.sh calltimerpopup.sh). 3. Copy callhangup and freecalllimit to /etc/dbus-scripts.d 4. Edit freecalls.sh for the freeminutes, starting date and number of sms which count to 1 minute. Leave SMSPERMINUTE=0 if they are not counted in minutes. 5. If there any phone numbers which shouldnt be counted edit FREE line. For me numbers 123 and 333 are free. 6. Reboot device and make a gsm call. Popup will appear after the call is terminated. *Dbus-scripts need to be installed. *Thanks to DocScrutinizer for sorting out the niggles. |
Re: [HACK] Display remaining minutes left out of free minutes
looks good will give it a try
|
Re: [HACK] Display remaining minutes left out of free minutes
will try now as my minutes change at 12 !
update : followed install instructions and did reboot , made 1st call and message worked with used and remaining minutes. will test again after midnight as my minutes for month restart then... |
Re: [HACK] Display remaining minutes left out of free minutes
tested after midnight and not working , message pops up ok but says used and remaining minutes but no numbers only blanks...
|
Re: [HACK] Display remaining minutes left out of free minutes
Quote:
|
Re: [HACK] Display remaining minutes left out of free minutes
used original script this morning and working . updating script anyway though . cheers for the update :)
|
Re: [HACK] Display remaining minutes left out of free minutes
I am going to give this a try and let you know how it goes?
|
Re: [HACK] Display remaining minutes left out of free minutes
My Data-plan is Flext 35 (T-Mobile UK). I get 900 Minutes or 1800 Text Messages..
i.e 2 text messages equates 1 minute I just have 2 questions 1. Does your script count messages as well? If not can your script be enhanced to do it? 2. I am not sure about T-Mobile but some companies charge you by minute i.e even if you talk for say 30 seconds you will still be charged for a minute. Do you round of seconds to minutes? Regards |
Re: [HACK] Display remaining minutes left out of free minutes
I have managed to get it working on my N900.
The problem I am getting this message Free minutes consumed: 0 Remaining minutes: 900 I have followed step by step instructions and updated the freecalls.sh for freeminutes and starting date too. I have restarted the phone and made few calls but it does not show correct information. |
Re: [HACK] Display remaining minutes left out of free minutes
@t4ure4n. Sms capability is now added. Set SMSPERMINUTE=2 to in freecalls.sh in your case. Also, the minutes are rounded off to a minute.
With regards to your free minutes not being updated, i think your triggers function in the database (Step 1) is not working. The triggers script i linked to is for firmware 1.2 and above. |
Re: [HACK] Display remaining minutes left out of free minutes
will this work in india ?
|
Re: [HACK] Display remaining minutes left out of free minutes
Why it should not? Just use common sense. This application (with database triggers enabled, as per first post) keep and eye on time of You'r every call, + number of sms, if You want it too. You set all parameters manually. So, what is it there, that can work in Antarctica, and can't for India?
---- As for scripts itself - here in Poland, most operator count free minutes/sms/mms as follows: 1 sms = 1 minute = 1 mms (under 100 kb) As You can easily presume, it's much more cost effective to always use mms instead of sms - even, when You want to type only text. Is it possible to add any param to count mms just like You did with sms? I know that this may be complicated, cause mms is suported via fMMS... I don't even know if such a connections are even stored in evenlogger. Especially Havoc mode. Just my little uneducated suggestion - mms always use different settings (ap) - so maybe tracking data connections from configurable (via user setting it) connection point only (to not confuse it with normal data connections) may help to achieve this? Is data connection stored in eventlogger? |
Re: [HACK] Display remaining minutes left out of free minutes
@Estel couldnt find anything in eventlogger related to mms. So unfortunately cant be done at present.
|
Re: [HACK] Display remaining minutes left out of free minutes
AFAIK fMMS use just data connection (every mms phone do it, although hiding it from user) via 2.5G. The point is, that it connect to "different" provider, aka mobile access point (or how it's called?). The point is that using predefinied access point for mms, You're not charged for data connection (although physically it *is* data connection).
That's why I suggested, that it may be worth checking eventlogger for data connections - if it is possible to determine which ("connection settings"), ap was used. Sorry if You already checked for that - I wanted to be sure that my suggestion wasn't understand wrong way ;) BTw, maybe it's possible to ask fMMS developer to add some backend, that You can use in this hack? Is it possible? |
Re: [HACK] Display remaining minutes left out of free minutes
Quote:
:):):)Glad that you added functionality for free numbers,:):):) I had already updated your SQL for this as I make lots of calls to 150 which is free for T-Mobile. Quote:
My minutes update on the 9th of every month, I used MONTH_STARTDAY=09 but it didn't work but when I used MONTH_STARTDAY=9 it worked... so I guess it will be a good idea to have your script check this. A potential Bug I have noticed that If you clear the "Recent Calls List" the counter starts again. This may not be a problem for people who leave their call log but I clear my recent call list every few days. Can any one else please varify this? |
Re: [HACK] Display remaining minutes left out of free minutes
I need help... I am so noob I guess XD
What means that...? "1. Enable endtime recording in database following the triggers script here" helppp? ? |
Re: [HACK] Display remaining minutes left out of free minutes
Quote:
Code:
# the day of the month at which your provider starts counting minutes copy it to MyDocs folder on N900 and run these commands from terminal 1. Open terminal 2. Navigate to MyDocs Folder Code:
cd /home/user/MyDocs Code:
sqlite3 -batch /home/user/.rtcom-eventlogger/el-v1.db < triggers.txt |
Re: [HACK] Display remaining minutes left out of free minutes
This looks like a good hack, but the instructions are too techy for me, can anyone simplify them?
Cheers |
Re: [HACK] Display remaining minutes left out of free minutes
Quote:
minutemonitor that packages a daemon to update end_time and provide a call period summary GUI. I wrote it to match the call plan I have, some of the details are in the description, but for someone non-technical it comes working out of the box. http://maemo.org/packages/view/minutemonitor/ |
All times are GMT. The time now is 14:59. |
vBulletin® Version 3.8.8