* * Jeedom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Jeedom. If not, see <http://www.gnu.org/licenses/>. */ if (!isConnect('admin')) { throw new Exception('401 Unauthorized'); } //if (config::byKey('enableLogging', 'arduidom', 0) == 0) { // echo '<div class="alert alert-danger">{{Vous n\'avez pas activé l\'enregistrement de tous les messages : allez dans Générale -> Plugin puis rfxcom et coché la case correspondante}}</div>'; //} if (arduidom::get_daemon_mode() != "OK") { if (substr(jeedom::version(), 0, 1) == 2) { event::add('jeedom::alert', array('level' => 'error', 'message' => __("Action Impossible : Le démon ne fonctionne pas !", __FILE__))); } } ?> <pre id='pre_ardulog' style='overflow: auto; height: 95%;width:90%;'></pre> <script> getArduLog(1); function getArduLog(_autoUpdate) { $.ajax({
<option value="8" id="ArduinoQty">8</option> </select> </div> Actualiser la page après la Sauvegarde d'un changement. </div> <hr> <ul class="nav nav-pills nav-justified" id="tab_arid"> <?php for ($i = 1; $i <= $ArduinoQty; $i++) { if ($i == 1) { echo '<li class="active">'; } else { echo '<li>'; } $DaemonReady = arduidom::get_daemon_mode(); if ($DaemonReady == "OK") { $daemonstate = arduidom::ping_arduino($i, false); } else { $daemonstate = 0; } echo '<a data-toggle="tab" href="#tab_' . $i . '">{{Arduino ' . $i . ' <span class="label label-' . ($daemonstate == 1 ? 'success' : 'danger') . ' "> PING:' . ($daemonstate == 1 ? 'OK' : 'NOK') . '</span>' . '}}</a></li>'; } ?> </ul> <div class="tab-content" id="arduinotabs"> <?php for ($i = 1; $i <= $ArduinoQty; $i++) { ?> <div class="tab-pane<?php