En script d’une ligne c’est mort!
Mais ce n’est pas impossible 
Avoir un tableau (array en PHP) de Timers et l’écrire dans l’IPX cela est faisable en PHP / Curl.
Voici une page PHP qui programme les Timers à partir d’une liste.
Bye
Rno
PS: ‹ 12%3A51 › signifie 12:51 de mémoire c’est urlencode(« 12:51 ») en PHP.
Lancement de commandes CURL
<?php
$ip = « 192.168.0.6 »;
//url de la page de soumission
$url = « http:// ».$ip."/protect/timers.htm";
// ===============================
// TIMERS de 0 à 15 LISTING
// ===============================
echo «
--------------
Setting Timers
--------------
»;
$fields = array(
‹ Timer00Time › => ‹ 12%3A51 ›,
‹ Timer00Relay › => ‹ 0 ›,
‹ Timer00Action › => ‹ 4 ›,
‹ Timer01Time › => ‹ 12%3A52 ›,
‹ Timer01Relay › => ‹ 0 ›,
‹ Timer01Action › => ‹ 4 ›,
‹ Timer02Time › => ‹ 12%3A53 ›,
‹ Timer02Relay › => ‹ 1 ›,
‹ Timer02Action › => ‹ 4 ›,
‹ Timer03Time › => ‹ 12%3A54 ›,
‹ Timer03Relay › => ‹ 1 ›,
‹ Timer03Action › => ‹ 4 ›,
‹ Timer04Time › => ‹ 12%3A55 ›,
‹ Timer04Relay › => ‹ 2 ›,
‹ Timer04Action › => ‹ 4 ›,
‹ Timer05Time › => ‹ 12%3A56 ›,
‹ Timer05Relay › => ‹ 2 ›,
‹ Timer05Action › => ‹ 4 ›,
‹ Timer06Time › => ‹ 12%3A57 ›,
‹ Timer06Relay › => ‹ 3 ›,
‹ Timer06Action › => ‹ 4 ›,
‹ Timer07Time › => ‹ 12%3A58 ›,
‹ Timer07Relay › => ‹ 3 ›,
‹ Timer07Action › => ‹ 4 ›,
‹ Timer08Time › => ‹ 12%3A59 ›,
‹ Timer08Relay › => ‹ 4 ›,
‹ Timer08Action › => ‹ 4 ›,
‹ Timer09Time › => ‹ 13%3A00 ›,
‹ Timer09Relay › => ‹ 4 ›,
‹ Timer09Action › => ‹ 4 ›,
‹ Timer10Time › => ‹ 13%3A01 ›,
‹ Timer10Relay › => ‹ 5 ›,
‹ Timer10Action › => ‹ 4 ›,
‹ Timer11Time › => ‹ 13%3A02 ›,
‹ Timer11Relay › => ‹ 5 ›,
‹ Timer11Action › => ‹ 4 ›,
‹ Timer12Time › => ‹ 13%3A03 ›,
‹ Timer12Relay › => ‹ 6 ›,
‹ Timer12Action › => ‹ 4 ›,
‹ Timer13Time › => ‹ 13%3A04 ›,
‹ Timer13Relay › => ‹ 6 ›,
‹ Timer13Action › => ‹ 4 ›,
‹ Timer14Time › => ‹ 13%3A05 ›,
‹ Timer14Relay › => ‹ 7 ›,
‹ Timer14Action › => ‹ 4 ›,
‹ Timer15Time › => ‹ 13%3A06 ›,
‹ Timer15Relay › => ‹ 7 ›,
‹ Timer15Action › => ‹ 4 ›,
‹ TimeSaving › => ‹ 01 ›);
if(1){echo ‹
›; print_r($fields); echo ‹
›; }
// ===============
// EOF TIMER LISTING
// ===============
// +++++++++++++++
// cURL Publishing
// +++++++++++++++
$useragent = « Mozilla/5.0 »;
$referer = $url;
echo $url;
//url-ify the data for the POST
foreach($fields as $key=>$value) { $fields_string .= $key.’=’.$value.’&’; }
rtrim($fields_string,’&’);
// $fields_string = implode("&",$fields); A AMELIORER pour ajouter l’index!
echo $fields_string;
//open connection
$ch = curl_init();
//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT, $useragent);
curl_setopt($ch,CURLOPT_REFERER, $referer);
curl_setopt($ch,CURLOPT_POST,count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION, 1);
//execute post
$result = curl_exec($ch);
//close connection
curl_close($ch);
// ++++++++++++++++++++
// EOF cURL Publishing
// ++++++++++++++++++++
//on peut faire un echo du résultat obtenu
echo $result;
?>
c’est fini!
<?php
setlocale (LC_TIME, 'fr_FR.utf8','fra');
echo str_replace("é","é",str_replace("û","û",strftime("%A: %d-%b-%G @ %H:%M")));
?>