MediaSignage support forum

community support => New features and suggestions => Topic started by: Saner Media on December 25, 2015, 12:32:20 PM

Title: Simple web link to restart station?
Post by: Saner Media on December 25, 2015, 12:32:20 PM
Is there any code to create a simple web link to restart specific stations for people you do not want logged into the account?
This is the code for the "Emergency" campaign change:

<html>
  <head>
    <script type="text/javascript" src="https://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="http://galaxy.signage.me/Code/js/stations.js"></script>

   

    <script type="text/javascript">
     
      $(document).ready(function()
      {
$("#btn1").click(
         function()
         { 
           sendCommand("galaxy.signage.me", "Login", "Password", Station ID, "Advertisements");
});
      });

    </script>
  </head>
 
  <body>
   <button id="btn1">Name of Button</button>

   </body>
</html>

Is there a command to restart the player the same way?