text: /**
   * Created by Benoit on 2017-03-31.
   */
  $(document).ready(function () {
      function startTime() {
          $(".dashboard-time-content").html("Local time: " + moment().format('HH:mm:ss'));
          t = setTimeout(function () {
              startTime()
          }, 500);
      }
  
      $("#dashboard-play-icon").on("click", function () {
          var dashboardTransmitterUuid = $("#dashboardTransmitterId").val();
          var queryParams = "?uuid=" + dashboardTransmitterUuid;
  
          jQuery.ajax({
              url: "http://localhost:8000/telemetry/transmitter/start" + queryParams,
              type: "GET",
              success: function (resultData) {
                  alertify.success("Transmitter worker successfully started !");
              },
              error: function (jqXHR, textStatus, errorThrown) {
                  sweetAlert("Oops...", "An error has occurred while starting the communication", "error");
              },
              timeout: 12000
          });
          jQuery.ajax({
              url: "http://localhost:8000/telemetry/sensor/start" + queryParams,
              type: "POST",
              success: function (resultData) {
                  alertify.success("Local sensors workers successfully started !");
              },
              error: function (jqXHR, textStatus, errorThrown) {
                  sweetAlert("Oops...", "An error has occurred while starting the local sensor streams", "error");
              },
              timeout: 12000
          });
      });
  
      $("#dashboard-stop-icon").on("click", function () {
          var dashboardTransmitterUuid = $("#dashboardTransmitterId").val();
          var queryParams = "?uuid=" + dashboardTransmitterUuid;
  
          jQuery.ajax({
              url: "http://localhost:8000/telemetry/transmitter/stop" + queryParams,
              type: "GET",
              success: function (resultData) {
                  alertify.success("Transmitter worker successfully stopped !");
              },
              error: function (jqXHR, textStatus, errorThrown) {
                  sweetAlert("Oops...", "An error has occurred while stopping the communication", "error");
              },
  
              timeout: 12000000
          });
      });
  
      startTime();
  });