Script for Airplanes.live api
Moderator: leecollings
-
WBeulink
- Posts: 28
- Joined: Monday 21 December 2020 18:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Script for Airplanes.live api
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.
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.
--
RP5 - Bookworm - Domoticz 2025.1 and Latest Beta - Z-Wave JS UI. On Docker
Willem
--
RP5 - Bookworm - Domoticz 2025.1 and Latest Beta - Z-Wave JS UI. On Docker
Willem
--
- waltervl
- Posts: 7003
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Script for Airplanes.live api
When I put this in my domoticz script is is working and logging normal values: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!
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)
endDomoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
janpep
- Posts: 321
- Joined: Thursday 14 March 2024 10:11
- Target OS: Linux
- Domoticz version: v2026.3
- Location: Netherlands
- Contact:
Re: Script for Airplanes.live api
1. About the lat & longWBeulink wrote: Tuesday 21 January 2025 17:17 Got it all working. Very good work!
There were 2 things:
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
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 tableCode: Select all
_d.initialize('ap_table') -- Re-initialize the tableDz on Ubuntu VM on Proxmox behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
-
WBeulink
- Posts: 28
- Joined: Monday 21 December 2020 18:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Script for Airplanes.live api
_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 .......
This was OK in my script ('ap-table') but the line was commented out.
Now it isn't anymore. Let's see .......
--
RP5 - Bookworm - Domoticz 2025.1 and Latest Beta - Z-Wave JS UI. On Docker
Willem
--
RP5 - Bookworm - Domoticz 2025.1 and Latest Beta - Z-Wave JS UI. On Docker
Willem
--
-
janpep
- Posts: 321
- Joined: Thursday 14 March 2024 10:11
- Target OS: Linux
- Domoticz version: v2026.3
- Location: Netherlands
- Contact:
Re: Script for Airplanes.live api
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.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 .......
Futher down you can find the line that I mentioned.
Dz on Ubuntu VM on Proxmox behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
-
WBeulink
- Posts: 28
- Joined: Monday 21 December 2020 18:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Script for Airplanes.live api
Found indeed. Thanks.
--
RP5 - Bookworm - Domoticz 2025.1 and Latest Beta - Z-Wave JS UI. On Docker
Willem
--
RP5 - Bookworm - Domoticz 2025.1 and Latest Beta - Z-Wave JS UI. On Docker
Willem
--
-
janpep
- Posts: 321
- Joined: Thursday 14 March 2024 10:11
- Target OS: Linux
- Domoticz version: v2026.3
- Location: Netherlands
- Contact:
Re: Script for Airplanes.live api
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.
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.
Last edited by janpep on Friday 14 August 2026 20:35, edited 1 time in total.
Dz on Ubuntu VM on Proxmox behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
-
PieterS
- Posts: 198
- Joined: Wednesday 31 May 2017 16:06
- Target OS: NAS (Synology & others)
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Script for Airplanes.live api
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.
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
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! Best regards,
Pieter
Last edited by PieterS on Saturday 15 August 2026 18:19, edited 2 times in total.
Synology with Domoticz build (V2024.7) in Docker
-
janpep
- Posts: 321
- Joined: Thursday 14 March 2024 10:11
- Target OS: Linux
- Domoticz version: v2026.3
- Location: Netherlands
- Contact:
Re: Script for Airplanes.live api
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.
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.
Dz on Ubuntu VM on Proxmox behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
-
AirplanesLive
- Posts: 1
- Joined: Saturday 15 August 2026 2:54
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Script for Airplanes.live api
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.
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.
- gizmocuz
- Posts: 3023
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Script for Airplanes.live api
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.
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.
Quality outlives Quantity!
-
janpep
- Posts: 321
- Joined: Thursday 14 March 2024 10:11
- Target OS: Linux
- Domoticz version: v2026.3
- Location: Netherlands
- Contact:
Re: Script for Airplanes.live api
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.
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.
Dz on Ubuntu VM on Proxmox behind FRITZ!Box.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; Sonoff USB-Dongle Plus-E; Zigbee2Mqtt; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
-
eddieb
- Posts: 428
- Joined: Wednesday 04 July 2018 7:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Script for Airplanes.live api
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 ..
Using the adsb.im image makes configuring a peace of cake ..
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / Marstek Venus / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Feeding ADSB https://adsb.im/home