Giter Club home page Giter Club logo

fr24's Introduction

Hello ๐Ÿ‘‹

I am a second-year undergraduate majoring in Aerospace Engineering with an extended major in Artificial Intelligence.

My research interests lie in the intersection of aerospace and machine learning, with a particular focus on air traffic management and trajectory prediction.

I think I can finish this in one day. โ„ข

Technologies

Familiar with:

  • Backend - Python: FastAPI/scrapy/bs4/PyTorch, C++
  • Frontend - HTML/CSS/TypeScript: React, Google Apps Script
  • Databases - postgres/mysql/duckdb
  • Other - QGIS

Current learning:

  • JAX, Rust
  • rusty - Cython, Processing, Arduino, Small Basic
Some of my projects

it should work ๐Ÿ˜

Name Links Technologies
AM4 Discord bot & am4help.com backend - Various calculators and utilities to achieve maximum profit in the game Airline Manager 4 bot discord, bot code, website, backend code C++, Python, ExpressJS, MySQL
MTR Billboard - Platform for accelerating billboard inspections at MTRC website (restricted) ReactJS, FastAPI, pg
EI/MM - Tool to digitise reports into XLSX files restricted ReactJS, Flask, pg, tesseract
Swappy - Online bookselling platform, product of CKY Hackathon 2021. code HTML/CSS/JS, flask, postgres
IB Geography Extended Essay - "An investigation into the traffic congestion in Kwun Tong, Hong Kong." code, paper Python, QGIS
IB Geography Internal Assessment - "To what extent does Hong Kong fit the pattern of decreasing land values with increasing distance from the Peak Land Value Intersection?" code, paper Python, QGIS
IB Physics Internal Assessment - "How does the length of the filars in a bifilar pendulum affect its period?" code, paper Python
IB Mathematics Internal Assessment - "Modelling the volume and surface area of the cabin of an A350-900" paper Python
IB Chemistry Internal Assessment - "An investigation into the effect of pH of wastewater on the adsorption of copper (II) ions." paper Python
IB Physics Practice Internal Assessment - "What is the relationship between the wrap angle of a capstan and the loading force?" paper Python
IB Selection form - Custom course selection form for incoming IB students at CKY restricted ReactJS, Google Apps Script
BTEHK 3D Map - 3D map/visualisation of Hong Kong for builders of the BuildTheEarth HK Community. website code HTML/CSS/JS
MTR ETA Explorer - Website to query real-time second-level MTR ETAs. website code HTML/CSS/JS
KMB ETA Explorer - Website to query real-time ETAs for 81/72 buses at CKY. website code HTML/CSS/JS
AM4 Stopover Finder - Early Website for finding stopovers of routes in AM4. Website code HTML/CSS/JS
Why cathaypacific8747?

On 8 October 2016, Cathay Pacific bid farewell to its last Boeing B747-400 passenger aircraft, marking the end of an era. The 747, renowned for its pioneering role in modern-day air travel since the 1960s, became an iconic symbol in the history of aviation. To commemorate the retirement, Cathay Pacific organised a special flight that included a breathtaking low-altitude flyby over Victoria Harbour, at 2,000 feet.

The elegance of the flyby was truly astonishing and the scene has stuck with me ever since.

image of CX8747 โฌ†๏ธ flight CX8747, taken by me at the West Kowloon Cultural District

fr24's People

Contributors

cathaypacific8747 avatar dependabot[bot] avatar glostis avatar xoolive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

glostis sejo21

fr24's Issues

crashing when retrieving feed today

Seems to have stopped working today

