# 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="https://1580875003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJzpNocHhYVmD43GZobR%2Fuploads%2FK0uuS4a4TDcCWwppht6F%2Fimage.png?alt=media&#x26;token=62c1d362-c642-413b-8aa1-5ce204b05606" 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="https://1580875003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJzpNocHhYVmD43GZobR%2Fuploads%2F6pvSCjJrhZ28YlNroSdp%2Fimage.png?alt=media&#x26;token=cda823b1-9eed-4b95-a486-9f6d8f558704" 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="https://1580875003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJzpNocHhYVmD43GZobR%2Fuploads%2F7zsbm7YIjsX6y3obmXRw%2Fimage.png?alt=media&#x26;token=8cef06fa-9b54-497a-ae49-9e17570825e5" alt=""><figcaption></figcaption></figure>



## 📢 HTTP commands for running audio spots in VESTA

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

**Stop Action:**&#x20;

* http://192.168.0.155/api/play?action=stop

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

* http://192.168.0.155/api/play?action=start\&file=bell1

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

* http://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://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://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://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
{% endhint %}

<figure><img src="https://1580875003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJzpNocHhYVmD43GZobR%2Fuploads%2FAWbKp0Sm9sDHZOOAN34b%2Fimage.png?alt=media&#x26;token=bdb51d67-bea6-433c-9f4a-7a066f0de245" alt=""><figcaption><p>Rule example in VESTA</p></figcaption></figure>

***



## Download complete Manual guide

{% file src="https://1580875003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJzpNocHhYVmD43GZobR%2Fuploads%2Fq1hisH9127VB6ewx0Z9J%2FVESTA%20IP%20Speaker%20User%20Manual.docx?alt=media&token=c6a5c3d6-0178-477f-aa32-45aa24e7f8c2" %}
