maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] USSD Balance for Harmattan (https://talk.maemo.org/showthread.php?t=86563)

Avis 2012-09-03 17:07

[Announce] USSD Balance for Harmattan
 
Simple application fo MeeGo Harmattan to get balance of the mobile account over the USSD requests (often used on prepaid tariffs).
Program queries the balance when user clicks program’s icon, gets the reply, cuts digits and shows them to the user in different ways.

Lite and Pro versions available at Nokia Store.

Screenshots;
http://imageplay.net/tya22282050/screen_combo_thumb.jpghttp://imageplay.net/tya22282049/scr...fig2_thumb.jpg

Features:
– USSD sending/recieving
– updating balance after Calls/SMS (daemon catching D-BUS messages, can be switched on/off)
– updating balance on time (time can be set in format HH:MM or hh:mm AM/PM etc..) (new in version 0.0.5)
– calculated difference since last update (shown in Notificaton) (new in version 0.0.5)
– calculated call length (shown in Notificaton) (new in version 0.0.6)
– optional delay of auto-update (new in version 0.0.6)
– display balance on standby screen (new in version 0.0.7)
– pop-up window catching and dismissing (in two ways: click emulation or force window closing – see option ”hard-kill”)
– showing balance over the program’s icon
– showing balance through the Notifications (optional)
– native configuration through the control panel (Settings->Applications->USSD balance)
– multilanguage (english, russian)

Pro-version additional features
– user-friendly configuration
– sequence of USSD-queries can be used (example: *100# 1 2 - will query *100#, then will be sent "1", and after that - "2")
– icon's text margins
– up to 3 USSD numbers can be defined and used
– up to 3 values can be sxtracted from each USSD-reply
– different configuration for each SIM-card used (configuration switched on-the-fly every time you change the SIM-card)
up to 4 icons can be configured, enabled or disabled (removed from menu)
– more auto-update options (incoming SMS or calls monitoring, updates by interval)
– up to 3 lines can be drawn at LPM screen
– flexible composition of displayed strings

Download Lite: Nokia Store
Buy Pro: Nokia Store

thedead1440 2012-09-03 17:24

Re: [Announce] USSD Balance for Harmattan
 
Can you disable USSD messages with your app? Maybe intercept the DBus messages so that USSD messages are not displayed?

That way only when a user wants he can use your app or dial manually to check balances etc...

Avis 2012-09-03 17:32

Re: [Announce] USSD Balance for Harmattan
 
I haven't found the right way to disable system's catch-and-show of USSD messages. But, there is interesting effect in my app's work: if option "hard-kill" is enabled - the system's pop-up window if forced to close after first USSD-request procesed by app. And after this operation system's USSD window will not be shown at all (from any application) - until reboot.

Avis 2012-09-04 12:03

Re: [Announce] USSD Balance for Harmattan
 
Version updated.

ginggs 2012-09-04 16:36

Re: [Announce] USSD Balance for Harmattan
 
Great! One of the features I missed most, finally coming to the N9. Thank you. :)

My operator replies to *101# as follows:
Code:

Available Balance: R 1.35 .SMS/MMS: 0.Data: 1706.72 MB.
I am only interested in the first and third values, so I tried using this as my regex:
Code:

.*?(\d+\.\d+).*?(\d+).*?(\d+\.\d+)
...and this as my template:
Code:

R%1, %3MB
...but it didn't work. Any suggestions, please?

Avis 2012-09-04 16:43

Re: [Announce] USSD Balance for Harmattan
 
Quote:

Originally Posted by ginggs (Post 1261030)
...but it didn't work. Any suggestions, please?

Multiple values not supported... yet

praveenchand 2012-09-04 17:10

Re: [Announce] USSD Balance for Harmattan
 
"dear cutomer, your balance id x.xxx, valid upto dd/mm/yyyy". this is my operator message, please help me setting regex and template

praveenchand 2012-09-04 18:31

Re: [Announce] USSD Balance for Harmattan
 
never mind.... ".*?(\d+\.\d+)" worked !

Avis 2012-09-08 05:36

Re: [Announce] USSD Balance for Harmattan
 
New version.

praveenchand 2012-09-08 10:50

Re: [Announce] USSD Balance for Harmattan
 
Great & Thanks!


All times are GMT. The time now is 18:36.

vBulletin® Version 3.8.8