Project

General

Profile

Time Update function

Added by Csaba Benedek over 9 years ago

Hi!

I'm using the latest OpenElec 5.0.8 with tvheadend 3.9.2675~ge4f034a on a Raspberry Pi. The Pi is not connected to the internet, so I want to use the Time Update feature.

I set up everything, connected the antenna to the tuner, I can watch TV. I left it run for a while, but the time has not updated yet. Is there any way to trigger/test this feature, if it is really working?


Replies (3)

RE: Time Update function - Added by Prof Yaffle over 9 years ago

I've just taken a wander through the code, and I can't for the life of me see where such a time update would be called. I can see the code to update the time in tvhtime.c, but nowhere can I see the tvhtime_update() function actually being called.

It looks like it used to be in dvbtables.c, but that file is no longer there, so I wonder if the functionality was removed when analogue support was dropped. I might be missing something obvious, though, so don't hold me to that at the moment.

I suggest you switch debug logging on and see if there's anything in the log file and/or enable trace on tvhtime (Configuration -> Debugging) and see what happens. There are some debug functions in that code that should write to the logfiles if they're working, but I strongly suspect that the internal time update modules simply aren't being used any more... in which case, you're into raising a bug/feature request initially or finding some other way to update the time.

As I said, not 100% certain on the diagnosis, but that's what it looks like to my idiot eye.

(Oh, and you don't even have the function enabled in that png, so I'd start by switching it on, just in case :) )

RE: Time Update function - Added by Csaba Benedek over 9 years ago

Sure, I ticked it on, but it was also strange, that after several reboots, I find them unticked...
I even enabled debug logging, but found nothing in it except the usual epg grap, etc. messages.

I try to raise then a feature request. My other options to solve this problem would be a kodi addon where I could set the time manually, or to hack an RTC onto the PI.
But this TVH solution would be the best.

RE: Time Update function - Added by Csaba Benedek over 9 years ago

Whohoo, the bug is fixed!

In the meantime I managed to write a time setting add-on for kodi, but I'm not a programmer, so the code is very basic.

With a simplified reFocus skin (only 3 main menus: Videos-TV-Exit), the pi with a tuner is now a very capable drop-in replacement of a dvb media player.

    (1-3/3)