mykosmos plasmoid

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
7.5
Description:

mykosmos is a plasmoid for sending fast SMS via greek mobile provider's COSMOTE(tm) mycosmos service.

If you own a COSMOTE phone number and have not an account at mycosmos folllow these instructions:

1) Send the "E" SMS at 54000 from your mobile. A password will be sent to you.
2) Get in http://www.mycosmos.gr using your number (69xxx) as username.
3) Click at Settings -> Modify password and set one of your choice.
4) Add your account at mykosmos and start sending.

If you cannot manage on this, try:
http://mail.mycosmos.gr/mycosmos/FAQ/MyCosmos_faqs_gr.htm

To install:
- right click on deskop -> Add Widgets -> Install new Widgets -> Download New Plasma Widgets and click install after you choose mykosmos.
or:
- download mykosmos.plasmoid
- type in console: plasmapkg -i mykosmos.plasmoid

Now you can send 10 SMS for free per day for every declared account in mykosmos.

mykosmos uses kaddressbook contacts, while phones are saved as mobile numbers at this format: (69xxxxxxxx or 00xxx...xxxx)

By now on (v0.92), contacts from KDE contact resources are loaded, so you can sync with google contacts by installing 'akonadi-kde-resource-googledata'.
Last changelog:

9 years ago

0.93
~~~~
- Bug and cosmetic change asked by user CyberAng3l fixed. thank him

0.92
~~~~
- Fixed to work at newer KDE versions (tried in 4.6.5 with success)
- Uses akonadi stadard contact resources (and so can sync your contacts with google contacts)
- Namelist combobox supports autocompletion

0.91
~~~~
- Minor bug which didn't allow to send at foreign numbers fixed.

C

dkarnout

11 years ago

Strange, it works fine to me.
Can you run it via plasmoidviewer (add an account, close it and run it again), and write the output here?
Maybe the same problem we met at loading..
can you try changing at lines 145-146
"buf1[1:]" to "QVariant(buf1[1:])"
and
"buf2[1:]" to "QVariant(buf2[1:])"
Thanks

Report

avoulk

11 years ago

I followed your advice but nothing changed..
Reloading the plasmoid caused loss of the account data. The worst thing is that no output was produced by plasmoidviewer..

I was wondering though that maybe the problem lies in dialog.py. Isn't it this that shows the add account dialog?

Report

C

dkarnout

11 years ago

Just upgraded pykde4 bindings and have the same problem. I ll try to fix it. But maybe is an upstream problem.

Report

C

dkarnout

11 years ago

~/.kde/share/config/plasma-desktop-appletsrc is the file that settings are saved.
1) If you can find your settings there, loading sector (init subroutine) has problem.
2) If after pressing "OK" at settings (after any change of course) and this file does not get updated, saving sector (okPr subroutine) has problem.
About add account dialog, if you can add and use an account, it works fine. The problem should be at saving or loading proccess.
Please check the file above and inform me.
Your KDE version is 4.3.1?

Report

Pirate86

11 years ago

I have the same problem too..!

Report

ogiannhs

11 years ago

First of all I'd like to thank you for this plasmoid, it is very helpfull, but I found some issues.

1) when you use the Enter key the sms stops there and the rest of the message is truncated.

2) when you paste text in the textbox the text is black and unreadable.

Report

C

dkarnout

11 years ago

Thanks for reporting:
1) Just fixed enter key bug. (v0.83)

2) An upstream bug? Plasma theme colors or css stylesheet problem maybe?. if somebody has as idea, is welcome. I don't think i can do something for that right now. However, it does not happen at every paste.

Report

Pirate86

11 years ago

It worked finally.. I had some major issues but after some install / uninstall it is perfect. However the first time i used it, it failed to send. But never happened again! just 1 comments.
I Have an issue with the background.
The letters are black my destop is not that bright and the widgets are transparent so... if you could just let us customize the colour of the letters it would be great! xexe its not a functional comment for the most but this would keep my eyes not that close to my monitor! Thnx again

Report

C

dkarnout

11 years ago

