Airparrot plugins

Dec 3rd 2023

View Docs 

We have implemented support for plugins in AirparrotHUB
These plugins will allow the A.I model to control the robot and access other services.
We will be launching the first 2 plugins at the end of the month:

Time/Date

Fetch time and date from the device

Weather365

Get current weather info from your location

These plugins are a basic starting-point for realtime and on device info.


Why plugins?AI models today, while useful for a variety of tasks, are still limited. The only information they can learn from is their training data. This information can be out-of-date and is one-size fits all across applications. Furthermore, the only thing language models can do out-of-the-box is emit text. This text can contain useful instructions, but to actually follow these instructions you need another process. 
Example plugin code:
async function fetchWeather(city) {    const apiKey = 'YOUR_API_KEY'; // Replace with your OpenWeather API key    const url = `https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${apiKey}`;
    try {        const response = await fetch(url);        const data = await response.json();
        if (data.weather) {            const weatherDescription = data.weather[0].description;            return `The current weather in ${city} is ${weatherDescription}.`;        } else {            return `Sorry, I couldn't fetch the weather for ${city}.`;        }    } catch (error) {        return `An error occurred while fetching the weather data.`;    }}
If you want to make a plugin you can check out our docs