Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Yaac-Users
- Messages
Search
Headless REST API for sending/receiving messages?
Happy Friday,
I am new to the group, but have been enjoying YAAC for a few months. As a Java software engineer I love that this project has a plugin architecture.? I don't want to re-invent the wheel, but I am looking to run APRS fully headless via a REST-based API. I've seen mentions of the headless mode (nogui option) and the small web server, but it does not look like there's an API that exposes a subset of features? Here's my use case: 1. Create a plugin that provides a REST endpoint for sending location beacons and station messages. 2. In terms of API POST requests, my MVP is to add abstractions for sending messages to the following SSIDs: SMEGTE, EMAIL-2 and APRS2SOTA (and possibly station-to-station). 3. In terms of API GET requests, my MVP is to list heard stations and incoming messages. 4. This will all run on a Raspberry Pi and function as a man portable field station. I love operating from the backcountry. 5. Today, I am connecting to the hotspot on my iPhone via VNC and launching YAAC. The new goal is to start direwolf and YAAC along with my API plugin on startup. For the user interface, I will be designing a small Progressive Web Application (PWA) with Node.js that will run on the Pi. Then, I can simply run the PWA from any device that has a web browser and is connected to the hotspot. My question is this: Does a REST API exist that offers endpoints for sending simple messages and/or listing heard stations? If not, this something I am starting on today. 73, Gaston KT1RUN The Tech Prepper https://youtube.com/c/thetechprepper |
Re: YAAC Not starting up
First question is, what specific Java exceptions are you getting? Appending the log with the full stack traces would be helpful. Also, what version of the Java runtime and of YAAC are you using?
Andrew, KA2DDO author of YAAC ________________________________________ From: [email protected] <[email protected]> on behalf of W8GMC <Michael_MSN@...> Sent: Friday, April 30, 2021 1:25 PM To: [email protected] Subject: [yaac-users] YAAC Not starting up HI All, I have YAAC running on a Pi4 build and it had been running flawlessly with Direwolf for months. I decided to build another to take to another property and to track my wife's hiking activities in the mountains where there is no cell service. Anyway, The new build is also a Pi4 8gb, both running the NWDigital Draws hat, The new one is running from SSD where the original SDXC. I simply backed up the original image and cloned it to the SSD. System boots fine, DireWolf is working perfectly but when i start Yaac it ultimately bombs. No logging is present in the lofgile directory. It did create 1 log in that dir when i ran it with the -clear parameter. But no logging once that parameter was removed. I do see a few java exceptions rip by the term window. I reinstalled YAAC per the instructions and have the exact came issue. Im at a loss here, any thoughts on where to focus my efforts will be appreciated. Thank You, MIke W8GMC |
YAAC Not starting up
W8GMC
HI All,?
I have YAAC running on a Pi4 build and it had been running flawlessly with Direwolf for months. I decided to build another to take to another property and to track my wife's hiking activities in the mountains where there is no cell service. Anyway, The new build is also a Pi4 8gb, both running the NWDigital Draws hat, The new one is running from SSD where the original SDXC. I simply backed up the original image and cloned it to the SSD. System boots fine, DireWolf is working perfectly but when i start Yaac it ultimately bombs. No logging is present in the lofgile directory. It did create 1 log in that dir when i ran it with the -clear parameter. But no logging once that parameter was removed. I do see a few java exceptions rip by the term window. I reinstalled YAAC per the instructions and have the exact came issue. Im at a loss here, any thoughts on where to focus my efforts will be appreciated.? Thank You, MIke W8GMC |
Re: NTP / GPSD config problem
¿ªÔÆÌåÓýThanks for the info, Clark.That gave me a few clues where to look further, and I MAY have gotten things to work by installing chrony and setting a few things in its config file.? Will need to wait a few days (powered off) for the clock to get sufficiently out of sync, then see if it syncs by itself. Greg? KO6TH Clark Martin wrote:
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.? |
Re: Should I be able to see other stations on my YAAC map?
Martin:
It doesn't look like you properly filled in your configuration. For example, your beacon fixed location is still in the center of the United States, so unless you're traveling here (unlikely with COVID-19 still running around) with reciprocal operating privileges, it's not correct for a British amateur radio callsign. You should set the fixed location appropriately even if you are using GPS, because there is no guarantee you won't get a GPS drop-out (for example, when the GPS receiver is first powered up, it may have to wait to receive constellation almanac data before it can start computing fixes [i.e., cold start]). Also, are you successfully receiving APRS packets and GPS sentences from your respective ports? You are specifying /dev/ttyACM0 at 4800 baud for your GPS for direct and exclusive access (not sharing with other applications using GPSD), and /dev/ttyAMA0 at 19200 to talk to a hardware TNC. Is this correct? You can use the Test Port button on each port's configuration panel to look at the raw bytes coming in from each port to make sure they look valid. Also, if you are using GPSD, it can't share the physical serial port to the GPS receiver with YAAC; only one program can use a serial port at a time, so if you are using GPSD, you should use the GPSD port type in YAAC to connect to the GPSD daemon instead of fighting for control of the serial port with it. Furthermore, you have both an APRS-IS connection and a TNC, which makes YAAC assume you are running an I-gate. As such, you will only receive traffic from the Internet that is explicitly addressed to stations _you_ have forwarded _to_ the Internet (such as your sailboat). It may have intermittently worked earlier because of a flaky behavior in YAAC (which was fixed in a recent build; did you upgrade recently?) where, depending on the order the Serial_TNC port starts up relative to the APRS-IS port, you may or may not get an automatic default APRS-IS server filter expression to tell the APRS-IS backbone to send you additional traffic. With the recent fix, YAAC stations operating as I-gates will _never_ get extra traffic from APRS-IS unless you explicitly specify a filter expression of the additional Internet traffic you want to receive. Now, why you're not receiving any other RF traffic besides your sailboat, I can't explain without knowing more about your station setup and location. Could be mismatched audio levels between the TNC and radio, could be a too-high squelch setting, could just be lousy reception near your station, could be poor-quality signals from other APRS users that your TNC can't decode, could be lots of packet collisions if there is a large amount of traffic in your area, or conversely just not very many people transmitting APRS RF packets in your area. Another British user was asking me about digipeater setup a while ago because his local geographic area had so few RF APRS stations, and he wanted to encourage more traffic. Andrew, KA2DDO author of YAAC ________________________________________ From: [email protected] <[email protected]> on behalf of M0HKG - Martin via groups.io <m0hkg@...> Sent: Thursday, April 8, 2021 9:07 AM To: [email protected] Subject: [yaac-users] Should I be able to see other stations on my YAAC map? 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
Hmmm... I have the same build of Java 11, and can't replicate your problem. Can you privately email me a copy of your YAAC.out file from your YAAC log directory, and an export of your YAAC configuration file? I suspect there's something odd about your installation that is causing it to fail to update position information.
Andrew, KA2DDO author of YAAC ________________________________________ From: [email protected] <[email protected]> on behalf of Rob <luminoxs@...> Sent: Saturday, April 10, 2021 5:25 PM To: [email protected] Subject: Re: [yaac-users] 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: 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:
|
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.? 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
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
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? |
to navigate to use esc to dismiss