Some operators return balance in SMS messages instead of USSD replies. Now USSD-widget can rule this out. Changes:
- SMS listener
- RegExp groups can be used in parsers
If your operator sends replies as SMS you need to activate SMS listener. Then enter filtering options: number from which SMS comes and regular expression, which describes part of the message. If filtering options are specified, all non matching messages will be ignored.
Multipart messages are supported. First matching message would be used.
By default text from SMS is not shown, so you would need to enter parser, for example:
would just show full message contents.
RegExp groups
I've changed parser syntax a bit. Now % and & always mean original reply, even if regular expression was specified. But you can specify, that you need some particular matching group with %N where N is group number. For example if 1st group matches our balance and 3rd number of minutes left you can use something like this:
echo Balance: %1 Minutes: %3