What's new

ntpMerlin ntpMerlin - NTP Daemon for AsusWRT Merlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

oh it is working now jack i just wanted to let you know about the installing part. me manually moving it down fixed the issue
 
Stupid question, how does one use the proper named entry from the dict file?
I can't find any examples. It looks like <title><#Web_Title#> is what Merlin is referring to at build time.

I suspect that it would be more trouble than just grepping the correct number in shell script
Code:
grep '<title><#' /www/index.asp | cut -d '#' -f 2
 
Code:
##########################################################
##                                                      ##
##         _           __  __              _  _         ##
##        | |         |  \/  |            | |(_)        ##
##  _ __  | |_  _ __  | \  / |  ___  _ __ | | _  _ __   ##
## | '_ \ | __|| '_ \ | |\/| | / _ \| '__|| || || '_ \  ##
## | | | || |_ | |_) || |  | ||  __/| |   | || || | | | ##
## |_| |_| \__|| .__/ |_|  |_| \___||_|   |_||_||_| |_| ##
##             | |                                      ##
##             |_|                                      ##
##                                                      ##
##                  v1.2.5 on RT-AC88U                  ##
##                                                      ##
##       https://github.com/jackyaz/ntpMerlin           ##
##                                                      ##
##                                                      ##
##               DST is currently Inactive              ##
##                                                      ##
##    DST starts on Month 3 Week 2 Weekday 0 Hour 2     ##
##    DST ends on Month  10 Week 2 Weekday 0 Hour 2     ##
##                                                      ##
##########################################################

1.    Generate updated ntpMerlin graphs now

2.    Toggle redirect of all NTP traffic to ntpMerlin
      (currently Disabled)

3.    Edit ntpMerlin config

u.    Check for updates
uf.   Update ntpMerlin with latest version (force update)

e.    Exit ntpMerlin

z.    Uninstall ntpMerlin

##########################################################

Choose an option:    1

ntpq: read: Connection refused
Press enter to continue...


admin@Fatiii:/tmp/home/root# /opt/etc/init.d/S77ntpd restart
S77ntpd: Waiting for NTP to sync before starting...
 Shutting down ntpd...              failed.
 Starting ntpd...              already running.
admin@Fatiii:/tmp/home/root#

I've re-installed but still it still says: "ntpq: read: Connection refused" any ideas?
The ntp.conf included with ntpMerlin allows full access from localhost so the most likely explanation was that ntpd was not running.
 
Code:
# replace the following time servers to the ones close to you
# see http://support.ntp.org/bin/view/Servers/NTPPoolServers
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst

interface ignore wildcard
interface listen br0

logfile /opt/var/spool/ntp/ntp.log
driftfile /opt/var/spool/ntp/ntp.drift
#leapfile /opt/var/spool/ntp/leap-seconds.list # https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

restrict default limited kod nomodify notrap nopeer noquery # restrictive default IPv4
restrict -6 default limited kod nomodify notrap nopeer noquery # restrictive default IPv6
restrict source nomodify notrap noquery # required for pool directive if using restrictive default permissions
restrict 127.0.0.1 # permissive localhost IPv4
restrict -6 ::1 # permissive localhost IPv6

disable auth stats

after reboot it seems better but;

Code:
admin@Fatiii:/tmp/home/root# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 n1.taur.dk      .PPS1.           1 u  49y   64    3  1555838  7779194 7779194
 lx.ujf.cas.cz   .GPS.            1 u    9   64    3   59.164   -2.425 5500721
