> For the complete documentation index, see [llms.txt](https://vesta-guide.gitbook.io/vesta-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vesta-guide.gitbook.io/vesta-guide/vesta-434.md).

# VESTA-434

## Introduction

This guide will explain how the integration of the megaphone with VESTA works. You'll learn about the setup process, key features, and how to maximize the effectiveness of this integration.

<figure><img src="/files/837Ey7pplcrE5rM17hQx" alt=""><figcaption></figcaption></figure>

## 🔐 Local access

The following is the local access data to the horn:

<table data-header-hidden><thead><tr><th width="350"></th><th></th></tr></thead><tbody><tr><td>DEFAULT IP</td><td>192.168.5.200</td></tr><tr><td>DEFAULT USER NAME</td><td>admin</td></tr><tr><td>DEFAULT PASSWORD</td><td>admin</td></tr></tbody></table>

## Load new audio file

<figure><img src="/files/Dp0xcDuqeqtyuJwJG92n" alt=""><figcaption><p>To load new mp3 file</p></figcaption></figure>

{% hint style="info" %}
Remember to enable en ALARM -> HTTP URL (Play File Enable)
{% endhint %}

<figure><img src="/files/cJJozFOx94Pm8ixlym6K" alt=""><figcaption></figcaption></figure>

## 📢 HTTP commands for running audio spots in VESTA

### 🔊 **API Play Action Examples**

**Stop Action:**&#x20;

* <http://user:password@192.168.0.155/api/play?action=stop>

**Start playing bell1:**&#x20;

* <http://user:password@192.168.0.155/api/play?action=start\\&file=bell1>

**Start playing userfile1 once with volume 10**:&#x20;

* <http://user:password@192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=once\\&volume=10>

**Start playing userfile1 multiple times (10 times) with volume 20:**

* <http://user:password@192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=multiple\\&count=10\\&volume=20>

**Start playing userfile1 for a specific duration (10 times) with volume 30:**&#x20;

* <http://user:password@192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=duration\\&count=10\\&volume=30>

## Activating an audio wedge from VESTA

{% hint style="success" %}
These **HTTP** commands can go directly into VESTA rule actions. For example, we can program a rule that in case of alarm will launch audio wedge 1 on the megaphone: We create a rule with the following:&#x20;

* ***TRIGGER:** Alarm -> Any alarm*&#x20;
* ***CONDITIONS:** Na*&#x20;
* ***ACTIONS:** HTTP ->* http\://<mark style="color:violet;">admin</mark>:<mark style="color:blue;">admin</mark>@192.168.0.155/api/play?action=start\&file=<mark style="color:red;">userfile1</mark>
  * *<mark style="color:red;">userfile1</mark>*: This is the first mp3 file we uploaded on the horn
  * <mark style="color:violet;">admin:</mark> Username
  * <mark style="color:blue;">admin:</mark> Password
    {% endhint %}

<figure><img src="/files/i7SlEWn37HclpFUvVyvx" alt=""><figcaption><p>Rule example in VESTA</p></figcaption></figure>

***

## Download complete Manual guide

{% file src="/files/BC9NbSoBoBG4x56o2Ejz" %}
