steveseguin / social_stream

Consolidate your live social messaging streams and much more
http://socialstream.ninja/
GNU General Public License v3.0
647 stars 96 forks source link

Updated SPX integration + info on how to use #50

Closed Kaitology closed 1 year ago

Kaitology commented 1 year ago

Usage: usage: append following parameters to dock.html: spxserver=http://xxxxxxxx/:80&spxfunction=myCustomFunction&spxlayer=11

SPX templates can use the data like this:

// decode incoming json data let decodedText = decodeURIComponent(params); let data = JSON.parse(decodedText);

// update SPX with received data document.getElementById('f0').innerHTML = data.displayName; document.getElementById('f1').innerHTML = data.message; document.getElementById('f2').src = data.profileImageUrl;

The following data is also available:

data.platform.name data.platform.logoUrl

More can be added by request