> 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/italian-it/vesta-434.md).

# VESTA-434

## Introduzione

Questa guida spiega come funziona l'integrazione del megafono con VESTA. Imparerai il processo di configurazione, le funzionalità principali e come massimizzare l'efficacia di questa integrazione.

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

## 🔐 Accesso locale

Di seguito sono riportati i dati di accesso locali al megafono:

<table data-header-hidden><thead><tr><th width="350"></th><th></th></tr></thead><tbody><tr><td>IP PREDEFINITO</td><td>192.168.5.200</td></tr><tr><td>NOME UTENTE PREDEFINITO</td><td>admin</td></tr><tr><td>PASSWORD PREDEFINITA</td><td>admin</td></tr></tbody></table>

## Carica nuovo file audio

<figure><img src="/files/06c13971bc8a73df85bcf7d07a07f59688c5d7cb" alt=""><figcaption><p>Per caricare un nuovo file mp3</p></figcaption></figure>

{% hint style="info" %}
Ricorda di abilitare in ALLARME -> URL HTTP (Play File Enable)
{% endhint %}

<figure><img src="/files/9e33ec11a57ddfd6807461a1e3f90089e903b832" alt=""><figcaption></figcaption></figure>

## 📢 Comandi HTTP per riprodurre spot audio in VESTA

### 🔊 **Esempi di azioni API Play**

**Azione Stop:**&#x20;

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

**Avvia riproduzione bell1:**&#x20;

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

**Avvia riproduzione di userfile1 una volta con volume 10**:&#x20;

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

**Avvia riproduzione di userfile1 più volte (10 volte) con volume 20:**

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

**Avvia riproduzione di userfile1 per una durata specifica (10 volte) con volume 30:**&#x20;

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

## Attivazione di uno slot audio da VESTA

{% hint style="success" %}
Questi **HTTP** comandi possono essere inseriti direttamente nelle azioni delle regole di VESTA. Ad esempio, possiamo programmare una regola che in caso di allarme avvierà lo slot audio 1 sul megafono: Creiamo una regola con il seguente:&#x20;

* ***TRIGGER:** Allarme -> Qualsiasi allarme*&#x20;
* ***CONDIZIONI:** Na*&#x20;
* ***AZIONI:** HTTP ->* <http://192.168.0.155/api/play?action=start\\&file=><mark style="color:rosso;">userfile1</mark>
  * *<mark style="color:rosso;">userfile1</mark>*: Questo è il primo file mp3 che abbiamo caricato sul megafono
    {% endhint %}

<figure><img src="/files/f70196c2ba5f5f58b0ddbfa5ad8e68d2ea7e9447" alt=""><figcaption><p>Esempio di regola in VESTA</p></figcaption></figure>

***

## Scarica la guida manuale completa

{% file src="/files/2b4ec5d539bee677dcaa42c6a2c93778f328d823" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://vesta-guide.gitbook.io/vesta-guide/italian-it/vesta-434.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
