The Following 5 Users Say Thank You to x-lette For This Useful Post: | ||
![]() |
2010-03-02
, 20:19
|
|
Posts: 1,665 |
Thanked: 1,649 times |
Joined on Jun 2008
@ Praha, Czech Republic
|
#2
|
The Following User Says Thank You to Andre Klapper For This Useful Post: | ||
![]() |
2010-03-02
, 23:02
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#3
|
I think the remaining balance will be displayed in the next public Maemo5 update after you have called somebody in case the mobile provider sends out a short message about the remaining money after a call.
At least it works here so far (but I use Vodafone CZ and run a non-public version)...
![]() |
2010-03-04
, 19:13
|
Posts: 2 |
Thanked: 1 time |
Joined on Mar 2010
@ Dhahran, Saudi Arabia
|
#4
|
![]() |
2010-03-04
, 19:22
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#5
|
I wonder how Nokia forgot to add this!
- Where I live, after I make a call I get a sms showing the last call charge and remaining balance left, and this phone doesn't seem to do that.
- I also would like to know how I can send a USSD sms.
![]() |
2010-03-05
, 21:41
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#6
|
I think the remaining balance will be displayed in the next public Maemo5 update after you have called somebody in case the mobile provider sends out a short message about the remaining money after a call.
At least it works here so far (but I use Vodafone CZ and run a non-public version)...
![]() |
2010-03-05
, 22:11
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#7
|
![]() |
2010-03-06
, 06:33
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#8
|
![]() |
2010-03-06
, 11:37
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#9
|
If your operator don't charge you for requesting your balance, why should you bother send or not to send one more query.
![]() |
2010-03-07
, 15:19
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#10
|
Ihr Guthaben für <HEREISMYPHONENUMBER> berträgt <XX,YY> EUR.
sqlite3 -separator ": " /home/user/.rtcom-eventlogger/el.db
SELECT strftime('%d.%m.%Y',storage_time,'unixepoch','localtime'), free_text
FROM Events WHERE event_type_id = '7' AND free_text LIKE 'Ihr Guthaben%' ORDER BY end_time DESC LIMIT 1"
sed s/Ihr.*gt\ //
sed s/.EUR./€/
04.03.2010: 17.21€
The Following User Says Thank You to x-lette For This Useful Post: | ||
OK, in germany there is a provider called e-plus who changed the way of telling the current balance in last summer. Actually, when querying *100# (thanks god for ussd-widget!!) the user gets a message saying, that the balance will be sent by SMS within the next moments. The SMS arrives, but ussd-widget of course still shows the intermediate message. This was very annoying for me so I figured out a way to get the balance right on the desktop.
All you need is the packages ussd-widget and desktop-command-execution. Please keep in mind that installing 3rd-party software and executing this how-to might kill a randomly selected kitten somewhere in the suburbs. But probably not
Step 1: install and configure one instance of ussd-widget. At least you need to fill in the field for the ussd code; it must contain '*100#' (without the quotes). Make sure it works and you receive the SMS containing the balance. There must be at least one of these SMSs stored on your phone to get this how-to to work.
Step 2: install desktop-command-execution. There is no need to put one of the pre-defined commands on your desktop if you don't want to.
Step 3: create a file in your home folder (should not be placed in MyDocs as this is a sometimes-unmounted-FAT-filesystem and I just don't know if a script can get executed from there reliable) copy the following code to it and make it executable.
Step-by-step:
Assumed the file is called /home/user/Guthaben.sh type the following into the terminal (as user, not root):
Instead of the described command you might use any other editor or whatever-tool-you-like, as long as it is able to write a standard textfile.
Now make the script executable (again: in terminal):
Last step: put one instance of desktop-command-execution on your desktop and go to the settings. Push "add cmd" and enter the path and filename to your script (i.e.: /home/user/Guthaben.sh) into the field "Command:". In the field "Title:" you may put whatever you like, I used 'Guthaben'. You just have to remember it
If nothing went bad, you should see your actual balance on desktop.
For convenience I modified the output of ussd-widget, as the complete answer from e-plus is too ugly to have it on desktop all day. Now the answer is displayed in a short note and the widget just changes it's name. This is what I did (just the names of the fields I changed and their value):
Name: Guthaben
Parser for widget: echo "Kto abgefragt"
Enable banner: yes
Parser: echo "%"
Font: Nokia Sans Cn Regular 16
Have fun!