FaradayRF / aprs2influxdb

Interfaces ham radio APRS-IS servers and saves packet data into an influxdb database
https://www.faradayrf.com
GNU General Public License v3.0
28 stars 9 forks source link

Fix Configuration File #2

Closed kb1lqc closed 7 years ago

kb1lqc commented 7 years ago

Summary

Provide a generic configuration file setup for a base install of influxdb settings. Allow user to edit this as needed with command line options.

Problem Explanation

Installation should be easy and configuration also easy.

Supporting Information

This is a handy spot to post any screenshots or file outputs in order to better support this issue. We want to keep the top of the ticket clutter-free as possible.

kb1lqc commented 7 years ago

When aprslib is not configured I throw this error:

ERROR:aprslib.inet.IS:Failed to login
Traceback (most recent call last):
  File "aprs2influxdb/main.py", line 247, in <module>
    main()
  File "aprs2influxdb/main.py", line 233, in main
    AIS.connect()
  File "C:\Python27\lib\site-packages\aprslib\inet.py", line 115, in connect
    self._send_login()
  File "C:\Python27\lib\site-packages\aprslib\inet.py", line 310, in _send_login
    raise LoginError("Failed to login")
aprslib.exceptions.LoginError: Failed to login
kb1lqc commented 7 years ago

Just fixed this exception (loginerror) with a try/except statement

kb1lqc commented 7 years ago

Updates implemented in latest commits to issue6 branch

kb1lqc commented 7 years ago

Largely fixed by #11 though I'm not sure it's even useful to have a configuration file. Might be best to just do all by command line!