Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/drnic/airports-chatgpt-plugin
- Owner: drnic
- Created: 2023-04-08T06:56:06.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2023-04-08T07:24:05.000Z (over 1 year ago)
- Last Synced: 2024-08-01T01:28:00.592Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 1.72 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-chatgpt-plugins - Airports
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**.