Release - Digital Clock Screensaver

  Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Milhouse Offline
Team-Kodi Member
Posts: 12,459
Joined: Jan 2011
Reputation: 606
Post: #16
(2015-09-27 21:24)vdb86 Wrote:  Ok, got the idea now.
Add-ons can't define their own fonts, so that's the first no.

Doesn't help you right now, but you might want to keep an eye on this thread.

Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #17
(2015-10-04 00:26)Milhouse Wrote:  
(2015-09-27 21:24)vdb86 Wrote:  Ok, got the idea now.
Add-ons can't define their own fonts, so that's the first no.

Doesn't help you right now, but you might want to keep an eye on this thread.

Thanks Milhouse for the heads up!.
It would be a lot easier if we could define and use our own fonts, right now half of the time I have to bug skin developers to add/change something to Fonts.xml or I have to do it myself and create a pull request which might/might not get accepted.

Digital Clock Screensaver with a lot of options - check it out!
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #18
@Milhouse
Do you know what's happening with Transifex?
Some languages are at 100% but no one's reviewing them.
Razze has pointed out that there is a bigger source code rework happening right now and that that is causing the slow down with translations and adding new addons to Transifex.
is this correct?
What are the big changes, something in Jarvis?

Digital Clock Screensaver with a lot of options - check it out!
find quote
Milhouse Offline
Team-Kodi Member
Posts: 12,459
Joined: Jan 2011
Reputation: 606
Post: #19
Sorry I've no idea about Transifex. The biggest change going on right now is VideoPlayer but that's unlikely to make it into Jarvis, more likely K*.

Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #20
Thank you for all your help and time!

Digital Clock Screensaver with a lot of options - check it out!
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #21
(2015-09-27 14:04)lady0421 Wrote:  
(2015-09-24 20:15)vdb86 Wrote:  @lady0421
I've added the option for weather, it's not added to the official repository yet, but you can get it from the github and test it out.

You are a legend! It worked amazingly well. I love it, thank you!!

Small request - do you think you can draw the icon of the weather forecast, like, when it's sunny, it has the sunny - it looks a lot cuter with the icon! It's not that important, really, with or without it, I'm not changing my screensaver for a long long time!

You might want to check out the newest version. It has a weather icon now Smile

Digital Clock Screensaver with a lot of options - check it out!
find quote
cnwoods Offline
Junior Member
Posts: 9
Joined: Apr 2014
Reputation: 0
Post: #22
Hello vdb86. This screensaver is exactly what I've been looking for. There are a couple of problems however: firstly, the font size of the time is very small.

I use the Transparency! skin. The problem has only appeared with the last update. It looks like the code may not be properly detecting the skin, as it loads ~/.kodi/addons/screensaver.digitalclock/resources/skins/default/720p/skin.default.xml rather than ~/.kodi/addons/screensaver.digitalclock/resources/skins/default/720p/skin.transparency.xml. As a quick fix I exited kodi and copied skin.transparency.xml to skin.default.xml (after backing the latter up). After restarting kodi the screensaver loads the correct (transparency) fonts.

Secondly, the time/date is remaining in the centre of the screen, i.e. it doesn't shift around. Here's a short log extract:


Code:
00:55:14 T:140171383121664   DEBUG: CPythonInvoker(60, /home/neil/.kodi/addons/screensaver.digitalclock/default.py): instantiating addon using automatically obtained id of "screensaver.digitalclock" dependent on version 2.1.0 of the xbmc.python api
00:55:14 T:140173188212736   DEBUG: ------ Window Init (/home/neil/.kodi/addons/screensaver.digitalclock/resources/skins/default/720p/skin.default.xml) ------
00:55:14 T:140173188212736    INFO: Loading skin file: /home/neil/.kodi/addons/screensaver.digitalclock/resources/skins/default/720p/skin.default.xml, load type: LOAD_ON_GUI_INIT
00:55:14 T:140173188212736   DEBUG: Load /home/neil/.kodi/addons/screensaver.digitalclock/resources/skins/default/720p/skin.default.xml: 3.17ms
00:55:14 T:140173188212736   DEBUG: Alloc resources: 3.27ms  (3.27 ms skin load)
00:55:14 T:140173188212736   DEBUG: CGUIMediaWindow::GetDirectory ()
00:55:14 T:140173188212736   DEBUG:   ParentPath = []
00:55:14 T:140171383121664  NOTICE: Digital Clock Screensaver: INIT
00:55:14 T:140171383121664   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'Screensaver' object has no attribute 'conditions'
                                            Traceback (most recent call last):
                                              File "/home/neil/.kodi/addons/screensaver.digitalclock/default.py", line 221, in onInit
                                                self.DisplayTime()
                                              File "/home/neil/.kodi/addons/screensaver.digitalclock/default.py", line 227, in DisplayTime
                                                if self.conditions == 'Busy':
                                            AttributeError: 'Screensaver' object has no attribute 'conditions'
                                            -->End of Python script error report<--

I'm using the latest Isengard 15.2 on Debian Linux compiled from git repo.

Hope this helps. Thanks.

