![]() |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
Here is an example of a SMS which also includes usage and remaining traffic of the data plan. Carrier is sunrise in switzerland, the currency is CHF which cannot be converted to a nice symbol. (I guess no one yet found out how to make a symbol for chocolate :D)
Code:
Ihre aufgelaufenen Kosten ohne Abogebühr: CHF 1.20. Limite: CHF 5,000. Stand: 27.02.2010 11:49.Verbleibende Inklusiv-Leistungen:122.19 MB (surf) gültig bis 06.03.2010.Code:
CHF 1.20 - 122.19 MBCode:
sqlite3 -separator ": " /home/user/.rtcom-eventlogger/el.db \ |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
First of all i have to say thank you for editing the script to fit with sunrise ;)
I tried it out and have a problem. When i test the script in xterm it seems to work, even when i think the displayed infos aren't right right now, but when i try to put the script in a widget it only showes "invalid command" I wrote the chmod line as root in xterm and into the dce i wrote /home/user/Guthaben.sh (where the file is) what can be wrong? When i tipe in xterm as user the file can't be opened, as root it works. is that wright? |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
Quote:
chown user Guthaben.sh Doing an "ls -l" will show you exactly the owner of the file. Inside DCE you just call the script, not the sqlite command or the sed commands! |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
ok ok now it works ;)
but it is displayed like this: CHF 0.00249.88 MB so there is no "-" between the different things. how to fix it? and another question: now i click on the ussd widget to get the sms, then the sms arrives and the dce shows the actual costs. but the sms is still unread and so the led blinks until i read the sms. is it also possible to mark the sms as read through the script? and the incomming message desktop widget shows also the unread sms. is there also a way to fix this? and last: is it possible to execute the script once a day automaticly? so that i have not to click onto the ussd widget? would save me space on the desktop ;) |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
Quote:
Quote:
Quote:
Quote:
But if you just want to save space, you also might shorten the title of the widget. A single character doesn't take much space on desktop ;) |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
Hmm ok then lets forget my questions ;)
but to your point to make the ussd widget smaller: i did what you wrote in first post but it didn't change anythin... still the fat text "Vielen Dank für Ihre Anfrage blablabla...." |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
Which version of USSD-Widget do you use? Might be it was implemented in a version which still is only in -devel. In current version there is a a field called "Parser for widget" which will rewrite the output.
Here are my current settings for USSD-Widget: USSD number: *100# Execute query on start: no Name: Guthaben abfragen Parser for widget: echo "Guthaben abfragen" Enable banner: yes Parser: echo "%" Chain: <empty> Regular expression: <empty> Update every 0 minutes Retry pattern: 10-30-300 Most of these settings are well documented via the question sign beneath them. Forgot to mention: the point where you can shorten the output for space saving is to replace both strings "Guthaben abfragen" by something you like. And if you don't want to see the answer at all you might also want to disable banner, which puts the answer as a temporary banner over your desktop, just like any incoming message. |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
ok now it worked. had to restart the widget and than changes took effekt.
thank you very much ;) looks good. |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
New version has support for taking reply from SMS. Please test, if it works. Some instructions are available here:
http://kibergus.su/node/19 |
Re: Mini how-to: displaying current prepaid balance on desktop (e-plus, germany)
Quote:
|
| All times are GMT. The time now is 07:07. |
vBulletin® Version 3.8.8