Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drnic/airports-chatgpt-plugin

ChatGPT plugin that returns airport information in Australia, written in Ruby/Sinatra.
https://github.com/drnic/airports-chatgpt-plugin

Last synced: 2 months ago
JSON representation

ChatGPT plugin that returns airport information in Australia, written in Ruby/Sinatra.

Awesome Lists containing this project

README

        

# ChatGPT plugin in Ruby - Airport information

ChatGPT plugin that returns airport information in Australia, written in Ruby/Sinatra.

Airport information was downloaded from and is stored in `data/au-airports.csv`.

## Example usage

Ask for a flight plan between some town airports.

![flight-plan](docs/demo-chatgpt-flight-plan.png)

![skyvector](docs/demo-flight-plan-skyvector.png)

It correctly uses the town's local airport GPS coordinates, not the towns' themselves.

![sthelens](docs/demo-correctly-using-airport-coords.png)

You can also ask for heading and time to fly, which ChatGPT can help do the calculation.

![duration](docs/demo-distance-heading.png)

## Run locally and test on ChatGPT

To start up the application and bind to port 9292:

```plain
bundle
rerun rackup
```

You will need to expose the application to the internet. I use .

```plain
ngrok http --region=au 9292
```

The output shows you your domain

```plain
Session Status online
Region Australia (au)
Forwarding https://e92baeb18b8a.ngrok.app -> http://localhost:9292
```

The domain `e92baeb18b8a.ngrok.app` will be passed to ChatGPT when we register the plugin.

## Register plugin with ChatGPT

Open , and switch to the ChatGPT "Plugins" model.

![setup-model-plugins](docs/setup-model-plugins.png)

Next, under the Plugins dropdown, select "Plugin Store".

![setup-open-plugin-store](docs/setup-open-plugin-store.png)

At the bottom of the modal, click on **"Develop your own plugin"**.

Click the green **"My manifest is ready"** button.

Copy your ngrok domain `e92baeb18b8a.ngrok.app` into the form, and click the green "Find manifest file" button.

ChatGPT will validate the two manifest files. Click the green **Next** button.

Next, click **Install for me**, then **Continue**, then **Install plugin**.