> For the complete documentation index, see [llms.txt](https://docs.g-iot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.g-iot.io/it/guida-completa-al-low-cost-tracker/low-cost-tracker-greater-than-funzioni-di-giot/lct-regole/lct-regola-geofence.md).

# LCT - Regola Geofence

La regola di geofence consente di generare allarmi basati sulla geolocalizzazione del dispositivo. Gli allarmi possono essere attivati quando il dispositivo entra, esce o entra ed esce da un'area geofence predefinita. Questa regola offre un monitoraggio basato sulla posizione, garantendo che i dispositivi operino all'interno dei confini geografici desiderati.

<figure><img src="https://4225702929-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMPHX8ZroDztaGHTPlcAc%2Fuploads%2FtQhhUIOkuHLTV3GY7RWA%2Fimage.png?alt=media&amp;token=9a9d722c-8475-4207-ac07-5d0d630def73" alt=""><figcaption><p>LCT Regola Geofence</p></figcaption></figure>

**Passaggi per configurare la regola di Geofence per LCT:**

1. **Accedere alla pagina delle regole**:
   * Vai alla lista dei dispositivi, trova il dispositivo LCT desiderato e apri la sua Dashboard.
   * Accedere alla sezione Regole: Nella pagina del dispositivo LCT, fai clic sulla scheda "Regole" per visualizzare tutti i widget delle regole associate al dispositivo.
2. **Attivare la regola**:
   * Attiva la regola utilizzando l'interruttore in cima alla pagina di configurazione.
3. **Inserire il nome**:
   * Dai un nome significativo alla regola per identificarla.
4. **Impostare il livello di allarme**:
   * Seleziona il livello di allarme dal menu a discesa:
     * Critico
     * Maggiore
     * Minore
     * Avviso
5. **Definire il trigger**:
   * Scegli l'evento che attiverà l'allarme:
     * Entrata: Quando il dispositivo entra nell'area del geofence.
     * Uscita: Quando il dispositivo esce dall'area del geofence.
     * Entrata e uscita: Quando il dispositivo cambia stato rispetto al confine del geofence.
6. **Selezionare il template del geofence**:
   * Scegli il geofence desiderato dal menu a discesa. Il geofence deve essere precedentemente creato in "Template > Geofence".
7. **Definire la notifica**:
   * Email: Aggiungi fino a 5 indirizzi email per ricevere le notifiche attivate.
   * Nessuna: Crea e visualizza l'allarme sulla piattaforma senza inviare notifiche.
8. **Fare clic su Salva**:
   * Salva la configurazione per applicare la regola di Geofence.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.g-iot.io/it/guida-completa-al-low-cost-tracker/low-cost-tracker-greater-than-funzioni-di-giot/lct-regole/lct-regola-geofence.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
