October 19, 2018, 11:52:09 AM
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: sms to server to player  (Read 2635 times)

cp36609

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
sms to server to player
« on: June 08, 2016, 02:16:46 PM »
dev team or fellow members any idea how to post events from sms via server and not players acting as one?

cp36609

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: sms to server to player
« Reply #1 on: June 08, 2016, 02:38:49 PM »
SendRemoteCommand as is used from Location based, can it be my solution

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 4865
  • Karma: +35/-8
    • View Profile
Re: sms to server to player
« Reply #2 on: June 09, 2016, 07:48:00 AM »
you will need a Trillio account, and run a local server such as node.js, receive commands from Trillio and send via sendCommand, kind of like a proxy
https://www.twilio.com/

cp36609

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: sms to server to player
« Reply #3 on: June 09, 2016, 08:47:56 AM »
thank you unfortunately twilio does not offer a receive service in Greece where I am located

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 4865
  • Karma: +35/-8
    • View Profile
Re: sms to server to player
« Reply #4 on: June 09, 2016, 09:14:35 AM »
mmm run an aws instance in US maybe

cp36609

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: sms to server to player
« Reply #5 on: June 09, 2016, 09:16:17 AM »
could the below work? (got it from the location based service)

Send event to a remote SignagePlayer via the internet service

function sendRemoteCommand(i_domain, i_user, i_password, i_stationId, i_eventName, i_param) {
    //var url = '*****://sun.signage.me/WebService/sendCommand.ashx?i_user=d39@ms.com&i_password=xxxxxx&i_stationId=46&i_command=event&i_param1=gps&i_param2=34.154595901466685,-118.78676801919937&callback=?';
    var url = i_domain + '/WebService/sendCommand.ashx?i_user=' + i_user + '&i_password=' + i_password + '&i_stationId=' + i_stationId + '&i_command=event' + '&i_param1=' + i_eventName + '&i_param2=' + i_param + '&callback=?';
    //console.log(url);
    jsonpClient(url, function (err, data) {
        if (err) {
        }
        //console.log(data);
    });

cp36609

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: sms to server to player
« Reply #6 on: June 10, 2016, 02:46:12 AM »
please share node.js setup if possible

admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 4865
  • Karma: +35/-8
    • View Profile
Re: sms to server to player
« Reply #7 on: June 10, 2016, 01:26:07 PM »

 

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