Panoramica
CAP (Common Alerting Protocol) è lo standard che governi e agenzie di emergenza usano per le allerte. Play riceve le allerte CAP dal tuo fornitore (per esempio Alertus o Raptor) tramite la nostra API e le mostra sugli schermi in automatico.
- Allerte ufficiali, come maltempo grave, ordini di evacuazione, Amber Alert ed emergenze civili
- Scegli tu come appaiono le allerte e su quali schermi vengono mostrate
- I messaggi di emergenza possono sostituire i contenuti normali
CAP funziona su tutti i media player supportati da Play, purché siano online. È particolarmente importante per scuole, università, ospedali, edifici della pubblica amministrazione e negozi.
Primi passi
Play supporta il protocollo, così i sistemi di allerta di terze parti possono inviare e attivare allerte sugli schermi che eseguono Play. In breve, la configurazione è questa:
Configura le allerte CAP
- Crea una nuova playlist da attivare quando scatta un’allerta CAP.
- Aggiungi il plugin «Allerta CAP» alla diapositiva. Progetta la diapositiva e scegli se, quando scatta l’allerta, nel segnaposto va inserita la descrizione o il titolo.
- Applica un tag agli schermi su cui deve comparire l’allerta. Quando clicchi «Modifica» sul tag, vedi l’ID del tag.
- Crea una nuova chiave API nella pagina Team (annota la chiave API).
- Il tag si può ora attivare tramite l’API: https://api.playsignage.com/docs#tag/Tag/paths/
1v11tags1%7Bid_tag%7D1alert/post - A seconda della regione, l’URL di base è https://eu-api.playsignage.com oppure https://us-api.playsignage.com
Provare l’attivazione dell’allerta è più tecnico, perché devi imitare la richiesta che invierebbe un fornitore di servizi di allerta. L’esempio qui sotto usa curl, che funziona su macOS e Linux. Su Windows puoi usare un programma chiamato Postman. Sostituisci l’URL (l’esempio usa us-api), tag_id e api_key con i tuoi valori. Aggiorna anche le date effective, onset ed expires nel payload, così l’allerta è nella finestra in cui è attiva quando viene attivata.
curl -X POST "https://us-api.playsignage.com/v1/tags/<tag_id>/alert" \
-H "Content-Type: application/xml" \
-H "Authorization: <api_key>" \
-d '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
<identifier>ALERTUS_3716_164_20260302_203832</identifier>
<sender>PlaySignage Test</sender>
<sent>2026-03-07T19:00:00+00:00</sent>
<status>Actual</status>
<msgType>Alert</msgType>
<source>Alertus eEAS Server</source>
<scope>Public</scope>
<addresses>ALL</addresses>
<code>IPAWSv1.0</code>
<info>
<language>en-US</language>
<category>Safety</category>
<event>Local Area Emergency</event>
<responseType>None</responseType>
<urgency>Immediate</urgency>
<severity>Severe</severity>
<certainty>Observed</certainty>
<eventCode>
<valueName>SAME</valueName>
<value>LAE</value>
</eventCode>
<effective>2026-03-07T19:00:00+00:00</effective>
<onset>2026-03-07T20:00:00+00:00</onset>
<expires>2026-03-07T20:00:00+00:00</expires>
<headline>HEADLINE This is a TEST of the Alertus Emergency Notification system. NO ACTION IS NEEDED. In a real emergency, this message will contain important alert information.</headline>
<description>DESCRIPTION This is a TEST of the Alertus Emergency Notification system. NO ACTION IS NEEDED. In a real emergency, this message will contain important alert information.</description>
<parameter>
<valueName>EAS-ORG</valueName>
<value>EAS</value>
</parameter>
<area>
<areaDesc>Not specified</areaDesc>
<geocode>
<valueName>SAME</valueName>
<value>000000</value>
</geocode>
</area>
</info>
</alert>'
Per annullare un’allerta in corso:
curl -X POST "https://us-api.playsignage.com/v1/tags/<tag_id>/alert" \
-H "Content-Type: application/xml" \
-H "Authorization: <api_key>" \
-d '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
<identifier>ALERTUS_3716_164_20260302_203832_CANCEL</identifier>
<sender>PlaySignage Test</sender>
<sent>2026-03-07T19:00:00+00:00</sent>
<status>Actual</status>
<msgType>Cancel</msgType>
<source>Alertus eEAS Server</source>
<scope>Public</scope>
<addresses>ALL</addresses>
<code>IPAWSv1.0</code>
<info>
<language>en-US</language>
<category>Safety</category>
<event>Local Area Emergency</event>
<responseType>None</responseType>
<urgency>Immediate</urgency>
<severity>Severe</severity>
<certainty>Observed</certainty>
<eventCode>
<valueName>SAME</valueName>
<value>LAE</value>
</eventCode>
<effective>2026-03-07T19:00:00+00:00</effective>
<onset>2026-03-07T20:00:00+00:00</onset>
<expires>2026-03-07T20:00:00+00:00</expires>
<headline>This is a TEST of the Alertus Emergency Notification system. NO ACTION IS NEEDED. In a real emergency, this message will contain important alert information.</headline>
<description>This is a TEST of the Alertus Emergency Notification system. NO ACTION IS NEEDED. In a real emergency, this message will contain important alert information.</description>
<parameter>
<valueName>EAS-ORG</valueName>
<value>EAS</value>
</parameter>
<area>
<areaDesc>Not specified</areaDesc>
<geocode>
<valueName>SAME</valueName>
<value>000000</value>
</geocode>
</area>
</info>
</alert>'
Domande frequenti
Cos’è il CAP e come funziona con Play Digital Signage?
CAP significa Common Alerting Protocol. È lo standard internazionale usato da governi e agenzie di emergenza per inviare allerte ufficiali. Play Digital Signage riceve queste allerte in automatico e può mostrarle sui tuoi schermi in tempo reale.
Quali fornitori di allerte sono supportati?
Finora abbiamo lavorato con alertus.com e raptortech.com. Siamo aperti a integrazioni con altri fornitori di allerte: contattaci.





