Reply to comment

USSD-widget 0.1.6 released

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:
echo &
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

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.