If it receives or transmits and it doesn't fit in anywhere else... a prelude to a project I've been working on

BinaryMode

Blondie Once Said To Call Her But Never Answerd
Joined
Jul 3, 2023
Messages
1,034
Location
2600 dialtone blvd
It receives via 1090 MHz and the API is fetched. HA!


Been working on a project that I've been wanting to do for several years now. The project? Blinking a light bulb red when military aircraft are in my area. I originally looked into IFTTT (If This Then That) but didn't really see anything that could accomplish my goals in mind and every time I tried to mess around with IFTTT it turned out to be a flop. So I shelved my project for several years only now revising the idea with the advent of AI. Since I don't know much in the way of code except BBcode and markdown (LOL), AI has been fantastic for my coding needs, and because of it I can do so many awesome things and thus far have some 30 PHP and HTML scripts to prove it. Even created several scripts to look at lottery numbers, compiling statistics and whatnot. An no, there are no real "lucky, play these numbers." While there is some interesting data it truly is random. I mean, random balls floating around a see though cylinder...

Anyway, the following craptacluer edited video (I'm not a content creator by any means) showcases what I've been up to. Once I add some more fluff (if I can, sucker is some 370 lines already) and test everything I'll release the code into the public domain.




That is a video hosted by Mega that should render via HTML5 in your browser. If you have trouble use another browser or portable Firefox. Look it up.
 
Last edited:

vagrant

ker-muhj-uhn
Premium Subscriber
Joined
Nov 19, 2005
Messages
3,499
Location
California
Once you are happy with the result and share it, perhaps follow up with another post or separate thread on the AI used to make the script and how you used it in steps.

This can be useful for others that may want an alert when a radio satellite is overhead like the ISS or whatnot using a different API for another source.
 

BinaryMode

Blondie Once Said To Call Her But Never Answerd
Joined
Jul 3, 2023
Messages
1,034
Location
2600 dialtone blvd
This isn't for satellites, it's primarily for military aircraft or user added aircraft hex IDs to whatever their heart desires. . So what I currently do is add my location with a 10 nautical mile radius and if any military aircraft enter my designated air space my light bulb will flash red.

I could do satellites though, and now I'm intrigued to do so HEHE. I think I know of a satellite tracking API that will come in handy. And I can probably use the code I have now.

Elon Musk would smile.. :D LOL!

Edit-

I actually used more than one AI, but mostly Claude as that seems pretty good in my code requirements. Though, it can be frustrating with their limits when the servers are loaded. I paid the $20 bucks thinking the limits would be lifted but that wasn't the case so I cancelled. I'm just as happy with a limited free plan where I can start again in another 4 hours. If I pay I expect a broader limit. So that pissed me off.
 

BinaryMode

Blondie Once Said To Call Her But Never Answerd
Joined
Jul 3, 2023
Messages
1,034
Location
2600 dialtone blvd
Made some improvements. So far so good. In fact, right when I posted this my light bulb blinked red and I checked the other monitor here and it was a Lockheed C-5M Super Galaxy flying over head. LOL

 

Ubbe

Member
Joined
Sep 8, 2006
Messages
9,906
Location
Stockholm, Sweden
Could you please explain the function of the application, like a flow chart?
You have a 1090MHz receiver and you receive transmissions from a waste distance and you only want to know what passes overhead, or within a few miles, that have a military call sign? It seems simple enough but it's probably a lot more to it.

/Ubbe
 

BinaryMode

Blondie Once Said To Call Her But Never Answerd
Joined
Jul 3, 2023
Messages
1,034
Location
2600 dialtone blvd
I would watch my first video in post #1 if you haven't already.

The whole script may seem confusing, but it's not. The overall premise behind it is that when a military aircraft enters your designated airspace it will blink a Philips Hue color changing light bulb red for 15 seconds.

Also, I have added the ability to track specific aircraft via their hex IDs as well. So if that specific aircraft is withen your airspace your Philips Hue light bulb will blink blue for 15 seconds.

And I added an option to track specific squawk codes as well. So if you enter the emergency squawk code of 7700 and that aircraft is withen your designated airspace squawking 7700, your light bulb will flash red and blue for 15 seconds. You can enter any squawk code/s you want. Even a range like 1000-1500 or whatever.

Where does this data come from? The airplanes.live API. Right now it is free and doesn't require you to be an active feeder. Airplanes.live is like ADS-B Exchange. Bit of a story on that actually.

Someone else made a coding project for Steam using the airplanes.live API called FlightTracker3D. It's only $5 (€4.62) and allows you to track aircraft in like a 3D environment on screen. It's built like a game in a way.

(video)

 
Top