开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: NTP / GPSD config problem

 

开云体育

IIRC, there is an option in ntpd to force an update of the time. ?It won’t update automatically if the system time (set to the last time it shutdown) is more than 16 min off from the correct time.?

This is a guess, I’ve gotten it to work but I don’t recall the details.

Clark Martin

KK6ISP

Yet another designated driver on the information super highway.


On Apr 10, 2021, at 10:25 PM, Greg D <ko6th.greg@...> wrote:

? Hi all,

I'm SOOO close.? What nit am I missing?

I have a Raspberry Pi 3B (Raspbian Stretch) with YAAC running in my car.? USB GPS puck is connected, and I have GPSD running.? The GPS has a fix, and YAAC sees GPSD and correctly centers the map on where I am.? If I move the map, YAAC moves it back.? Yay!

But I can't get the Pi's clock to use the GPS time via NTP; it defaults to the time of the last shutdown.

I followed the instructions on several websites to add the following to /etc/ntp.config.?
# gps ntp
server 127.127.28.0 minpoll 4
fudge? 127.127.28.0 time1 0.183 refid NMEA
server 127.127.28.1 minpoll 4 prefer
fudge? 127.127.28.1 refid PPS
I also commented out the Internet-based pool servers, to force the use of the GPS.? Yet, the system time & date is not updated to current.? Forcing ntp to restart and similar don't help.

There are vague comments on various sites about the defaults for GPSD not being right, but nothing about what exactly is wrong nor how to fix it.

What did I miss?

Thanks,

Greg? KO6TH


NTP / GPSD config problem

 

开云体育

Hi all,

I'm SOOO close.? What nit am I missing?

I have a Raspberry Pi 3B (Raspbian Stretch) with YAAC running in my car.? USB GPS puck is connected, and I have GPSD running.? The GPS has a fix, and YAAC sees GPSD and correctly centers the map on where I am.? If I move the map, YAAC moves it back.? Yay!

But I can't get the Pi's clock to use the GPS time via NTP; it defaults to the time of the last shutdown.

I followed the instructions on several websites to add the following to /etc/ntp.config.?
# gps ntp
server 127.127.28.0 minpoll 4
fudge? 127.127.28.0 time1 0.183 refid NMEA
server 127.127.28.1 minpoll 4 prefer
fudge? 127.127.28.1 refid PPS
I also commented out the Internet-based pool servers, to force the use of the GPS.? Yet, the system time & date is not updated to current.? Forcing ntp to restart and similar don't help.

There are vague comments on various sites about the defaults for GPSD not being right, but nothing about what exactly is wrong nor how to fix it.

What did I miss?

Thanks,

Greg? KO6TH


Re: Objects on map aren't updaing

 

Hello,

I did a cut and paste as I'm new to Linux and wanted to make sure I was giving you correct info.

java -showversion
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.20.04, mixed mode)
?


Re: Objects on map aren't updaing

 

Hmmm... what version of the Java runtime are you using? I know I had failures reported back when Java 9 first came out, and I noticed that Java 16 was just released; are you using it?

Andrew, KA2DDO
author of YAAC
________________________________________
From: [email protected] <[email protected]> on behalf of Rob <luminoxs@...>
Sent: Thursday, April 8, 2021 1:07 PM
To: [email protected]
Subject: Re: [yaac-users] Objects on map aren't updaing

Andrew,

I'm having the same problem with normal APRS stations and objects. I'm using YAAC ver 1.0-beta163(29-Dec-2020) and the ADS-B plugin ver 0.2b.

Rob


Should I be able to see other stations on my YAAC map?

M0HKG - Martin
 

Firstly, an awesome piece of software - I appreciate all the hard work that's gone in to creating YAAC!

I am a new RPi user and struggling with the?vagueries of Linux, and this is probably a very dumb question but please bear with me.

I'm 100% convinced that earlier today, my YAAC map was showing the local radio (M0HKG), the radio on my sailboat (M0HKG-7) and all the other stations that I'd normally see on aprs.fi.? YAAC was also reporting my local radio and my sailboat to aprs.fi.

Which was exactly what I wanted.

I tried 'upgrading' my RPi by shutting down the OS and re-plugging everything (including the SD card) into a newer board but then I wasn't not seeing the stations I could see on aprs.fi. So, I swapped everything back and all I can see is the local radio (M0HKG) and the radio on my sailboat (M0HKG-7).

YAAC seems to be sending my beacon from my sailboat through to aprs.fi and I can get on to the internet just fine from the RPi. And I can beacon YAAC to another radio locally which shows up on PinPoint (Windows) but I can't see any other stations on the YAAC map...

I'm aware of the old saying, if it ain't broke and I should have heeded the advice...?

My questions are, 1) did I REALLY see other stations on my YAAC map?? And, 2) if so, how do I get them back?

I've attached a copy of my configuration file for reference, and any suggestions would be appreciated.

Thanks/73s

