How do I get one device to trigger a content change on another?
We have several mechanisms. The experimental 'Other device - go to sign in sequence', may meet your requirements. We have had problems with devices needing to 'learn' the availability of the other device after a reboot or deploy.
An alternative is MQTT and Javascript. We will write a more comprehensive tutorial but for now here is the code...
- //set the URL of the WebView to this...
- //https://gaztesthost.s3-eu-west-1.amazonaws.com/PahoMQTTLib.html
- //set these variables...
- var g_thisSignName = "TheWalkConnectedDemo - PnL - Scratch";
- var g_mqttServer = "ws://mqtt.signstix.com:8080";
- var g_mqttTopic = "Hyper";
- var g_mqttPayload = '{"majorDimension":[ "1" ]}';
- function onSignAppeared(signName, signId)
- {
- SignStixDebug.info("Sign appeared. signName:" + signName +" signId:" + signId);
- if (signName!=g_thisSignName)
- return;
- var client = mqtt.connect(g_mqttServer);
- client.on('connect', function ()
- {
- SignStixDebug.info("Connected to " + g_mqttServer);
- //client.subscribe(g_mqttTopic);
- //SignStixDebug.info("subscribed to " + g_mqttTopic);
- client.publish(g_mqttTopic, g_mqttPayload);
- SignStixDebug.info("sent: " + g_mqttPayload + " to topic:" + g_mqttTopic);
- });
- //client.on("message", function (topic, payload)
- // {
- //
- // SignStixDebug.info("received MQTT. topic:" + topic +" payload:" + payload);
- //
- //this is closing the client connection
- //client.end();
- //
- // });
- }
- SignStixNotify.notifyOnSignAppeared("onSignAppeared");
Related Articles
Why can't I have two carousels on one sign/sequence?
Unfortunately, it is only possible to have one carousel within any one sign or sequence. This is because both carousels are created using similar JavaScript. When running these on a device, the JavaScript becomes confused and invalid, and cannot ...
How do I use the 'Cross Device Go-To-Sign' Power Tool?
'Cross Device Go-To-Sign' Power Tool This power tool can be used in interactive signs, where it allows a user interaction at one screen to trigger a sign-change at one or more other screens on the same local network. Please note: The SignStix Player ...
How do I change my signage to seasonal content?
If you want your signs to play seasonal content then it is best to use a campaign schedule. A campaign schedule determines the content playing at any one time. You can create a new campaign by 1. Clicking content, the plus (+) icon 2. Selecting 'New ...
How do I change the settings on my signage device?
There are a number of settings available on a signage device. These can be accessed from the Devices section in Director. You need to have Device Viewer and Device Manager permissions to change settings. Please see the following link for ...
How do I copy device settings to a new device?
In many instances it can be useful to copy device settings from one device to another. You might be setting up a new device and you want this to have the same settings as your other devices. Or you may be switching one device for another, and want ...