I did my best about colors (v0.83). Thanks for reporting.
I used Plasma.Theme Colours and fixed it. However, right-click pop-ups blend system colours with plasma colours, so these popups do not appear nice if you have a dark plasma theme combined with a light system-colour theme and vice versa.
Things will get better when/if plasma will have its own popup dialogs (right-click dialogs or dropdown lists).
As you can see at contact's dropdown for example, there is no scrollbar at all. These plasma bugs should be fixed sometime.

Report

avoulk

11 years ago

First of all, thank you for your effort!

Sorry to cause you pain (i really don't mean to,i really like your work, else i wouldn't mind :) ) but i now have another initialization error..

The output of the command plasmoidviewer mykosmos is as follows:
Quote:
Traceback (most recent call last):
File "/usr/share/apps/plasma_scriptengine_python/pyappletscript.py", line 55, in init
self.pyapplet.init()
File "/home/user/.kde4/share/apps/plasma/plasmoids/mykosmos/contents/code/main.py", line 83, in init
self.day = int(self.config().readEntry("lastday", day))
TypeError: int() argument must be a string or a number, not 'QVariant'

If you could fix that, it would be great!!
Again thank you for your work,
avoulk

Report

C

dkarnout

11 years ago

Sorry bothering you again. I really appreciate your help as i cannot reproduce this error.
I just have to try solving this bug like blind so don't get mad if it wouldn't work again.
Please give a try at v0.82 if you have time. Thanks

Report

hellblade

11 years ago

Nice plasmoid. Can you add a "remaining characters" counter, please?

Report

C

dkarnout

11 years ago

Thank you for the CostControl page.
Next version will use it, as well as remaining characters indication.

Report

avoulk

11 years ago

My friend, after the upgrade to version 0.80 the plasmoid seems to be broken (i get an error initialization error)..

I did a removal of the previous one (running plasmapkg -r mykosmos) and afterwards a "clean" installation of the current one..

Is it running properly to you?
Did you do a clean install or an upgrade to the previous one?

Thank you!

Report

C

dkarnout

11 years ago

I think i fixed it.
If no accounts existed by previous versions, it could not initialize. Hoping that was the bug you reported, v0.81 should be fine to you.
Thanks again

Report

C

dkarnout

11 years ago

Thanks for feedback. While i don't meet this problem, can you run "plasmoidviewer mykosmos" at console and tell me what it prints? Thanks

Report

avoulk

11 years ago

Hello!

Your plasmoid is exceptionally useful for the ones living in Greece, thank you very much! It is already one of the MUST plasmoids of my desktop! :D

What i quite miss is a simple indication of how many messages are there left for a specific account. If you could implement this, it would be a really flawless plasmoid!

Anyway,
thank you very much for you effort!

Report

C

dkarnout

11 years ago

Thanks!
About indicator, mycosmos does not provide such a feauture. However, i could do the following:
i can reversely count from 10 to 0 by every successful sent sms, but i cannot have known whether an sms is sent by another pc using the same account, or even by the official site. Although this makes sometimes mykosmos indication invalid, i will have a try.
Thanks again.

Report

hellblade

11 years ago

Check this address: http://www.mycosmos.gr/mycosmos/CostControl.aspx

It lists the messages sent for the day along other statistics.

Report

avoulk

11 years ago

No,
I thank you! :)

Report

9

vatsok

11 years ago

Thanks for that nice plasmoid!

Report

C

dkarnout

11 years ago

Thank you! Any improving suggestions are welcome.

Report

9 years ago

0.93
~~~~
- Bug and cosmetic change asked by user CyberAng3l fixed. thank him

0.92
~~~~
- Fixed to work at newer KDE versions (tried in 4.6.5 with success)
- Uses akonadi stadard contact resources (and so can sync your contacts with google contacts)
- Namelist combobox supports autocompletion

0.91
~~~~
- Minor bug which didn't allow to send at foreign numbers fixed.

12345678910
8
product-maker RAIDENSUB Jun 12 2012 9 excellent
product-maker CyberAng3l Feb 19 2012 9 excellent
product-maker kujules Mar 28 2011 9 excellent
product-maker MustangCSA Jan 30 2011 9 excellent
product-maker vitoubien Dec 04 2010 9 excellent
product-maker ge0rge007 Nov 07 2010 9 excellent
product-maker warlockrf Oct 31 2010 9 excellent
product-maker vatsok Oct 21 2010 9 excellent
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.93
updated Feb 21 2012
added Sep 07 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 16