Martin
m0hkg


Re: Objects on map aren't updaing

 

Andrew,

? I'm having the same problem with normal APRS stations and objects. I'm using YAAC ver 1.0-beta163(29-Dec-2020) and the ADS-B plugin ver 0.2b.

Rob


Re: Objects on map aren't updaing

 

Hmmm.... Are you having that same problem with normal APRS stations and objects? Or is it only an issue with pseudo-APRS objects created by the ADS-B plugin? If the former, something is badly wrong with your copy of YAAC; if the latter, I might have forgotten or broken something with some of the more recent updates to YAAC that broke APIs used by the plugins (and required me to issue new builds of the plugins to match the altered APIs).

Please specify what version/build of YAAC and the ADS-B plugin you are using.

Andrew, KA2DDO
author of YAAC
________________________________________
From: [email protected] <[email protected]> on behalf of Rob
Sent: Sunday, April 4, 2021 5:10 PM
Subject: [yaac-users] Objects on map aren't updaing

Hello,

I'm using YAAC on Linux. The issue I'm having is that the objects like ADS-B won't update or show up unless the map is manually refreshed (zooming and panning). I have gone through all of the settings and can't find anything that would fix this. Has anyone else have had this issue and know how I could fix this?

Thanks
Rob


Objects on map aren't updaing

 

Hello,

? I'm using YAAC on Linux. The issue I'm having is that the objects like ADS-B won't update or show up unless the map is manually refreshed (zooming and panning). I have gone through all of the settings and can't find anything that would fix this. Has anyone else have had this issue and know how I could fix this?

Thanks
Rob


Re: GPS configuration problem

 

Don't worry about it. I probably need to reorder the port type list anyway. In any case, the next build of YAAC (among other things) will update the configuration wizard to check if you are running GPSD and hint that you use that for your location source if GPSD is running.

Andrew, KA2DDO
author of YAAC
________________________________________
From: [email protected] <[email protected]> on behalf of Bill WA4OPQ
Sent: Tuesday, March 30, 2021 10:19 AM
Subject: Re: [yaac-users] GPS configuration problem

Thanks!

I feel like a klutz, all this time I hadn't scrolled down far enough on the list of available port types to see the GPSD selection.


Re: GPS configuration problem

 

Thanks!

?

I feel like a klutz, all this time I hadn't scrolled down far enough on the list of available port types to see the GPSD selection.


Re: GPS configuration problem

 

The problem here is that you are trying have both YAAC and gpsd exclusively use the hardware serial port to the GPS receiver simultaneously. Serial ports can't be shared between multiple processes. That is why gpsd was invented, so it could proxy access to a serial-port-connected GPS to multiple consumers of GPS data. Stop using the Serial_GPS port type in YAAC and use the GPSD port type instead, and take advantage of GPSD instead of fighting with it.

Andrew, KA2DDO
author of YAAC
________________________________________
From: [email protected] <[email protected]> on behalf of Bill WA4OPQ
Sent: Tuesday, March 30, 2021 12:38 AM
Subject: [yaac-users] GPS configuration problem

I've been playing with some new ideas lately, this is for a mobile hotspot running YAAC.

So I have a fresh install, just VNC, gpsd and YAAC, with a USP GPS unit.

What is curious is that I can see valid data with the Test Serial GPS Port window

Then, just seconds later when I enable the port I get "unable to open or configure port"

Is there something I'm missing?


Re: GPS configuration problem

 

Well, shoot.

Now it's behaving well and working just fine.


Re: GPS configuration problem

 

I've still got an issue with one of my ports being blocked by a webserver, but would this affect GPS?


GPS configuration problem

 

I've been playing with some new ideas lately, this is for a mobile hotspot running YAAC.

So I have a fresh install, just VNC, gpsd and YAAC, with a USP GPS unit.

What is curious is that I can see valid data with the Test Serial GPS Port window

Then, just seconds later when I enable the port I get "unable to open or configure port"

Is there something I'm missing?
?


Re: APRS-IS problem. Do I have a problem, or is it the network?

 

Andrew gave me a clue and I think we figured it out.

It's because I set up a webserver, my router is sending some of my ports to the webserver. Apparently one port too many.

Hopefully you'll never see this, but if you do you'll know the answer.

Thanks Andrew!


APRS-IS problem. Do I have a problem, or is it the network?

 

My APRS-Is port is disabled, resetting or rebooting doesn't clear it.?

Internet in my home is working fine otherwise. Stations in the next county over seem to be connected.

Apparently I can't connect. Any ideas?

d.


Re: New feature request: export wxnow.txt

 

Thanks Jeff. I wouldn't spin any wheels on it. Until I get this thing in QST there probably isn't anyone but me doing something like this.

But we're making good progress on the other end, we've got wxnow.txt going into the other device. Now we just have to get the rain reading right.


Re: New feature request: export wxnow.txt

 

开云体育

