joergschultzelutter / mpad

Multi-Purpose APRS Daemon (MPAD)
GNU General Public License v3.0
49 stars 6 forks source link

No aprs_parser.py #32

Closed 9M2PJU closed 2 weeks ago

9M2PJU commented 2 weeks ago

I run

(venv) root@3e58db4c8099:/app/mpad/src# python aprs_listener.py 2024-08-28 18:00:27,623 aprs_listener -INFO- Program startup ... 2024-08-28 18:00:27,624 aprs_listener -INFO- Activating MPAD exception handler 2024-08-28 18:00:27,624 aprs_listener -INFO- Read program config file ... 2024-08-28 18:00:27,625 aprs_listener -INFO- Reading number of served packages... 2024-08-28 18:00:27,625 aprs_listener -INFO- Reading APRS message counter... 2024-08-28 18:00:27,626 aprs_listener -INFO- Registering SIGTERM handler for safe shutdown... 2024-08-28 18:00:27,626 aprs_listener -INFO- Updating my local caches; this might take a while.... 2024-08-28 18:00:27,627 aprs_listener -INFO- Updating airport database ... 2024-08-28 18:00:29,460 aprs_listener -INFO- Updating repeater database ... 2024-08-28 18:00:32,930 repeater_modules -INFO- Updating local repeater database 2024-08-28 18:00:32,983 repeater_modules -INFO- Have processed data from repeatermap.de 2024-08-28 18:00:33,190 repeater_modules -INFO- Have processed data from hearham.com 2024-08-28 18:00:33,254 repeater_modules -INFO- Have retrieved total of 15353 repeater entries 2024-08-28 18:00:33,272 aprs_listener -INFO- Updating satellite TLE and frequency database ... 2024-08-28 18:00:33,273 skyfield_modules -INFO- Generating local satellite frequencies database 2024-08-28 18:00:34,889 skyfield_modules -INFO- Generating local TLE database 2024-08-28 18:00:35,295 skyfield_modules -INFO- Creating blended satellite database version 2024-08-28 18:00:35,302 skyfield_modules -INFO- Writing blended satellite database to disc 2024-08-28 18:00:35,302 aprs_listener -INFO- Start file schedulers ... /app/venv/lib/python3.10/site-packages/tzlocal/unix.py:193: UserWarning: Can not find any timezone configuration, defaulting to UTC. warnings.warn("Can not find any timezone configuration, defaulting to UTC.") 2024-08-28 18:00:35,305 base -INFO- Adding job tentatively -- it will be properly scheduled when the scheduler starts 2024-08-28 18:00:35,305 base -INFO- Adding job tentatively -- it will be properly scheduled when the scheduler starts 2024-08-28 18:00:35,305 base -INFO- Adding job tentatively -- it will be properly scheduled when the scheduler starts 2024-08-28 18:00:35,306 base -INFO- Adding job tentatively -- it will be properly scheduled when the scheduler starts 2024-08-28 18:00:35,307 base -INFO- Added job "update_local_airport_stations_file" to job store "default" 2024-08-28 18:00:35,307 base -INFO- Added job "update_local_repeatermap_file" to job store "default" 2024-08-28 18:00:35,307 base -INFO- Added job "update_local_mpad_satellite_data" to job store "default" 2024-08-28 18:00:35,308 base -INFO- Added job "imap_garbage_collector" to job store "default" 2024-08-28 18:00:35,308 base -INFO- Scheduler started 2024-08-28 18:00:35,309 aprs_listener -INFO- APRS message dupe cache set to 2160 max possible entries and a TTL of 60 mins 2024-08-28 18:00:35,309 inet -INFO- Setting filter to: g/9M2PJU-5 2024-08-28 18:00:35,309 aprs_listener -INFO- Establish connection to APRS_IS: server=euro.aprs2.net,port=14580, filter=g/9M2PJU-5,APRS-IS User: PJUBOT, APRS-IS passcode: 14782 2024-08-28 18:00:35,310 inet -INFO- Attempting connection to euro.aprs2.net:14580 2024-08-28 18:00:35,373 inet -INFO- Connected to ('44.5.46.14', 14580) 2024-08-28 18:00:35,442 inet -INFO- Sending login information 2024-08-28 18:00:35,495 inet -INFO- Login successful 2024-08-28 18:00:35,495 aprs_listener -INFO- Established the connection to APRS_IS 2024-08-28 18:00:35,495 aprs_listener -INFO- Send initial beacon after establishing the connection to APRS_IS 2024-08-28 18:00:35,496 aprs_communication -INFO- Reached beacon interval; sending beacons 2024-08-28 18:00:35,496 aprs_communication -INFO- Sending beacon: PJUBOT>PJU:=0258.02N/10149.01E?PJUBOT https://hamradio.my /A=000824 2024-08-28 18:00:41,503 base -INFO- Adding job tentatively -- it will be properly scheduled when the scheduler starts 2024-08-28 18:00:41,504 base -INFO- Adding job tentatively -- it will be properly scheduled when the scheduler starts 2024-08-28 18:00:41,504 base -INFO- Adding job tentatively -- it will be properly scheduled when the scheduler starts 2024-08-28 18:00:41,505 base -INFO- Added job "send_beacon_and_status_msg" to job store "default" 2024-08-28 18:00:41,506 base -INFO- Added job "send_bulletin_messages" to job store "default" 2024-08-28 18:00:41,506 base -INFO- Added job "send_dwd_bulletins" to job store "default" 2024-08-28 18:00:41,506 base -INFO- Scheduler started 2024-08-28 18:00:41,507 aprs_listener -INFO- Starting callback consumer

But nothing happened if I send any commands to PJUBOT callsign

joergschultzelutter commented 2 weeks ago

This is not a bug but a configuration error with your local instance. See:

2024-08-28 18:00:35,309 inet -INFO- Setting filter to: g/9M2PJU-5 2024-08-28 18:00:35,309 aprs_listener -INFO- Establish connection to APRS_IS: server=[euro.aprs2.net](http://euro.aprs2.net/),port=14580, filter=g/9M2PJU-5,APRS-IS User: PJUBOT, APRS-IS passcode: 14782

You told MPAD/APRS.IS to listen to 9M2PJU-5 but your MPAD instance's login code is PJUBOT. So your instance will ONLY accept messages for 9M2PJU-5 - which will never get processed because you send your commands to PJUBOT (MPAD also has an internal filter on the listening call sign)

Please be advised that if you intend to run your program instance on a permanent basis, you need to ensure to acquire your very own APRS 'TOCALL` identifier. See Hessu's repo for details.