Page 4 of 4

Re: Script for Airplanes.live api

Posted: Tuesday 21 January 2025 17:17
by WBeulink
Got it all working. Very good work!
There were 2 things:

1. I'm running on the latest Beta of Domoticz. Ever since mid december this is not working in the Beta:
local lat = dz.settings.location.latitude
local long = dz.settings.location.longitude
Gives two times a zero!
So I added right below:
lat = 52.15603148339703
long = 5.372035503387451
[I found this problem with your "Dutch Stookwijzer" script. So I was prepared.]
2. In Global Data I Added under data:
airplanes = { initial = {} },
Has to be:
ap_table = { initial = {} },
Found the first name somewhere higher up in the posts.

But I'm very glad now. Everything is working.
Although I have some doubles in the list and CSV.
Maybe I hve to narrow down the distance

Willem
Thanks.

Re: Script for Airplanes.live api

Posted: Tuesday 21 January 2025 17:38
by waltervl
WBeulink wrote: Tuesday 21 January 2025 17:17 Got it all working. Very good work!
There were 2 things:

1. I'm running on the latest Beta of Domoticz. Ever since mid december this is not working in the Beta:
local lat = dz.settings.location.latitude
local long = dz.settings.location.longitude
Gives two times a zero!
When I put this in my domoticz script is is working and logging normal values:

Code: Select all

	execute = function(domoticz, device)
		domoticz.log('Device ' .. device.name .. ' was changed', domoticz.LOG_INFO)
		domoticz.log('Location lat ' .. domoticz.settings.location.latitude .. ' longitude: ' .. domoticz.settings.location.longitude , domoticz.LOG_INFO)
	end

Re: Script for Airplanes.live api

Posted: Tuesday 21 January 2025 19:37
by janpep
WBeulink wrote: Tuesday 21 January 2025 17:17 Got it all working. Very good work!
There were 2 things:
1. About the lat & long
No need to say that the dz.settings.location.latitude amd dz.settings.location.longitude are working here.
waltervl was first. ( I guess he is here day and night :-) ) He also confirms this.
Curious to know: Are Latitude and Longitude entered in your Setup - Settings - System under Location?
Also look at other earlier post about the 0,0.


2. About the table,
I remember that I changed this in de beginning. May be I did not rename it in all places, but I am glad you found the solution.
Found and changed this in my earlier posts and publications of the script, where it is also present.
NB. You might not have ran into it, but change also the line

Code: Select all

_d.initialize('airplanes') -- Re-initialize the table
into

Code: Select all

_d.initialize('ap_table') -- Re-initialize the table

Re: Script for Airplanes.live api

Posted: Wednesday 22 January 2025 13:54
by WBeulink
_d.initialize('ap_table') -- Re-initialize the table
This was OK in my script ('ap-table') but the line was commented out.
Now it isn't anymore. Let's see .......

Re: Script for Airplanes.live api

Posted: Wednesday 22 January 2025 17:29
by janpep
WBeulink wrote: Wednesday 22 January 2025 13:54 _d.initialize('ap_table') -- Re-initialize the table
This was OK in my script ('ap-table') but the line was commented out.
Now it isn't anymore. Let's see .......
No. That line was indeed correct and commented out and only used for reset, when table was mixed up to clean up (old records that are not deleted properly).Should not be needed anymore.
Futher down you can find the line that I mentioned.

Re: Script for Airplanes.live api

Posted: Wednesday 22 January 2025 18:51
by WBeulink
Found indeed. Thanks.

Re: Script for Airplanes.live api

Posted: Friday 14 August 2026 19:38
by janpep
Since begin this week I got an error message for the api.
When you open the url from the script in your browser you get:
{"error": "please contact us at [email protected]"}

I contacted them. This is the answer I received bu email:

===============================================
This is not an AI generated reply. This email is going out to everyone using the API.
If you are a feeder, we will have a system in place eventually. Thank you for your support and patience.
If you are not currently contributing, there is no better time to get started.
https://airplanes.live/get-started/
Due to bot abuse and Claude code, the free API has been taken down in order to prevent our eventual bankruptcy. We have been discussing this in our Discord for a month or more.
Agent AI and the advent of apps and scrapers have made hosting costs unsustainable. It is further compounded by the AI boom increasing our hosting costs nearly 300% in 2 years (18 months actually).
The Airplanes.Live API serves over 2 billion requests a week and growing.
We exceeded monthly hosting egress bandwidth in 4 days this month.

