October 02, 2023, 02:20:08 AM
Welcome, Guest. Please login or register
News: Stay up to date with everything that's happening at http://twitter.digitalsignage.com

MediaSignage support forum



Author Topic: SDK - Check Station Status  (Read 9619 times)

mjones1040

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
SDK - Check Station Status
« on: January 18, 2018, 05:34:18 AM »
Hi There, I've gotten a handle on the Pepper (or is it Jalapeno now?) SDK, and the JavaScript functions are quite easy to use and expand upon. The number one thing I was looking to do with it was the build out a means to change all stations on Campaign A to Campaign B without having to touch each one (we have quite a few boards and it gets tedious). This was easy enough to do, but one thing we also really would like to show on our Help Desk's status boards are down boards. It is already a node.js application, so integrating the SDK would be very easy, but for the life of me I don't see anywhere the connection status is presented. Given StudioLite shows it, I'm sure its somewhere, but I can't find it!

On another topic, I've been pulling apart the code to figure out the underlying API, and have managed to port some basic functions over into a .NET library; before I go too far on this, has someone already ported the SDK to .NET by any chance?

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5181
  • Karma: +36/-8
Re: SDK - Check Station Status
« Reply #1 on: January 25, 2018, 08:37:34 AM »
The SDK is pure JS and so I am not sure .NET exists.
As for the station status, data is stored in StationModel and it loads at loadStations inside appdb.effects.ts

mjones1040

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: SDK - Check Station Status
« Reply #2 on: April 12, 2018, 06:51:03 PM »
I have made some decent progress taking apart the Pepper.js SDK and writing a .NET equivalent over the last few days (finally had time to come back to this), and actually can pull this information correctly now. I've also used it to build a tool so that we can mass-change campaigns and output boards (very useful when you have hundreds of boards).

Is there any documentation on the SOAP API? So far everything I've been able to get working has been by basically parsing through the pepper code, monitoring the post/get traffic on a test account, and working out how things go that way. Obviously some of the WebService stuff is self-documented, but things like RequestData and SubmitData seem to have no documentation, anywhere.

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5181
  • Karma: +36/-8
Re: SDK - Check Station Status
« Reply #3 on: April 12, 2018, 07:09:42 PM »
unfortunately we do not document the direct API calls, as most (if not all) use the PepperSDK for customization.

mjones1040

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: SDK - Check Station Status
« Reply #4 on: April 12, 2018, 08:18:42 PM »
Is there any chance you can provide a list of valid commands?

I see the rebootPlayer command, and have worked out the Begin and Commit commands so I can save changes I make. I can also see how to send remote events, and screen captures. Are there other valid commands, and can you provide a list, or will I have to continue basically going through the existing SDK and figuring it out that way.

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5181
  • Karma: +36/-8
Re: SDK - Check Station Status
« Reply #5 on: April 13, 2018, 12:50:01 AM »
I wish I could but we just don't have it documented as its just the pure C# source code as self documenting

mjones1040

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: SDK - Check Station Status
« Reply #6 on: April 13, 2018, 12:40:00 PM »
Thats fine. I actually ended up using netmon while I had the signage studio open and was able to capture the proper commands for all of the functions.

Thanks

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 5181
  • Karma: +36/-8
Re: SDK - Check Station Status
« Reply #7 on: April 13, 2018, 03:20:03 PM »
perfect idea!

mjones1040

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: SDK - Check Station Status
« Reply #8 on: April 15, 2018, 02:24:52 PM »
I've been looking into actually using the SOAP services (they are a lot easier to use in C#), but the SOAP services actually use encrypted payloads. For example: galaxy.signage.me/WebService/LoginService.asmx?op=GetBusinessUserInfo

It takes encrypted data as input, but obviously there is not documentation on what method you are using to encrypt the data, and none of the open source studios appear to be using the SOAP services, so I can't figure it out that way. Can you provide any information about how I should be using this service?

 

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