claws / adsb Goto Github PK
View Code? Open in Web Editor NEWADS-B tools for Python
License: MIT License
ADS-B tools for Python
License: MIT License
I tried your code, without any changes, but stumbled into an error I do not understand:
E:\Download\Programmering\Python\adsb>sbs-client.py
Traceback (most recent call last):
File "E:\Download\Programmering\Python\adsb\sbs-client.py", line 107, in <module>
loop.add_signal_handler(signum, handler)
File "C:\Program Files (x86)\Python38-32\lib\asyncio\events.py", line 536, in add_signal_handler
raise NotImplementedError
NotImplementedError
I have a dump1090 running on localhost.
Thanks!
I got a the problem that python complains about missing microseconds. I think this happens if a packet arrives at a whole second. Great if you can tell me how to fix or hide this.
While learning how asyncio works, I see in the documentation that many parts are depreciated from Python v3.8, for example sleep. Probably not a problem in a while.
Thanks!
E:\Download\Programmering\Python\adsb>sbs-session.py
icao24=42425B, last_seen=2020-06-18 23:05:21.907000+00:00, msgs=6948, history=50, lat=57.90756, lon=11.52244, alt=37000, ground_speed=470, track=56, vertical_rate=0, callsign=NWS9460
Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF...,0,,,,,0\r\n'>)
handle: <Handle _ProactorReadPipeTransport._loop_reading(<_OverlappedF...,0,,,,,0\r\n'>)>
Traceback (most recent call last):
File "C:\Program Files (x86)\Python38-32\lib\asyncio\events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "C:\Program Files (x86)\Python38-32\lib\asyncio\proactor_events.py", line 318, in _loop_reading
self._data_received(data)
File "C:\Program Files (x86)\Python38-32\lib\asyncio\proactor_events.py", line 269, in _data_received
self._protocol.data_received(data)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\adsb\sbs\protocol.py", line 86, in data_received
self.on_message_received(bytes(msg))
File "C:\Program Files (x86)\Python38-32\lib\site-packages\adsb\sbs\client.py", line 150, in _on_sbs_message
self._on_raw_message_received(msg_data)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\adsb\sbs\session.py", line 212, in on_sbs_message
msg = message.fromString(msg_str)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\adsb\sbs\message.py", line 198, in fromString
v = datetime.time(hour=int(H),
ValueError: microsecond must be in 0..999999
icao24=42425B, last_seen=2020-06-18 23:05:53.368000+00:00, msgs=7408, history=50, lat=57.94469, lon=11.62965, alt=37000, ground_speed=470, track=57, vertical_rate=0, callsign=NWS9460
KeyboardInterrupt
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<session_aircraft_dumper_task() running at E:\Download\Programmering\Python\adsb\sbs-session.py:62> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at
0x01197838>()]>>
E:\Download\Programmering\Python\adsb>
Line numbers might not be exactly as in origninal code because I added a few print()-rows
i have a hex string of 28 bytes of adsb data. I am not able to use it in the modules.
e.g : adsb.sbs.aircraft.Aircraft(?????)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.