Our goals:
Airplanes.Live needs to become sustainable long term.
We do not currently have ads.
We do not filter or remove traffic.
We are owned by enthusiasts and the community.
We ask anyone using our API data to host a feeder and sponsor their usage.

$25/mo Sponsorship
https://www.paypal.com/webapps/billing/ ... 05RNFZ2FJI

$50/mo Developer Sponsorship
https://www.paypal.com/webapps/billing/ ... 33GM64MC4A

FYI:
We built ADSBexchange before the sale to the private equity firm.
We refused to sell out and spent 2 years fighting for our intellectual property and that of the contracted developers.
The contracted devs were paid $2.6M and moved on with their lives.
We retained our IP and built Airplanes.Live.
===============================================

For me, it was fun to be able to capture when planes passed by at close range and altitude. However, for me, that stops when it costs $25 per month.
I disabled the script for now.

Re: Script for Airplanes.live api

Posted: Friday 14 August 2026 20:18
by PieterS
Thnx @janpep for your info. It is very usefull to know what is the reason. Since 12-08-2026 at 16:04 I have about the same error.

Code: Select all

 Error opening url: https://api.airplanes.live/v2/point/51.xxxxxx/4.xxxxxxx
 Error: dzVents: Airplanes-: HTTP/2 response: 403 ==>> No reason returned! 
Too bad that this happens because your script and the service of that site was very usefull to me for years. Thanks again you wrote and spread it.

Best regards,

Pieter

Re: Script for Airplanes.live api

Posted: Friday 14 August 2026 21:00
by janpep
I will investigate whether it is possible to connect as a feeder.
But first, I need to figure out what is required for that and whether and how I can set it up. If it leads to anything, I will let you know.

Re: Script for Airplanes.live api

Posted: Saturday 15 August 2026 3:09
by AirplanesLive
Airplanes.Live here. Unfortunately we are unable to financially sustain the API with the amount of AI bots, Claude code, and abusers of the API. If one or more of you can host ADS-B feeders, then access to the API is granted to the IP of the feeder on our network.

It is the unfortunate reality.

We built ADSBexchange before the sale to the private equity firm.
We refused to sell out and spent 2 years fighting for our intellectual property and that of the contracted developers.
The contracted devs were paid $2.6M and moved on with their lives.
We retained our IP and built Airplanes.Live.

We built Airplanes.Live after the settlement to right the wrongs of ADSBx. The flight tracking hobby is exploited an a mess.

If anyone finds ADS-B useful, then setting up a receiver is fairly easy to learn.

https://airplanes.live/get-started/

I see some crazy tech in your profiles, someone here should know how to do or already have a FR25 or FA feeder.

Sorry for locking the API to feeders only. We have no other choice. As the email reply to Jan stated the economics do not work out at this time.

Re: Script for Airplanes.live api

Posted: Monday 17 August 2026 14:31
by gizmocuz
Thank you for your post and your time and devotion on the project!

When Jan stated with this, I already mentioned to him about getting a ADSB antenna and use FR25/Feeder.

I agree this is the way to go, and also helps other users finding all traffic.

For everybody wanting to go this way, it is very easy to setup/use and you get great statistics/overviews.
I do recommend to place the antenna outside and not behind a window.

Re: Script for Airplanes.live api

Posted: Monday 17 August 2026 15:11
by janpep
I understand that a lot of work goes into this for those who make it available. And the free availability was therefore VERY much appreciated. I really enjoyed creating the script and being able to apply it in Domoticz and share it here.

For me, with my mini PC and NAS in the middle of my house (concrete), I did not see an easy way to place an antenna outside. Even to get to a window, I have a distance of about 8 meters.
I have looked around again. It seems like a lot of fun to participate. But to get good reception over such a distance, I think I would have to invest more than it is worth to me. And I do not think I will get very far with just a USB dongle in my meter cupboard.

Re: Script for Airplanes.live api

Posted: Monday 17 August 2026 18:11
by eddieb
I am feeding adsb aggregators for years now. Using a cheap raspberry pi with an sdr and a simple antenna ...
Using the adsb.im image makes configuring a peace of cake ..