Debug Kodi x64 build (16.0 Git:2016-02-20-a5f3a99)
Debian 8 (jessie), kernel: Linux x86 64-bit version 3.16.0-4-amd64
FFmpeg statically linked, version: 2.8.6-kodi-2.8.6-Jarvis-16.0
Transparency! 9.1.2 / Xonfluence 3.2.9
(This post was last modified: 2015-10-23 14:27 by cnwoods.)
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #23
Hi cnwoods, sorry for the inconvenience!
I'll take a look at what's happening and fix it.
Thanks for letting me know!

Digital Clock Screensaver with a lot of options - check it out!
(This post was last modified: 2015-10-23 09:51 by vdb86.)
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #24
@ cnwoods, I've taken a look and unfortunately can't reproduce this issue.
Neither on my windows 7 laptop or on my Raspberry Pi 2 running Openelec.
I might have an idea what the problem is.
Could you try please skin mimic and let me know if that one works with my screensaver or not?

Thank you

Digital Clock Screensaver with a lot of options - check it out!
(This post was last modified: 2015-10-23 12:32 by vdb86.)
find quote
cnwoods Offline
Junior Member
Posts: 9
Joined: Apr 2014
Reputation: 0
Post: #25
(2015-10-23 12:31)vdb86 Wrote:  @ cnwoods, I've taken a look and unfortunately can't reproduce this issue.
Neither on my windows 7 laptop or on my Raspberry Pi 2 running Openelec.
I might have an idea what the problem is.
Could you try please skin mimic and let me know if that one works with my screensaver or not?

Thank you

I installed mimic and the font size looks good, however the second problem still remains together with the fact (which I forgot to mention earlier) of the time not actually being updated on the screen. The log shows a similar python exception to the one I quoted earlier.

Let me know if you want me to upload a full debug log.

Cheers.

Debug Kodi x64 build (16.0 Git:2016-02-20-a5f3a99)
Debian 8 (jessie), kernel: Linux x86 64-bit version 3.16.0-4-amd64
FFmpeg statically linked, version: 2.8.6-kodi-2.8.6-Jarvis-16.0
Transparency! 9.1.2 / Xonfluence 3.2.9
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #26
(2015-10-23 21:42)cnwoods Wrote:  I installed mimic and the font size looks good, however the second problem still remains together with the fact (which I forgot to mention earlier) of the time not actually being updated on the screen. The log shows a similar python exception to the one I quoted earlier.

Let me know if you want me to upload a full debug log.

Cheers.
To be honest I'm baffled with this, I guess that python is causing all of these problems.
Python script is responsible for choosing the right xml file (which corresponds to the used skin ) and for updating time (not the date).
I guess there is a problem with python or python libraries which are on you system, but unfortunately I'm not capable of debugging that.
Except for the update of Digital Clock Screensaver has anything else changed or updated on your system?

Digital Clock Screensaver with a lot of options - check it out!
find quote
Martijn Offline
Team Kodi
Posts: 16,935
Joined: Jul 2011
Reputation: 310
Location: Dawn of time
Post: #27
Why don't you properly Initialize self.conditions?

Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #28
Hi Martijn,
the reason is simple, all that I made was done by trial and error, I have never used python and haven't done any coding in a while.
I read a lot before I even began coding this screensaver, but unfortunately there are things which I don't understand.
To be quite honest I don't even know what it means to properly initialize self.conditions.
I'll gladly try to fix whatever needs fixing!

Digital Clock Screensaver with a lot of options - check it out!
find quote
cnwoods Offline
Junior Member
Posts: 9
Joined: Apr 2014
Reputation: 0
Post: #29
(2015-10-23 23:14)vdb86 Wrote:  
(2015-10-23 21:42)cnwoods Wrote:  I installed mimic and the font size looks good, however the second problem still remains together with the fact (which I forgot to mention earlier) of the time not actually being updated on the screen. The log shows a similar python exception to the one I quoted earlier.

Let me know if you want me to upload a full debug log.

Cheers.
To be honest I'm baffled with this, I guess that python is causing all of these problems.
Python script is responsible for choosing the right xml file (which corresponds to the used skin ) and for updating time (not the date).
I guess there is a problem with python or python libraries which are on you system, but unfortunately I'm not capable of debugging that.
Except for the update of Digital Clock Screensaver has anything else changed or updated on your system?

No, nothing. I don't think there's anything wrong with the python libs as I'm sure I would have noticed it. Maybe I should run the test suite to make sure... hmm.

Thanks anyway.

Debug Kodi x64 build (16.0 Git:2016-02-20-a5f3a99)
Debian 8 (jessie), kernel: Linux x86 64-bit version 3.16.0-4-amd64
FFmpeg statically linked, version: 2.8.6-kodi-2.8.6-Jarvis-16.0
Transparency! 9.1.2 / Xonfluence 3.2.9
find quote
vdb86 Offline
Senior Member
Posts: 175
Joined: Jun 2014
Reputation: 6
Post: #30
I'm still looking into it, if I figure out what's wrong I'll fix it right away.

Digital Clock Screensaver with a lot of options - check it out!
find quote
Post Reply