JSON received from the API:
{
"13005": {
"code_insee": "13005",
"commune": "AUBAGNE",
"valeurs": {
"2026-04-15": {
"date_diffusion": "2026-04-15",
"date_echeance": "2026-04-15",
"echeance": 0,
"majoritaire": [
"o3",
"pm10",
"pm2.5"
],
"indice": {
"couleur": "#50CCAA",
"qualificatif": "Moyen"
}
}
}
}
}
hello: :
:
start:
level2:
id: , type:
DEBUG (1-10): Cache is NOT active
DEBUG (1-10): try to retieve this url: https://api.atmosud.org/iqa2021/commune/indices/journalier?format_indice=couleur,qualificatif&indice=iqa&format=json&insee=13055&srid=2154&info_diffusion=true
DEBUG: wp_safe_remote_get to https://api.atmosud.org/iqa2021/commune/indices/journalier?format_indice=couleur,qualificatif&indice=iqa&format=json&insee=13055&srid=2154&info_diffusion=true
DEBUG: arguments: {"timeout":5}
DEBUG: success getting URL
DEBUG (1-10): api-answer:
Inspect JSON: Copypaste (click in box, Strg-A marks all, then insert into clipboard) the JSON from the following box to https://jsoneditoronline.org):
DEBUG (1-10): basenode: no basenode defined
DEBUG (1-10): template:
DEBUG (1-10):
LEAVE function checkType // depth: 1 // result: </p><p> Indice : {indice.qualificatif}<br /> Ville : MARSEILLE </p><p>
// returnHTMLinsideProc:
Indice : {indice.qualificatif}
Ville : MARSEILLE
DEBUG (1-10): result:
Indice :
Ville : MARSEILLE
