> 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/finnish-fi/vesta-434.md).

# VESTA-434

## Johdanto

Tämä opas selittää, miten megafonin integrointi VESTA:n kanssa toimii. Opit asennusprosessista, tärkeistä ominaisuuksista ja siitä, miten tämän integraation tehokkuus voidaan maksimoida.

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

## 🔐 Paikallinen käyttö

Seuraavat ovat megafonin paikalliset käyttöoikeustiedot:

<table data-header-hidden><thead><tr><th width="350"></th><th></th></tr></thead><tbody><tr><td>OLETUS IP</td><td>192.168.5.200</td></tr><tr><td>OLETUS KÄYTTÄJÄNIMI</td><td>admin</td></tr><tr><td>OLETUS SALASANA</td><td>admin</td></tr></tbody></table>

## Lataa uusi äänitiedosto

<figure><img src="/files/556fc6177d44dbffca38c683d384fc97307a941f" alt=""><figcaption><p>Ladataaksesi uuden mp3-tiedoston</p></figcaption></figure>

{% hint style="info" %}
Muista ottaa ALARM -> HTTP URL (Play File Enable) käyttöön
{% endhint %}

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

## 📢 HTTP-komennot äänikomentojen ajamiseen VESTA:ssa

### 🔊 **API Soitto-toiminnon esimerkit**

**Pysäytys-toiminto:**&#x20;

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

**Aloita bell1-soitto:**&#x20;

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

**Aloita userfile1-soitto kerran äänentasolla 10**:&#x20;

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

**Aloita userfile1-soitto useita kertoja (10 kertaa) äänentasolla 20:**

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

**Aloita userfile1-soitto tietylle kestolle (10 kertaa) äänentasolla 30:**&#x20;

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

## Äänivyöhykkeen aktivointi VESTA:sta

{% hint style="success" %}
Nämä **HTTP** komennot voidaan laittaa suoraan VESTA-sääntötoimintoihin. Esimerkiksi voimme ohjelmoida säännön, joka hälytys-tilanteessa käynnistää megafonissa äänivyöhykkeen 1: Luomme säännön seuraavasti:&#x20;

* ***LAUKAISIN:** Hälytys -> Mikä tahansa hälytys*&#x20;
* ***EHDOT:** Ei*&#x20;
* ***TOIMINNOT:** HTTP ->* <http://192.168.0.155/api/play?action=start\\&file=><mark style="color:punainen;">userfile1</mark>
  * *<mark style="color:punainen;">userfile1</mark>*: Tämä on ensimmäinen mp3-tiedosto, jonka latasimme megafoniin
    {% endhint %}

<figure><img src="/files/de5e66e97c6fc0459eb9861915e7900d986bcb77" alt=""><figcaption><p>Säännön esimerkki VESTA:ssa</p></figcaption></figure>

***

## Lataa täydellinen käyttöopas

{% file src="/files/0e6e289cd4c94d2de8552742603ca60a5a81c71b" %}


---

# 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/finnish-fi/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.
