-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a couple of linking and style fix-ups
- Loading branch information
Showing
9 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,16 +37,18 @@ | |
# We don't require inotify, as it only would work on Linux | ||
try: | ||
from asyncinotify import Inotify, Mask | ||
except: | ||
pass | ||
except ImportError as exc: | ||
warnings.warn(str(exc)) | ||
warnings.warn("ADSBCOT ignoring ImportError for: asyncinotify") | ||
|
||
# We won't use pyModeS if it isn't installed: | ||
try: | ||
import pyModeS.streamer.source | ||
import pyModeS.streamer.decode | ||
import pyModeS as pms | ||
except ImportError: | ||
pass | ||
except ImportError as exc: | ||
warnings.warn(str(exc)) | ||
warnings.warn("ADSBCOT ignoring ImportError for: pyModeS") | ||
|
||
|
||
__author__ = "Greg Albrecht <[email protected]>" | ||
|
@@ -179,7 +181,9 @@ async def run(self, _=-1) -> None: | |
alt_upper: int = int(self.config.get("ALT_UPPER", "0")) | ||
alt_lower: int = int(self.config.get("ALT_LOWER", "0")) | ||
if alt_upper or alt_lower: | ||
self._logger.info("Using Altitude Filters: Upper = %s, Lower = %s", alt_upper, alt_lower) | ||
self._logger.info( | ||
"Using Altitude Filters: Upper = %s, Lower = %s", alt_upper, alt_lower | ||
) | ||
|
||
feed_url: ParseResultBytes = urlparse(url) | ||
|
||
|
@@ -223,7 +227,9 @@ async def get_file_feed(self, feed_url) -> None: | |
if data is None: | ||
return | ||
|
||
self._logger.info("Retrieved %s ADS-B aircraft messages.", str(len(data) or "No")) | ||
self._logger.info( | ||
"Retrieved %s ADS-B aircraft messages.", str(len(data) or "No") | ||
) | ||
await self.handle_data(data) | ||
|
||
|
||
|
@@ -416,8 +422,12 @@ async def handle_data(self, data: list) -> None: | |
else: | ||
continue | ||
|
||
if "~" in icao and not self.config.getboolean("INCLUDE_TISB"): | ||
continue | ||
if "~" in icao: | ||
if not self.config.getboolean("INCLUDE_TISB"): | ||
continue | ||
else: | ||
if self.config.getboolean("TISB_ONLY"): | ||
continue | ||
|
||
known_craft: dict = aircot.get_known_craft(self.known_craft_db, icao, "HEX") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
site_name: ADSBXCOT - Display Aircraft in TAK | ||
site_url: https://adsbxcot.rtfd.io/ | ||
repo_url: https://github.com/snstac/adsbxcot/ | ||
site_description: A gateway for displaying aircraft tracks from ADS-B Aggregators in TAK Products, including ATAK. | ||
site_name: ADSBCOT - Display Aircraft in TAK | ||
site_url: https://adsbcot.rtfd.io/ | ||
repo_url: https://github.com/snstac/adsbcot/ | ||
site_description: Software for monitoring and analyzing aviation surveillance data via the Team Awareness Kit (TAK) ecosystem of products. | ||
site_author: Greg Albrecht <[email protected]> | ||
copyright: Copyright Sensors & Signals LLC https://www.snstac.com | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters