Jet1090¶
tangram_jet1090
¶
router
module-attribute
¶
router = APIRouter(
prefix="/jet1090",
tags=["jet1090"],
responses={404: {"description": "Not found"}},
)
PlanesConfig
dataclass
¶
Source code in packages/tangram_jet1090/src/tangram_jet1090/__init__.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
history_control_channel
class-attribute
instance-attribute
¶
history_control_channel: str = 'history:control'
aircraft_db_url
class-attribute
instance-attribute
¶
aircraft_db_url: str = "https://jetvision.de/resources/sqb_databases/basestation.zip"
path_cache
class-attribute
instance-attribute
¶
history_flush_interval_secs
class-attribute
instance-attribute
¶
history_flush_interval_secs: int = 5
history_optimize_interval_secs
class-attribute
instance-attribute
¶
history_optimize_interval_secs: int = 120
history_optimize_target_file_size
class-attribute
instance-attribute
¶
history_optimize_target_file_size: int = 134217728
history_vacuum_interval_secs
class-attribute
instance-attribute
¶
history_vacuum_interval_secs: int = 120
history_vacuum_retention_period_secs
class-attribute
instance-attribute
¶
history_vacuum_retention_period_secs: int | None = 120
__init__
¶
__init__(
jet1090_channel: str = "jet1090",
history_table_name: str = "jet1090",
history_control_channel: str = "history:control",
state_vector_expire: int = 20,
stream_interval_secs: float = 1.0,
aircraft_db_url: str = "https://jetvision.de/resources/sqb_databases/basestation.zip",
jet1090_url: str = "http://localhost:8080",
path_cache: Path = Path(
user_cache_dir("tangram_jet1090")
),
log_level: str = "INFO",
show_route_lines: bool = True,
history_buffer_size: int = 100000,
history_flush_interval_secs: int = 5,
history_optimize_interval_secs: int = 120,
history_optimize_target_file_size: int = 134217728,
history_vacuum_interval_secs: int = 120,
history_vacuum_retention_period_secs: int | None = 120,
) -> None
get_trajectory_data
async
¶
Get the full trajectory for a given ICAO24 address.
Source code in packages/tangram_jet1090/src/tangram_jet1090/__init__.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
get_route_data
async
¶
get_route_data(
callsign: str, backend_state: InjectBackendState
) -> JSONResponse
Source code in packages/tangram_jet1090/src/tangram_jet1090/__init__.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |
get_sensors_data
async
¶
get_sensors_data(
backend_state: InjectBackendState,
) -> JSONResponse
Source code in packages/tangram_jet1090/src/tangram_jet1090/__init__.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
get_config
async
¶
get_config(
backend_state: InjectBackendState,
) -> JSONResponse
Source code in packages/tangram_jet1090/src/tangram_jet1090/__init__.py
112 113 114 115 116 117 118 | |
get_aircraft_db
async
¶
Source code in packages/tangram_jet1090/src/tangram_jet1090/__init__.py
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
run_planes
async
¶
run_planes(backend_state: BackendState) -> None
Source code in packages/tangram_jet1090/src/tangram_jet1090/__init__.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | |
tangram_jet1090._planes
¶
Aircraft
¶
PlanesConfig
¶
history_vacuum_retention_period_secs
property
writable
¶
history_vacuum_retention_period_secs: Optional[int]
__new__
¶
__new__(
redis_url: str,
jet1090_channel: str,
history_table_name: str,
history_control_channel: str,
state_vector_expire: int,
stream_interval_secs: float,
aircraft_db: Mapping[str, Aircraft],
history_buffer_size: int,
history_flush_interval_secs: int,
history_optimize_interval_secs: int,
history_optimize_target_file_size: int,
history_vacuum_interval_secs: int,
history_vacuum_retention_period_secs: Optional[int],
) -> PlanesConfig