March 23, 2023, 02:43:15 PM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://plus.digitalsignage.com

MediaSignage support forum



Author Topic: Simple web link to restart station?  (Read 5555 times)

Saner Media

  • Full Member
  • ***
  • Posts: 93
  • Karma: +1/-0
Simple web link to restart station?
« on: December 25, 2015, 12:32:50 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?

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5166
  • Karma: +36/-8
Re: Simple web link to restart station?
« Reply #1 on: December 29, 2015, 09:43:46 PM »
as long as you embed the user and pass you can retrieve the stations list the same way we grab it in StudioLite via the Pepper SDK

regards

Saner Media

  • Full Member
  • ***
  • Posts: 93
  • Karma: +1/-0
Re: Simple web link to restart station?
« Reply #2 on: January 03, 2016, 08:36:40 PM »
Sooooooo...... Yes?
Can we get the code for that?

Saner Media

  • Full Member
  • ***
  • Posts: 93
  • Karma: +1/-0
Re: Simple web link to restart station?
« Reply #3 on: January 03, 2016, 08:40:20 PM »
By "restarting the player", I actually mean reboot the whole workstation.

Saner Media

  • Full Member
  • ***
  • Posts: 93
  • Karma: +1/-0
Re: Simple web link to restart station?
« Reply #4 on: January 14, 2016, 06:08:38 PM »
What would be the code to restart windows then?

mati 6

  • Jr. Member
  • **
  • Posts: 31
  • Karma: +1/-0
Re: Simple web link to restart station?
« Reply #5 on: February 13, 2017, 06:38:59 AM »
Hi,

I am also looking for simple command to restart button via sendCommand(...) function.


var COMMAND = "command";
sendCommand("galaxy.signage.me", "Login", "Password", Station ID,    COMMAND        );

All I ask for (just like Saner Media) is to tell what is the value of COMMAND variable to reset te stations. (I would like it to act like "start" button in studioPro).

In general that would be great if you could write some better documentation for API (it is not only my opinion).

Kind regards

 

Carbonate design by Bloc
variant: carbon
SMF 2.0.12 | SMF © 2016, Simple Machines