Posted: . At: 8:12 PM. This was 5 years ago. Post ID: 13009
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Get the proper time from digital TV with the command line.


How to get the proper time from a DVB receiver with the command line. This only works if you are connected to a DVB transmission. Then you can get the time from the transmission.

4.4 Tue Mar 19 jason@Yog-Sothoth 0: $ dvbdate --print
System time: Tue Mar 19 19:43:49 2019
RX time: Tue Mar 19 09:43:44 2019
Offset: -36005 seconds

This can also be used to set the system time easily.

This command showed me how much the system time differed from the actual time.

4.4 Tue Mar 19 jason@Yog-Sothoth 0: $ dvbdate --set
Tue Mar 19 09:55:29 2019
dvbdate: multiplex time differs by more than 1800 from system.
dvbdate: use -f to force system clock to new time.

Then I could run it as root to set the system time. This could be in a cron job, but it seems that you would require Myth TV backend running all of the time to be connected to a multiplex to be able to run this command.

4.4 Tue Mar 19 jason@Yog-Sothoth 0: $ sudo dvbdate --set -f
1) All commands run with root privileges are always dangerous.
2) Never run commands on an environment you are not willing to destroy, or able to restore.
3) Do not become root until you know what you are going to do.
4) Be sure of your command and what is going to be affected by it.
[sudo] password for jason: 
Tue Mar 19 09:55:45 2019

This could be very useful. All you need is a DVB receiver.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.