
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
This plasmoid makes it easy to see wether you have new fax or invoices on your sipgate account. It now can send also fax or sms to one person.
You will need the python binding to run this plasmoid.
for full support aka storing passwords in kwallet also python-keyring-kwallet package is needed.
Hope you like it!
for debian/ubuntu:
apt-get install plasma-sciptengine-python
additional:
apt-get install python-keyring-kwallet (0.2.3)
for all newer systems:
apt-get install python-keyring
known bugs: 0.5.1-1: doesn't works together with kwallet
fixed upstream in Version 130:
https://bitbucket.org/kang/python-keyring-lib/changeset/261dcb3cf624
9 years ago
v0.1.3: -fixes problems with KDE SC 4.6
- now have a global offline/online mode
v0.1.2.1: -workaround for problem metioned by rdorsch
v0.1.2: -handels sipgate-bacic with no fax incomming (thanks to JanGerrit)
-if python-keyring is not installed it will just let you use this plasmoid
-delete unused imports (magic and mimetypes)
v0.1.1: -update now works correctly
-can send sms & fax
v0.1: - updates the status of your sipgate-Account
-can store the password either with kwallet or directly in the config-File
-CAN\'T send sms or fax yet
9 years ago
v0.1.3: -fixes problems with KDE SC 4.6
- now have a global offline/online mode
v0.1.2.1: -workaround for problem metioned by rdorsch
v0.1.2: -handels sipgate-bacic with no fax incomming (thanks to JanGerrit)
-if python-keyring is not installed it will just let you use this plasmoid
-delete unused imports (magic and mimetypes)
v0.1.1: -update now works correctly
-can send sms & fax
v0.1: - updates the status of your sipgate-Account
-can store the password either with kwallet or directly in the config-File
-CAN\'T send sms or fax yet
Naraku
9 years ago
System:
Fedora 14
KDE 4.6.3
I installed PyKDE4, PyKDE4-devel, and plasma-scriptengine-python. There was no python-keyring package in the fedora repos.
Then I installed the plasmoid. Result:
I recieved a valid plasmoid on my plasma desktop, but it never connects to sipgate. After a restart the plasmoid was not loaded again, something like "script could not be initialised" was displayed. After deleting it and add the plasmoid again to the desktop, it works again (but still no connection). But same bug after rebooting.
Then I installed python-keyring 0.5.1 from http://koji.fedoraproject.org/koji/buildinfo?buildID=215981
Result: When I try to add the plasmoid to to plasma desktop, plasma crashes.
I hope this information helps you! :)
Thanks for all your work.
Report
hefee
9 years ago
You don't need python-keyring for a working plasmoid, you only need it, if you want to use kwallt for backend.
Please deinstall python-keyring 0.5.1! This version is incopatible for kwallet! It is very likely that this version crashes plasma !
If you want to use the kwallet backend, either use python-keyring 0.4.X or the newest version from bitbucket. I can send you an instruction how to install the newest version from bitbucket.
Report
Naraku
9 years ago
Report
hefee
9 years ago
Report
rdorsch
9 years ago
I observe from time to time, that during the start of my KDE session, the panel, all plasmoid, the screen background, etc. die. Essentially I see only windows from the previous session, nothing else.
When I compare .xsession-errors from such a broken startup with a good startup, I see these additional entries there (I see these rarely, therefore I have only one testcase so far):
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 75, in init
self.pyapplet.init()
File "/home/rd/.kde/share/apps/plasma/plasmoids/sipgate-plasmoid/contents/code/main.py", line 98, in init
self.readConfig()
File "/home/rd/.kde/share/apps/plasma/plasmoids/sipgate-plasmoid/contents/code/main.py", line 117, in readConfig
self.updateMessages()
File "/home/rd/.kde/share/apps/plasma/plasmoids/sipgate-plasmoid/contents/code/main.py", line 141, in updateMessages
messages=self.server.getNewMessages()
File "/home/rd/.kde/share/apps/plasma/plasmoids/sipgate-plasmoid/contents/code/anbieter/sipgate.py", line 129, in getNewMessages
self.__connect()
File "/home/rd/.kde/share/apps/plasma/plasmoids/sipgate-plasmoid/contents/code/anbieter/sipgate.py", line 75, in __connect
self.__send_method(self.samurai.ClientIdentify, args_identify)
File "/home/rd/.kde/share/apps/plasma/plasmoids/sipgate-plasmoid/contents/code/anbieter/sipgate.py", line 83, in __send_method
xmlrpc_result = func(args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/python2.6/xmlrpclib.py", line 1243, in request
headers
xmlrpclib.ProtocolError: <ProtocolError for rdorsch:None@samurai.sipgate.net/RPC2: 401 Authorization Required>
I cannot say for sure that the sipgate plasmoid is the reason that the startup of the session is broken, but at least I see the difference above in the .xsession-errors file.
The complete .xsession-errors files (good start and broken start) are here:
http://bokomoko.de/~rd/sipgate-plasmoid/
Any insight what is the problem, if not the sipgate plasmoid, is very welcome.
Report
hefee
9 years ago
your link to your .xsessions-errors, I'll get a 403.
I see, I don't handle a bug of sipgate, I'll create a fix.
But onthe other hand one nonvalid plasmoid shouldn't break the plasma-desktop! So this is also a bug for them!
Can you give me your exact version number of python, kde and distri.
I don't have any problems with this plasmoid.
Dear,
hefee
Report
rdorsch
9 years ago
thanks for the quick reply.
I fixed the permission issue for the .xsession-errors file.
I am running Debian 6.0.1 (stable/squeeze).
KDE in there is 4.4.5, python is 2.6.6
Let me know if you need more information ( http://packages.qa.debian.org/ might help as well)
Report
hefee
9 years ago
I updated the plasmoid, so it shouldn't break anymore if sipgate server doesn't answers correctly.
Have you seen also the error in your .xsession-errors:
plasma-desktop(2810)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 2 (X_ChangeWindowAttributes)
Resource id: 0x1c01004
I think there is a other problem, but who knows ;)
dear
hefee
Report
rdorsch
9 years ago
I downloaded then the entire package 114887-sipgate-plasmoid.zip and replaced /home/rd/.kde/share/apps/plasma/plasmoids/sipgate-plasmoid but with that, the plasmoid did not even start anymore.
Do you know the proper way to update a plasmoid? If there is none or not clear, did you maybe just update a single file, which I could replace?
Report
hefee
9 years ago
To update a plasmoid use:
plasmapkg -u sipgate-plasmoid.zip
to view the plasmoid as single window use:
plasmoidviewer sipgate-plasmoid
Report
JanGerrit
10 years ago
Unfortunately, the connection view is not displayed correctly (calls and faxes), the account summary works.Could it be that something has changed in the Sipgate API?
Greetings,
Jan Gerrit
PS: To all people who have problems to run the widget, you've to install "python-magic", "python-keyring-kwallet" and "python-keyring", too.
Report
JanGerrit
10 years ago
> nope you shouldn't need it if you select save to configuration file...
I don't know exactly why, but I've to install "python-magic", "python-keyring-kwallet" and "python-keyring" to start the application first time. Could it be that "save in keyring" is the default value?
The connection view doesn't work because Sipgate Basic has no fax messages. If I comment out line 145 in main.py it's getting to work for me.
#For Sipgate Basic comment out line 145:
#self.fax.setText("<b>%i</b>/%i"%(messages['fax']['unread'],messages['fax']['read']))
Greetings,
Jan Gerrit
Report
hefee
10 years ago
is solved in the updated version 0.1.2
now you need only the package python-keyring-kwallet ( and this needs python-keyring), if you want to use kwallet for saving the password.
>The connection view doesn't work because Sipgate Basic has no fax messages. If I comment out line 145 in main.py it's getting to work for me.
the version v0.1.2 has a patch for that problem - not ideal but now it'll show you the invoices correct.
Report
hefee
10 years ago
nope you shouldn't need it if you select save to configuration file...
Report
hefee
10 years ago
maybe just wait about 10min, cause if it couldn't get connected - it will wait 10min and then try again.
Report
Pluribootent
11 years ago
I will really appreciate a little howto
Report
hefee
11 years ago
But before it works you'll need python bindings fpr plasma. On debian systems this is the package: plasma-scriptengine-python
Report