MediaSignage support forum

community support => New features and suggestions => Topic started by: cp36609 on June 08, 2016, 02:16:46 PM

Title: sms to server to player
Post by: cp36609 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?
Title: Re: sms to server to player
Post by: cp36609 on June 08, 2016, 02:38:49 PM
SendRemoteCommand as is used from Location based, can it be my solution
Title: Re: sms to server to player
Post by: admin 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/
Title: Re: sms to server to player
Post by: cp36609 on June 09, 2016, 08:47:56 AM
thank you unfortunately twilio does not offer a receive service in Greece where I am located
Title: Re: sms to server to player
Post by: admin on June 09, 2016, 09:14:35 AM
mmm run an aws instance in US maybe
Title: Re: sms to server to player
Post by: cp36609 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);
    });
Title: Re: sms to server to player
Post by: cp36609 on June 10, 2016, 02:46:12 AM
please share node.js setup if possible
Title: Re: sms to server to player
Post by: admin on June 10, 2016, 01:26:07 PM
its all here: https://www.twilio.com/docs/libraries/node