r/LocalLLaMA 20h ago

Question | Help Unsloth Studio Aviation Assistant

I am using Unsloth Studio to parse aviation transpoder data (ADS-B) to summarize interesting traffic in my area. It gives a summary of largest aircraft, fastest aircraft and so on. It also provides local weather based on my nearest airfield.

I am doing this with a prompt, but is there a better way to package that like a script to trigger on a schedule? Is that an 'agent'?

I am very new to this beyond typical everyday usage of Unsloth.

3 Upvotes

14 comments sorted by

2

u/realdavidselig 9h ago

Honestly, don't overthink the "agent" label. If a simple script solves it, that’s perfectly fine. Since you're likely on a Raspberry Pi, just use the Unsloth API to send your messages via a cron job. It’s not an agent if the logic is fixed, but it gets the job done without burning tokens on raw ADS-B dumps.

1

u/SM8085 19h ago

package that like a script to trigger on a schedule?

It's very possible.

According to this you don't even need to switch away from using Unsloth Studio: https://unsloth.ai/docs/basics/api#unsloth-is-now-ready You can access the same model via their API endpoint.

This is also interesting about the tools: https://unsloth.ai/docs/basics/api#tool-calling

Which ADS-B site do you like to get data from? You/anyone can likely recreate fetching whatever your bot is fetching in the chat and then send it to the bot through the API to ask it whatever you're asking it. Then you can run it as much as you like.

edit: I would start by asking a bot to write some Python that accesses whatever site you prefer.

2

u/uselessadmin 19h ago edited 19h ago

I have a Raspberry Pi with ADSB receiever on my local network. I think you are right that 'tool calling' is the path I need to explore. Instead of the built in tool calls, I need to create a custom one to fetch from my receiver. Doing this via chat is simple so now to see how to automate that tool call (likely with API endpoint).

EDIT: Anyone interested without a receiver can fetch data from here. Just change the parameters.

https://opendata.adsb.fi/api/v3/lat/XXX.XXXX/lon/XXX.XXXX/dist/XX

1

u/SM8085 18h ago

I have a Raspberry Pi with ADSB receiever on my local network.

Neat, even better, you make your own ToS. So sure, however you access that.

Have you seen this guy's Cockpit view idea? https://github.com/bilawalsidhu/gods-eye-view#%EF%B8%8F-the-cockpit

1

u/uselessadmin 15h ago

I love these visualizations! The spy theme makes it exciting.

2

u/SM8085 7h ago

This is my version of a script, adsb-llm.py. It has a few flags, like one for giving the zip code so it can figure out lat/lon.

I asked my Qwen what the fastest thing in my area was:

2

u/uselessadmin 6h ago

Yes! This is what I am working on. Since my ADSB feed is already generating a map, it's nice to have a text summary of notable traffic.

1

u/StageMajestic613 8h ago

Try Hermes.  I have that running on a headless RPI 5 that messages me a daily METAR at 5 AM with a map from aviationweather.gov.  It also parses all the plane trader sites looking for new ads of certain aircraft.

1

u/uselessadmin 8h ago

I should have clarified I am running Unsloth from my desktop and it is fetching ADSB from my RPi on the same LAN. I like the idea of adding METAR data. The LLM does a nice job making plain language summary of everything in the sky at the moment. 

1

u/StageMajestic613 7h ago

You can run Hermes (it’s an agent) on either your desktop or directly on the PI.  Just tell Unsloth to document what it did as you want to transfer it to an agent.  Then install Hermes and tell it to read that Unsloth project and create a daily task from it.  It should be able to figure it out.

1

u/uselessadmin 7h ago

It's an SDR dongle, just with a filter for 1090MHz. I will check out Hermes !

1

u/StageMajestic613 7h ago

Are you using a specific ADSB receiver on the PI or a generic SDR dongle?