Archive > 18.7 Legacy Series

18.7.6 issues with NTP & GPS

(1/3) > >>

va176thunderbolt:
I have a GPS attached serially and configured in NTP as a time source. Works great - sync's right up. However, when I go into Services/Network Time/Status, I get a php error:

[30-Oct-2018 09:38:37 Etc/GMT-5] PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 100
[30-Oct-2018 09:38:37 Etc/GMT-5] PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 102
[30-Oct-2018 09:38:37 Etc/GMT-5] PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 103
[30-Oct-2018 09:38:37 Etc/GMT-5] PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 105

The Dashboard Network Time widget  also chokes.

I've submitted a couple of error reports, and I'd be happy to allow someone access if they needed to test/troubleshoot on my box.

Adam

franco:
Hi Adam,

Would you mind providing the output of:

# /usr/local/sbin/ntpq -c clockvar


Thanks,
Franco

va176thunderbolt:
adam@gw:~ % sudo /usr/local/sbin/ntpq -c clockvar
Password:
associd=0 status=00f2 15 events, clk_bad_format,
device="NMEA GPS Clock",
timecode="$GPRMC,112850,A,____.____,_,_____.____,_,000.0,190.7,301018,007.0,W*__",
poll=21419, noreply=8, badformat=261, baddata=0, fudgetime2=600.000,
stratum=0, refid=GPS, flags=13
adam@gw:~ %

franco:
Super, thanks! Will fix for 18.7.7.

https://github.com/opnsense/core/issues/2861


Cheers,
Franco

franco:
Is ____.____ the actual output or did you blank it? I'm asking because it can't parse latitude and longitude and I'm unsure how to parse correctly what is actually returned. I don't need the exact values, just the info whether each "_" is literally a number or not.


Cheers,
Franco

Navigation

[0] Message Index

[#] Next page

Go to full version