Ah ok I see what your use case is there. No there is no way of me doing that with the application. I might be able to spin it off into a Wether only APRS application, but that would be down the road. Right now, it’s set as a timed check to the APRS IS using the ?API. Even if I did put a check in, you would have to bang on the API so often to make it work, it would cause them problems.?

Let me put it on the list of things to look at and see what I can come up with.?



?
Jeff: APRSnotify would work well for my nightly weather summary but I could not see a way for it to send out a notification when wind gusts hit 50 MPH. Did I miss something?


Re: New feature request: export wxnow.txt

 

Firstly, I have to apologize for being unclear. I'm not asking for any changes in YAAC as this has nothing to do with the core functions. I'm referring to adding to the Weather Alert Plug-in. I should have been more specific.
?
I was excited when I first started playing with the Weather Alert plugin because reporting the wind and rain to NWS from a very remote station was something I'd been trying to implement. This seemed like the perfect solution. But then, of course, I started thinking about what I could do if it also contained temp, humidity, barometer and soon I had a long wish list, including Twitter. A downside of any changes that I might ask for would be that it may become less useful for other users.
?
While I was testing the Weather Alert plugin I saw my three stations listed in a column and it was then that I thought "Wouldn't it be nice if I could get this data out on a webserver just like this column?"
?
Now I have another device, Meteobridge, which is based on DD-WRT for each of my (non-solar) stations.? It's designed to connect 28 models of weather stations to 29 online weather services, CWOP, email, SMS, SQL, FTP and Twitter. It has robust scripting and I have spent many hours setting up conditions and responses, resets, messages and alerts. Other than sending to CWOP it has no concept of APRS-IS.
Many alerts are incremental; for example I can have a low temp alert send a message or alert at 35 degrees and at every five degrees lower, each with a slightly different message wording.
This is the platform that I should be doing this on; asking to tweak the Weather Alert plugin to be similar is wrong.?
?
Just recently a user-defined weather station input was added to Meteobridge and I've met an extension programmer that can make it think wxnow.txt is a weather station reporting in. Yes, it seems a little clunky to pass off a text file like this. It flies against good engineering and programming.
?
I'm fairly proficient using YAAC and I'm fairly proficient using Meteobridge, but I don't have the ability to write a program to extract my stations from APRS-IS. And yes, as the YAAC Weather Alert plugin has already pulled out the correct data from the correct station it would require a lot of wheel re-invention to duplicate that. What I'd hoped is that exporting wxnow.txt would be fairly simple, I'd then just continue to use the two programs that work so well for me and I'd leave overworked authors alone.? :)
?
Now, I have to admit that at this time this will only benefit one person, me. But I am in the process of writing up my solar powered digipeater saga for QST so there is a good chance it will have more interest.
?
Jeff: APRSnotify would work well for my nightly weather summary but I could not see a way for it to send out a notification when wind gusts hit 50 MPH. Did I miss something?


Re: New feature request: export wxnow.txt

 

Did APRSnotify not work for you, Bill?

Jeff

On Mar 23, 2021, at 11:14 AM, Andrew P. <andrewemt@...> wrote:

Interesting. Let me make sure I understand your concept.

You want YAAC to collect the data from multiple weather stations and export the current weather data from each one into a separate wxnow.txt file. Some other program downstream will then consume the multiple wxnow.txt files.

This could be done, although I wouldn't want to put it in core YAAC, but in a plugin. But why can't the downstream Tweet-generating consumer collect the APRS packets from the multiple weather stations directly? It seems a bit kludgy to have an extra program and data drop-point. There are enough APRS libraries out there that you could write a simple program to pull only weather data from the APRS-IS backbone and convert to Twitter (if you can't get to APRS-IS, you wouldn't be able to get to Twitter either). I'm assuming the reason you want YAAC to do it is so you don't have to "re-invent the square wheel" regarding APRS-IS protocol and decoding both position and weather data and associating them with specific stations (i.e., the data analysis back-end features of YAAC).

Andrew, KA2DDO
author of YAAC

________________________________________
From: [email protected] <[email protected]> on behalf of Bill WA4OPQ <wa4opq@...>
Sent: Tuesday, March 23, 2021 10:41 AM
To: [email protected]
Subject: [yaac-users] New feature request: export wxnow.txt

I had asked in the past about sending weather alerts to Twitter and I now understand the problems with that. At the same time Andrew mentioned his caution about trying to make YAAC a universal solution. That made a lot of sense to me.

So I'm working on a solution that solves both of these problems:
My remote wx/digipeater(s) sends to YAAC . The weather alert plugin would continue to show the weather at multiple sites. But it would also output a wxnow.txt file in local directory of (raspberry's) webserver: /var/www/html/remotewx1/ ... /remotewx2/ ...
One of the extension programmers working on Meteobridge is taking the wxnow.txt file off of the server as a weather station input. With that I'll be able to create my triggers and send to numerous services, including Twitter.

Do you think this is possible to add this function?