(grpc) [root@smj-centos-6 grpc]# fr24 feed
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ /root/e1radar/grpc/lib64/python3.11/site-packages/fr24/cli.py:98 in feed โ”‚
โ”‚ โ”‚
โ”‚ 95 โ”‚ โ”‚ โ”‚ lf.data.save_parquet() โ”‚
โ”‚ 96 โ”‚ โ”‚ โ”‚ rich.print(get_success_message(lf)) โ”‚
โ”‚ 97 โ”‚ โ”‚
โ”‚ โฑ 98 โ”‚ asyncio.run(feed_()) โ”‚
โ”‚ 99 โ”‚
โ”‚ 100 โ”‚
โ”‚ 101 if name == "main": โ”‚
โ”‚ โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚ feed_ = <function feed..feed_ at 0x7fddb33f3b00> โ”‚ โ”‚
โ”‚ โ”‚ time = None โ”‚ โ”‚
โ”‚ โ”‚ timestamp = None โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ”‚ โ”‚
โ”‚ /usr/lib64/python3.11/asyncio/runners.py:190 in run โ”‚
โ”‚ โ”‚
โ”‚ 187 โ”‚ โ”‚ โ”‚ "asyncio.run() cannot be called from a running event loop") โ”‚
โ”‚ 188 โ”‚ โ”‚
โ”‚ 189 โ”‚ with Runner(debug=debug) as runner: โ”‚
โ”‚ โฑ 190 โ”‚ โ”‚ return runner.run(main) โ”‚
โ”‚ 191 โ”‚
โ”‚ 192 โ”‚
โ”‚ 193 def cancel_all_tasks(loop): โ”‚
โ”‚ โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚ debug = None โ”‚ โ”‚
โ”‚ โ”‚ main = <coroutine object feed..feed
at 0x7fddb3400c70> โ”‚ โ”‚
โ”‚ โ”‚ runner = <asyncio.runners.Runner object at 0x7fddb321fd50> โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ”‚ โ”‚
โ”‚ /usr/lib64/python3.11/asyncio/runners.py:118 in run โ”‚
โ”‚ โ”‚
โ”‚ 115 โ”‚ โ”‚ โ”‚
โ”‚ 116 โ”‚ โ”‚ self.interrupt_count = 0 โ”‚
โ”‚ 117 โ”‚ โ”‚ try: โ”‚
โ”‚ โฑ 118 โ”‚ โ”‚ โ”‚ return self.loop.run_until_complete(task) โ”‚
โ”‚ 119 โ”‚ โ”‚ except exceptions.CancelledError: โ”‚
โ”‚ 120 โ”‚ โ”‚ โ”‚ if self.interrupt_count > 0: โ”‚
โ”‚ 121 โ”‚ โ”‚ โ”‚ โ”‚ uncancel = getattr(task, "uncancel", None) โ”‚
โ”‚ โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚ context = <contextvars.Context object at 0x7fddb3a2dec0> โ”‚ โ”‚
โ”‚ โ”‚ coro = <coroutine object feed..feed
at 0x7fddb3400c70> โ”‚ โ”‚
โ”‚ โ”‚ self = <asyncio.runners.Runner object at 0x7fddb321fd50> โ”‚ โ”‚
โ”‚ โ”‚ sigint_handler = functools.partial(<bound method Runner.on_sigint of โ”‚ โ”‚
โ”‚ โ”‚ <asyncio.runners.Runner object at 0x7fddb321fd50>>, main_task=<Task โ”‚ โ”‚
โ”‚ โ”‚ finished name='Task-1' coro=<feed..feed
() done, defined at โ”‚ โ”‚
โ”‚ โ”‚ /root/e1radar/grpc/lib64/python3.11/site-packages/fr24/cli.py:91> โ”‚ โ”‚
โ”‚ โ”‚ exception=AssertionError()>) โ”‚ โ”‚
โ”‚ โ”‚ task = <Task finished name='Task-1' coro=<feed..feed
() done, defined at โ”‚ โ”‚
โ”‚ โ”‚ /root/e1radar/grpc/lib64/python3.11/site-packages/fr24/cli.py:91> โ”‚ โ”‚
โ”‚ โ”‚ exception=AssertionError()> โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ”‚ โ”‚
โ”‚ /usr/lib64/python3.11/asyncio/base_events.py:653 in run_until_complete โ”‚
โ”‚ โ”‚
โ”‚ 650 โ”‚ โ”‚ if not future.done(): โ”‚
โ”‚ 651 โ”‚ โ”‚ โ”‚ raise RuntimeError('Event loop stopped before Future completed.') โ”‚
โ”‚ 652 โ”‚ โ”‚ โ”‚
โ”‚ โฑ 653 โ”‚ โ”‚ return future.result() โ”‚
โ”‚ 654 โ”‚ โ”‚
โ”‚ 655 โ”‚ def stop(self): โ”‚
โ”‚ 656 โ”‚ โ”‚ """Stop running the event loop. โ”‚
โ”‚ โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚ future = <Task finished name='Task-1' coro=<feed..feed
() done, defined at โ”‚ โ”‚
โ”‚ โ”‚ /root/e1radar/grpc/lib64/python3.11/site-packages/fr24/cli.py:91> โ”‚ โ”‚
โ”‚ โ”‚ exception=AssertionError()> โ”‚ โ”‚
โ”‚ โ”‚ new_task = False โ”‚ โ”‚
โ”‚ โ”‚ self = <UnixSelectorEventLoop running=False closed=True debug=False> โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ”‚ โ”‚
โ”‚ /root/e1radar/grpc/lib64/python3.11/site-packages/fr24/cli.py:94 in feed
โ”‚
โ”‚ โ”‚
โ”‚ 91 โ”‚ async def feed
() -> None: โ”‚
โ”‚ 92 โ”‚ โ”‚ async with FR24() as fr24: โ”‚
โ”‚ 93 โ”‚ โ”‚ โ”‚ lf = fr24.livefeed(timestamp) โ”‚
โ”‚ โฑ 94 โ”‚ โ”‚ โ”‚ lf.data.add_api_response(await lf.api.fetch()) โ”‚
โ”‚ 95 โ”‚ โ”‚ โ”‚ lf.data.save_parquet() โ”‚
โ”‚ 96 โ”‚ โ”‚ โ”‚ rich.print(get_success_message(lf)) โ”‚
โ”‚ 97 โ”‚
โ”‚ โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚ fr24 = <fr24.core.FR24 object at 0x7fddb3228710> โ”‚ โ”‚
โ”‚ โ”‚ lf = <fr24.core.LiveFeedService object at 0x7fddb3228dd0> โ”‚ โ”‚
โ”‚ โ”‚ timestamp = None โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ”‚ โ”‚
โ”‚ /root/e1radar/grpc/lib64/python3.11/site-packages/fr24/core.py:366 in fetch โ”‚
โ”‚ โ”‚
โ”‚ 363 โ”‚ โ”‚ โ”‚ โ”‚ **kw, # type: ignore[arg-type] โ”‚
โ”‚ 364 โ”‚ โ”‚ โ”‚ โ”‚ auth=self.http.auth, โ”‚
โ”‚ 365 โ”‚ โ”‚ โ”‚ ) โ”‚
โ”‚ โฑ 366 โ”‚ โ”‚ resp = await livefeed_world_data(self.http.client, self.http.auth) โ”‚
โ”‚ 367 โ”‚ โ”‚ self.ctx["timestamp"] = int(time.time()) โ”‚
โ”‚ 368 โ”‚ โ”‚ return resp โ”‚
โ”‚ 369 โ”‚
โ”‚ โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚ self = <fr24.core.LiveFeedAPI object at 0x7fddb3228e50> โ”‚ โ”‚
โ”‚ โ”‚ ts = None โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ”‚ โ”‚
โ”‚ /root/e1radar/grpc/lib64/python3.11/site-packages/fr24/livefeed.py:224 in livefeed_world_data โ”‚
โ”‚ โ”‚
โ”‚ 221 โ”‚ client: httpx.AsyncClient, auth: None | Authentication = None โ”‚
โ”‚ 222 ) -> list[LiveFeedRecord]: โ”‚
โ”‚ 223 โ”‚ """Retrieve live feed data for the entire world, in chunks.""" โ”‚
โ”‚ โฑ 224 โ”‚ results = await asyncio.gather( โ”‚
โ”‚ 225 โ”‚ โ”‚ *[ โ”‚
โ”‚ 226 โ”‚ โ”‚ โ”‚ livefeed_post( โ”‚
โ”‚ 227 โ”‚ โ”‚ โ”‚ โ”‚ client, โ”‚
โ”‚ โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚ auth = None โ”‚ โ”‚
โ”‚ โ”‚ client = <httpx.AsyncClient object at 0x7fddb3228850> โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ”‚ โ”‚
โ”‚ /root/e1radar/grpc/lib64/python3.11/site-packages/fr24/livefeed.py:176 in livefeed_post โ”‚
โ”‚ โ”‚
โ”‚ 173 โ”‚ """Send the request and extract the raw protobuf message.""" โ”‚
โ”‚ 174 โ”‚ response = await client.send(request) โ”‚
โ”‚ 175 โ”‚ data = response.content โ”‚
โ”‚ โฑ 176 โ”‚ assert len(data) and data[0] == 0 โ”‚
โ”‚ 177 โ”‚ data_len = int.from_bytes(data[1:5], byteorder="big") โ”‚
โ”‚ 178 โ”‚ return data[5 : 5 + data_len] โ”‚
โ”‚ 179 โ”‚
โ”‚ โ”‚
โ”‚ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ locals โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚
โ”‚ โ”‚ client = <httpx.AsyncClient object at 0x7fddb3228850> โ”‚ โ”‚
โ”‚ โ”‚ data = b'' โ”‚ โ”‚
โ”‚ โ”‚ request = <Request('POST', โ”‚ โ”‚
โ”‚ โ”‚ 'https://data-feed.flightradar24.com/fr24.feed.api.v1.Feed/LiveFeed')> โ”‚ โ”‚
โ”‚ โ”‚ response = <Response [464 ]> โ”‚ โ”‚
โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

How to pull back squawk code from live feed

Assuming I am using the example world feed code and I am authenticated...

from fr24.core import FR24

async def my_feed() -> None:
    async with FR24() as fr24:
        lf = fr24.livefeed()
        response = await lf.api.fetch()
        print(response)
        lf.data.add_api_response(response)
        print(lf.data.df)
        lf.data.save_parquet()
        print(lf.data.fp)

await my_feed()

I can see that there is reference in one of the lower level functions ( livefeed_message_create) to return optional extra fields if I am authenticated

When authenticated, squawk, vspeed, airspace, logo_id and age can be included

Is there a way to do this from the higher level core calls? I want to pull back the squawk code for all aircraft in the livefeed.

Thanks ( I am sure there is - I'm just not sure how i would do it from the top level)

Authentication issues

I don't have time to dig much more into this right now, so let me document it here first before I forget. I currently have some authentication issues (context: trying to port my code from the older version to the newer API, and struggling to find where I could just get the JSON before the pyarrow...)

More generally, it would be nice to have an extra option as I could prefer to run anonymously by default, and login only when necessary:

async with FR24(login: bool | {'username': user, 'password': pass}) as fr24:
    ...

Currently, on my side, authentication in the asynccontextmanager fails with

ConnectError: All connection attempts failed

Surprisingly, in the TUI part of the code, I just use the following (without the FR24 client) and it still works:

self.auth = await login(self.client)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.