system.kanoa.dashboard.addMarqueeDisplay
Description
Adds a display to the marqueeDisplay tableSyntax
addMarqueeDisplay(marqueeDisplayInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
marqueeId | int | ||
siteCode | string | ||
location | string | ||
screenName | string | ||
theme | string | i.e. 'kanoa-dark' | |
enabled | bool |
Code Examples
# Example usage
marqueeDisplayInfo = {
"marqueeId": 12,
"siteCode": 'Texas',
"location": 'Break Room',
"screenName": 'TV1',
"enabled": True
}
userId = 123
marqueeDisplayId, msg = system.kanoa.dashboard.addMarqueeDisplay(marqueeDisplayInfo, userId)
if msg: system.perspective.sendMessage('showFailerToast', msg)
else: system.perspective.sendMessage('showSuccessfulToast', 'Marquee has been added to the display')