Notify if a selected plane has taken off or landed using ADS-B data. Compares older data to newer data to determine if a landing or takeoff has occurred. As well as nav modes, emergency squawk and resolution advisory notifications. Can output to Twitter, Discord, Mastodon, and Telegram
Running the latest code crashes when calculating fuel
logs:
Running fuel info calc
Current nationwide Jet-A fuel price avg per G is $ 6.69
Fuel info {'fuel_price': 7195, 'fuel_used_kg': 3270, 'fuel_used_gal': 1076, 'fuel_used_lters': 4071, 'fuel_used_lbs': 7208, 'c02_tons': 11}
Traceback (most recent call last):
File "/plane-notify/__main__.py", line 281, in <module>
raise e
File "/plane-notify/__main__.py", line 208, in <module>
obj.run_adsbx_v2(data_indexed[key.upper()])
File "/plane-notify/planeClass.py", line 175, in run_adsbx_v2
self.run_check()
File "/plane-notify/planeClass.py", line 498, in run_check
fuel_message = fuel_message(fuel_info)
File "/plane-notify/fuel_calc.py", line 46, in fuel_message
lbs = "{:, }".format(fuel_info['fuel_used_lbs'])
ValueError: Invalid format specifier
Running the latest code crashes when calculating fuel
logs:
seems to be caused by https://github.com/Jxck-S/plane-notify/blob/multi/fuel_calc.py#L46