Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

9
Become a Fan
7.2

Description:
There has been an issue with the character encoding of the date. It should be fixed now, but I couldn't test it myself, since the python bindings for KDE 4.4.1 are still missing in Debian.

Requires KDE > 4.3!

Plasma widget for the daily text (bible verse) selected by the Moravian Church (Herrnhuter Brüdergemeinde). Unfortunately, the widget does not contain an English translation of the bible verses due to copyright issues. Requires python script-engine.

Plasma widget für die (tägliche) Losung der Herrnhuter Brüdergemeinde an. Benötigt die python script-engine.

I started this widget as an exercise for learning the plasma API. I'm not sure if it is of any use for anybody - especially since I cannot provide an English translation of the verses - but don't hesitate to contact me, if you have any suggestions for improvement.
Last changelog:

0.3.3 2011-01-23
[indent]* Added texts for 2011[/indent]
0.3.2 2010-03-15
[indent]* Fixed character encoding issue with strftime (Thanks to Philipp Hahn)[/indent]
0.3.1 2009-11-09
[indent]* Added error message for the case that losungen texts are missing.[/indent]
0.3 2009-11-09
[indent]* Added texts for 2010 and adapted parser to new column ordering.
* Applied patch from Ruthard Baudach with minor modifications; replaces "/" and "#" into HTML format tags.[/indent]
0.2.1
[indent]* Fixed persistence of configuration parameters.[/indent]
0.2
[indent]* Added configuration dialog for font size and "Bible URL".
* Fixed encoding issue in the info dialog.[/indent]
0.1.1 Bugfix release.
[indent]* Fixed encoding issue.
* Fixed CSS template.[/indent]
0.1 Initial release.


Ratings & Comments

43 Comments

bodiro

Since it isn't working anymore, will there be an update for plasma 6? That would be great!

AlmaTlust

Are there plans to develop a qml plasmoid for kf5?

lineinthesand

I made a simple widget analogous to this one for plasma 5 (https://store.kde.org/p/1176348), I hope it's useful. If you have any suggestions, feel free to drop me a note.

odysseus2010

Hello all, I get every time the Message that the Init of the script is failed. I think the reason is the encoding of the CSV-File. The encoding of the CSV-File has changed from ISO8859-1 to utf-16. My First Fix-Steps has not worked. I have changed the lines: self.losungsVers = data[LOSUNG_FORMAT_DICT[year]["losVers"]].decode("ISO8859-1") self.losungsText = data[LOSUNG_FORMAT_DICT[year]["losText"]].decode("ISO8859-1") self.lehrtextVers = data[LOSUNG_FORMAT_DICT[year]["lehrVers"]].decode("ISO8859-1") self.lehrtext = data[LOSUNG_FORMAT_DICT[year]["lehrText"]].decode("ISO8859-1") to self.losungsVers = data[LOSUNG_FORMAT_DICT[year]["losVers"]].decode("utf-16") self.losungsText = data[LOSUNG_FORMAT_DICT[year]["losText"]].decode("utf-16") self.lehrtextVers = data[LOSUNG_FORMAT_DICT[year]["lehrVers"]].decode("utf-16") self.lehrtext = data[LOSUNG_FORMAT_DICT[year]["lehrText"]].decode("utf-16") Has another a working idea? Thanks.

weihenstefan

Hej Odysseus, I tried it the other way round: Open the 2015 csv-file and save it in ISO8859-1 encoding. This worked for me. You may find my converted file here: http://www.stefanheilemann.de/transfer/losungen15.csv Hope this helps. Be blessed, Stefan

odysseus2010

Hello Stefan, Thanks for the converted file. The conversion was also my first Solution-Idea. But then I thougth that this is a Workaroud that must done every year. The better solutios is to solve it on the root. The now wrong Import-of the CSV-File. So I will use the workaround, but I think we should show that we can solve the Issue in a correct way before the next year starts. Oliver

bodiro

Helped me, too. Hope to use this applet in future, too.

AndrewPotter

Files can be downloaded at this page. http://www.losungen.de/download/download.php

BrianHayden

The King James Version is public domain and copyright laws do not pertain to it. You could use it and be safe.

AndrewPotter

I have the Losungstexte for 2013 working on my plasma desktop (KDE 4.9.5 release 3). I used the post from FeG Re: "Losungstexte for the year 2011" (Jan 1 2011) as my basis and performed the following 6 steps: 1.) Download the 2013 Texts from http://www.brueder-unitaet.de/download/Losung_2011_CSV.zip 2.) Extract the contents from the file "Losung_2013_CSV.zip" 3.) Copy the file "Losungen Free 2013.csv" to the directory ~/.kde4/share/apps/plasma/plasmoids/losungen/contents/ 4.) Change the name of the newly copied file to be "losungen13.csv" 5.) Edit the file ~/.kde4/share/apps/plasma/plasmoids/losungen/contents/code/main.py Change the block near line 33 From something like this ... LOSUNG_FORMAT_DICT = { "12" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}, "09" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}, "10" : {"losVers": 4, "losText": 3, "lehrVers": 6, "lehrText": 5}, "11" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}, } ... to this (adding a line for the year 13) LOSUNG_FORMAT_DICT = { "13" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}, "12" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}, "09" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}, "10" : {"losVers": 4, "losText": 3, "lehrVers": 6, "lehrText": 5}, "11" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}, } 6.) Exit and restart KDE, The Widget should now be working :)