*ht-time01.isnic .GNSs.           1 u    6   64    3  105.119   -1.612   7.028
 138.68.46.177 ( 90.187.7.5       2 u   10   64    3  202.986    0.820 3478961
admin@Fatiii:/tmp/home/root# ntptime
ntp_gettime() returns code 5 (ERROR)
  time e066b64e.041b21c4  Sun, Apr 21 2019  9:28:46.016, (.016039423),
  maximum error 16000000 us, estimated error 16000000 us, TAI offset 0
ntp_adjtime() returns code 5 (ERROR)
  modes 0x0 (),
  offset 0.000 us, frequency -2.784 ppm, interval 1 s,
  maximum error 16000000 us, estimated error 16000000 us,
  status 0x2041 (PLL,UNSYNC,NANO),
  time constant 3, precision 0.001 us, tolerance 500 ppm,

I'll edit config file and put other servers and try them.
The pool's DNS geolocation code is inconsistent. There are pools by continent and country to get around this.
Code:
server 0.tr.pool.ntp.org iburst
server 1.tr.pool.ntp.org iburst
server 2.tr.pool.ntp.org iburst
server 3.tr.pool.ntp.org iburst
The Turkey pool only has 15 IPv4 servers which is surprising.
Alternatively you can use pool instead of four servers
Code:
pool tr.pool.ntp.org iburst
 
Stupid question, how does one use the proper named entry from the dict file?

If you are providing a customized version of the webpage, you must replace all <#strings#> entries with actual text strings. Using the dict named tags (like <#System_title#>) will result in the webui showing "English" instead, and using a <#12345#> string will result in randomly showing the wrong string if the firmware build is different from yours.
 
Not to be rude, but this is ridiculous advice. I am just reporting a cosmetic issue as a courtesy to the developer. It is completely unimportant, and my router is functioning perfectly.

You may take the statements I make any way you wish of course. You did not hire me for my expertise here. ;)

Whether it is a cosmetic issue or not is not my call to make (others know much more than I on that topic), but what I do know is that when seemingly random bugs show up, that is an indication of an unstable firmware install to me. But I've been proved wrong before. But as of now, this is the first time I've heard of the issue you brought up.

I can only try to help with what I know.

If you think you know more about any specific issue, then please simply ignore my small attempts to try to understand and help, where I am most able to.
 
I can only try to help with what I know.

If you think you know more about any specific issue, then please simply ignore my small attempts to try to understand and help, where I am most able to.
Thank you for trying to help.
 
My Kodi box (EM7680) could not sync time until I have mangled TCP. Error message was "peer is unsynced". After I mangled TCP it works out of the box.

https://www.speedguide.net/port.php?port=123 says NTP uses both TCP and UDP (IANA has assigned both).
I have Kodi running on a couple of Pis using OSMC. Once I've finished moving on Friday, I'll test it out (most of my gear is sat in boxes)
 
Hi Jack
On the menu splash screen it says DST is currently active - when it actually ceased on the 1st week of April. It should say inactive should it not?

Code:
DST is currently Active
DST starts on Month 10 Week 2 Weekday 0 Hour 2
DST ends on Month 4 Week 1 Weekday 0 Hour 2
 
Last edited:
Hi Jack
On the menu splash screen it says DST is currently active - when it actually ceased on the 1st week of April. It should say inactive should it not?

Code:
DST is currently Active
DST starts on Month 10 Week 2 Weekday 0 Hour 2
DST ends on Month 4 Week 1 Weekday 0 Hour 2

DST is active, the start/end is quoted the wrong way around; it started in April and ends in October.


Sent from my iPhone using Tapatalk
 
DST is active, the start/end is quoted the wrong way around; it started in April and ends in October.


Sent from my iPhone using Tapatalk

Unless you are in the Southern Hemisphere!?


Sent from my iPhone using Tapatalk
 
DST is active, the start/end is quoted the wrong way around; it started in April and ends in October.

Sent from my iPhone using Tapatalk
Unless @joe scian is in Australia or other country south of the equator ...
 
Hi Jack
On the menu splash screen it says DST is currently active - when it actually ceased on the 1st week of April. It should say inactive should it not?

Code:
DST is currently Active
DST starts on Month 10 Week 2 Weekday 0 Hour 2
DST ends on Month 4 Week 1 Weekday 0 Hour 2
That's just being pulled from nvram. What does your dst settings in the webui look like?
 
That's just being pulled from nvram. What does your dst settings in the webui look like?

yes its wrong there as well and I am in Sydney Australia - looks like its an Asus bug
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top