Merci @jpty de prendre le temps de m’aider.
Je vais essayer de te répondre le plus précisement possible, mais je découvre le PHP
Voici le log
[2021-01-09 09:06:03] agendad.INFO: --------INIT----------- [] []
[2021-01-09 09:06:04] agendad.INFO: Time : 09:06 [] []
[2021-01-09 09:06:04] agendad.INFO: Date : 01-09-21 [] []
[2021-01-09 09:06:04] agendad.INFO: -----SET UP---------- [] []
**[2021-01-09 09:06:04] agendad.INFO: Url : ----- [] []**
**[2021-01-09 09:06:04] agendad.INFO: Nom: ----- [] []**
**[2021-01-09 09:06:04] agendad.INFO: Prenom: ----- [] []**
**[2021-01-09 09:06:04] agendad.INFO: Api test : 01-09-21?firstname=xxxx&lastname=xxxxx [] []**
[2021-01-09 09:06:04] agendad.INFO: Api : https://api-calendar.calendz.app/v1/day/:01-09-21?firstname=xxxxxxx&lastname=xxxxx[] []
[2021-01-09 09:06:04] agendad.INFO: -----RAW---------- [] []
[2021-01-09 09:06:04] agendad.INFO: RAW : {"courses":[]} [] []
[2021-01-09 09:06:04] agendad.INFO: -----DECODE----- [] []
[2021-01-09 09:06:04] agendad.INFO: -----IMPORT SUCCESS----- [] []
[2021-01-09 09:06:04] agendad.INFO: -------COURSES------- [] []
[2021-01-09 09:06:04] agendad.INFO: ------------1er cours----------- [] []
[2021-01-09 09:06:04] agendad.INFO: ------------tous les cours----------- [] []
Voici le début de « function execute » du fichier agendad.class.php
public function execute($_options = array()) {
$eqlogic = $this->getEqLogic(); //récupère l'éqlogic de la commande $this
switch ($this->getLogicalId()) {
case 'refresh': // LogicalId de la commande rafraîchir que l’on a créé dans la méthode Postsave de la classe vdm .
// $info = $eqlogic->randomVdm(); //On lance la fonction randomVdm() pour récupérer une vdm et on la stocke dans la variable $info
//$info = $eqlogic->getCmd('info', 'next_event_start');
// $eqlogic->checkAndUpdateCmd('next_event_start', $info); // on met à jour la commande avec le LogicalId "story" de l'eqlogic
log::add('agendad','info',' ');
log::add('agendad','info',' --------INIT-----------');
log::add('agendad','info',' ');
// Step 1: Recuperation du contenu du fichier
$alarm_hours=00;
$alarm_minutes=00;
$next_event=0;
//initialisation des variables jeedom
$eqlogic->checkAndUpdateCmd('alarm',"~~.~~");
$eqlogic->checkAndUpdateCmd('next_event_start',"");
$eqlogic->checkAndUpdateCmd('next_event_end',"no event");
$eqlogic->checkAndUpdateCmd('next_event_subject',"");
$eqlogic->checkAndUpdateCmd('next_event_room',"");
$eqlogic->checkAndUpdateCmd('next_event_professor',"");
$eqlogic->checkAndUpdateCmd('current_event_start',"");
$eqlogic->checkAndUpdateCmd('current_event_end',"no event");
$eqlogic->checkAndUpdateCmd('current_event_subject',"");
$eqlogic->checkAndUpdateCmd('current_event_room',"");
$eqlogic->checkAndUpdateCmd('current_event_professor',"");
$time_hours=date('H', time());
//force l'heure pour des tests
//$time_hours=10;
$time_minutes=date('i', time());
log::add('agendad','info','Time : '.$time_hours.":".$time_minutes);
$eqlogic->checkAndUpdateCmd('current_time_epsi',$time_hours.":".$time_minutes);
$date_jour= date("m-d-y");
//force la date pour des tests
//$date_jour= "09-28-20";
$eqlogic->checkAndUpdateCmd('current_date_epsi'," ".$date_jour);
log::add('agendad','info','Date : '.$date_jour);
$param1 =$this->getConfiguration('param1');
$param2 =$this->getConfiguration('param2');
$param3 =$this->getConfiguration('param3');
**log::add('agendad','info','-----SET UP----------');**
**log::add('agendad','info','Url : '.$this->getConfiguration('param1').' -----');**
**log::add('agendad','info','Nom: '.$this->getConfiguration('param2').' -----');**
**log::add('agendad','info','Prenom: '.$this->getConfiguration('param3').' -----');**
**log::add('agendad','info',' ');**
//$api = $this->getConfiguration('param1').$date_jour."?firstname=xxx&lastname=xxxxx";
log::add('agendad','info','Api test : '.$api);
$api = "https://api-calendar.calendz.app/v1/day/:".$date_jour."?firstname=xxxx&lastname=xxxx";
log::add('agendad','info','Api : '.$api);
$json = file_get_contents($api);
Pour rappel, la page de config « agendad.php » avec param1/2 et 3
<legend><i class="fas fa-cogs"></i> {{URL}}</legend>
<div class="form-group">
<label class="col-sm-3 control-label">{{URL Agenda}}</label>
<div class="col-sm-7">
<input type="text" class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="param1" placeholder="{{http:xxxxxx}}"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">{{Nom}}</label>
<div class="col-sm-7">
<input type="text" class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="param2" placeholder="{{Nom}}"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">{{Prenom}}</label>
<div class="col-sm-7">
<input type="text" class="eqLogicAttr form-control" data-l1key="configuration" data-l2key="param3" placeholder="{{Prénom}}"/>
</div>
</div>