rasch

Thank you for posting, worked for me as well!

mkretz

If you want to update the Losungen texts to 2012 you can download http://kretzfamily.de/losung_update.desktop and "execute" it. It will update the Losungen to 2012. If the format of the texts, as provided by bruder-unitaet.de, doesn't change, then the same script will also work in the coming years.

AndrewPotter

Thanks for the Update script. Worked right out of the box.:)

wwjd2012

The link to the kretzfamily page to get the updated Losungen seems no longer to exist. Is there any possibility to get the skript anymay? I miss the Losungen on my desktop ;-)

mkretz

Right, sorry about that. Getting an ISP to provide Internet access for me at home has been (once again) a major problem. I hope to have kretzfamily.de back up next week.

DivanSantana

I've tried changing the URL to http://www.bibleserver.com/go.php?lang=en&bible=NIV&ref=#REF# and doesn't seem to make any difference. Any suggestions on correct URL for english and NIV?

DivanSantana

Also tried http://www.bibleserver.com/go.php?lang=2&bible=NIV&ref=#REF# Which seems correct but the widget doesn't change at all. Is this a bug or am I doing something wrong.

karx11erx

Hallo, habe extra KDE für dieses Plasmoid installiert. Allerdings lässt es sich nicht vie Minianwendungen hinzufügen installieren - der Installer findet in keinem der Unterverzeichnisse des Plasmoids irgendwas, was er installieren könnte. Im README kurz zu erklären, wie man das installiert, wäre wirklich nicht die Welt gewesen. Wie macht man es denn nun?

odysseus2010

Hello, your plasma widget is great I use it since 2009. But now I need the texts for the year 2011. When are the new textes avalible? regards Odysseus2010

FeG

The new texts are available here: http://www.brueder-unitaet.de/download/Losung_2011_CSV.zip. Download the zip file and extract the CSV file to

~/.kde/share/apps/plasma/plasmoids/losungen/contents/losungen11.csv
You than have to edit
~/.kde/share/apps/plasma/plasmoids/losungen/contents/code/main.py
as follows (patch)
--- main.py.old 2011-01-01 13:01:18.000000000 +0100
+++ main.py     2011-01-01 13:00:15.000000000 +0100
@@ -32,7 +32,8 @@
 
 LOSUNG_FORMAT_DICT = {
   "09" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6},
-  "10" : {"losVers": 4, "losText": 3, "lehrVers": 6, "lehrText": 5}
+  "10" : {"losVers": 4, "losText": 3, "lehrVers": 6, "lehrText": 5},
+  "11" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}
 }
 
 class Losung(object):
That is, in line 35 ("10" : ...) add a , (comma) at the end of the line and insert the line
  "11" : {"losVers": 3, "losText": 4, "lehrVers": 5, "lehrText": 6}
below line 35. I then had to remove and re-add the plasmoid and it worked. Regards, FeG

weihenstefan

Thank you very much, update worked perfectly for me! Great plasmoid, can't live without it any more...

odysseus2010

Hello, Thanks for the Patch. It works fine. Now I have the new losungen for the new year. Odysseus2010

jwchile

I'm sorry for the late update. In case you didn't update the plasmoid yourself already: The new version has the new texts.

mkretz

You can download a script from http://kretzfamily.de/losung_update_2011.sh and a helper .desktop file from http://kretzfamily.de/losung_update_2011.desktop to automate the Update.

DrM

nice work ! All fine ! GBY

Pling
0 Affiliates
Details
license
version 0.3.3
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0