Skip to content

🪄 Configuration

To configure the Arona, you need to create a configuration file named config.yaml in the root directory of the project.

⚠️ Public Access From The Internet Required

You must fill the baseUrl field in the config.yaml file with the URL that can be accessed from the internet.

Otherwise, the bridge will not work properly. (Throwing an error like Error: Cannot check the heart code...)

If you don't have a public IP address, see the Localtunnel section.

Configuration File

The configuration file is a YAML file that contains the configuration for the Arona.

yaml
deviceName: "Arona"

http:
  bindHost: 127.0.0.1
  bindPort: 3000
  baseUrl: "http://example.com"

bridge:
  public: true

bridgeProvider:
  # OpenAI
  openai:
    enable: false
    # https://github.com/ai-tech-tw/openai
    baseUrl: "https://web-tech-tw.eu.org/openai/v1"
    apiKey: "YourGeminiApiKey"
    chatModel: "gpt-3.5-turbo"

  # LINE
  line:
    enable: false
    channelAccessToken: "YourChannelAccessToken"
    channelSecret: "YourChannelSecret"
    useNotify: false
    notifyClientId: "YourClientID"
    notifyClientSecret: "YourClientSecret"

  # Matrix
  matrix:
    enable: false
    homeserverUrl: "https://matrix.org"
    accessToken: "YourSecretAccessToken"

  # Discord
  discord:
    enable: false
    appId: "YourAppId"
    botToken: "YourBotToken"

  # Telegram
  telegram:
    enable: false
    botToken: "YourBotToken"

Configuration File is related to what you want to do with Arona.

You can enable or disable the providers you want to use.

Configuration Options

The configuration file contains the following options:

OptionDescription
deviceNameThe name of the device.
httpThe HTTP configuration.
bridgeThe bridge configuration.
bridgeProviderThe bridge provider configuration.

deviceName

The deviceName option is used to specify the name of the device.

http

The http option is used to configure the HTTP server.

OptionDescription
bindHostThe host to bind to.
bindPortThe port to bind to.
baseUrlThe base URL of the API.

bridge

The bridge option is used to configure the bridge.

OptionDescription
publicWhether the bridge can be used by public or not.

bridgeProvider

The bridgeProvider option is used to configure the bridge provider.

OpenAI

The openai option is used to configure the OpenAI provider.

OptionDescription
enableWhether the provider is enabled or not.
baseUrlThe base URL of the OpenAI API.
apiKeyThe API key of the OpenAI API.
chatModelThe chat model to use.

Details of OpenAI integration can be found here.

LINE

The line option is used to configure the LINE provider.

OptionDescription
enableWhether the provider is enabled or not.
channelAccessTokenThe channel access token of the LINE API.
channelSecretThe channel secret of the LINE API.
useNotifyWhether to use LINE Notify or not.
notifyClientIdThe client ID of the LINE Notify API.
notifyClientSecretThe client secret of the LINE Notify API.

Details of LINE integration can be found here.

Matrix

The matrix option is used to configure the Matrix provider.

OptionDescription
enableWhether the provider is enabled or not.
homeserverUrlThe homeserver URL of the Matrix API
accessTokenThe access token of the Matrix API.

Details of Matrix integration can be found here.

Discord

The discord option is used to configure the Discord provider.

OptionDescription
enableWhether the provider is enabled or not.
appIdThe application ID of the Discord API.
botTokenThe bot token of the Discord API.

Details of Discord integration can be found here.

Telegram

The telegram option is used to configure the Telegram provider.

OptionDescription
enableWhether the provider is enabled or not.
botTokenThe bot token of the Telegram API.

Details of Telegram integration can be found here.

MIT Licensed