You are here:
< Back

Our WB server can call NodeJS scripts and pass over all the information for custom reporting.

You can write your own script for the following events:

Device Status Changed Event
when the device goes online or offline

{ source: {},
timestamp: 1553848012644,
deviceId: 'd4228adbebb74b23dfgcf07e4a6d841',
deviceName: 'Hall Device',
ipAddress: '192.168.1.182',
macAddress: '00-14-22-01-23-45',
customerId: 1,
status: 'OFFLINE' }

Page Time Add Event
When the content reports a new page loaded

{ timestamp: 1553848396922,
deviceId: 'd4228adbebb74b23fd85abcf07e4a6d841',
contentId: '4096d66ded154a1casdf45fcb486891fe7e',
pageId: 'Default',
pageName: 'Default',
date: 1553848396920,
pageTime: 10.288399999961257 }

Content Created Event
Content created/saved/deleted

{ timestamp: 1553848582529,
contentId: 'd1d9b09a389e4475df96af0edc8d5817',
contentName: 'Livingroom content',
createdAtCustomerId: 1,
createdByUserEmail: 'user@wallboard.info' }

Customer User Login Event
User login

{ timestamp: 1553848740401,
customerId: 1,
customerName: 'Designer',
loginEmail: 'designer@wallboard.info' }

User Added Event
User created

{ timestamp: 1553848859361,
userEmail: 'user@gmail.com',
addedByUserEmail: 'user@wallboard.info' }

User Removed Event
User removed

{ timestamp: 1553848938484,
userEmail: 'user@gmail.com',
removedByUserEmail: 'user@wallboard.info' }

Customer Added Event
Client created

{ timestamp: 1553849943544,
customerId: 11,
customerName: 'Designer Client',
addedByUser: 'designer@wallboard.info',
licenseCount: 2 }

Customer Removed Event
Client removed

{ timestamp: 1553850042592,
customerId: 11,
customerName: 'Designer Client',
removedByUserEmail: 'designer@wallboard.info' }

Customer License Count Changed Event
Client’s license number increased or decreased

{ timestamp: 1553850125851,
customerId: 11,
customerName: 'Designer Client',
changedByUser: 'designer@wallboard.info' ,
oldCount: 10,
newCount: 32 }

Customer License Type Changed Event
Client’s license type changed

{ timestamp: 1554981667153,
customerId: 12,
customerName: client,
oldLicenseType: type1,
newLicenseType: type2,
userEmail: client@wallboard.info }

Advertiser Topup Event
Advertiser’s balance encreased

{ timestamp: 1553850292241,
advertiserId: '480ff045af38sd6e4858753b0a95040f1',
advertiserName: 'coca-cola',
customerId: 1,
amount: 1000,
balance: 1200 }

Advertiser Charged Event
Advertiser charged

{ timestamp: 1554981738185,
advertiserId: 12,
advertiserName: test,
customerId: 13,
deviceId: 4141sdfdaf3r3qr,
deviceName: android device,
contentId: 234df23r2f123fvdsfv2t,
contentName: test content,
amount: 3,
balance: 100 }

Page Item Click Event
Submit button clicked on device

{ timestamp: 1553850414441,
deviceId: 'd4228adbebb74sf2399abcf07e4a6d841',
contentId: 'a3827a9222bf43af8d86c2e5e4eb6e96',
pageId: 'Default',
pageName: 'Default',
date: 1553850414436,
tagname: 'Tag#1',
clickCount: 1 }

Device Renamed Event
Device renamed

{ timestamp: 1553850493694,
deviceId: '741b73a2dc604c9a9add961fdd1601ee',
deviceName: 'Windows Device',
ipAddress: '192.168.1.162',
macAddress: '00-14-22-01-23-45',
customerId: 1,
changedByUser: 'designer@wallboard.info' ,
oldName: 'Horizontal Device' }

Device Assign Content Event
Content assigned to device

{ timestamp: 1553850616095,
deviceId: 'd4228adbeasb74b2399abcf07e4a6d841',
deviceName: 'Android device',
ipAddress: '192.168.1.182',
macAddress: '00-14-22-01-23-45',
assignedContentId: 'a3827a9222bfsd3af8d86c2e5e4eb6e96',
assignedContentName: 'Evening content',
assignedByUserEmail: 'designer@wallboard.info' }

Device Removed Event
Device removed

{ timestamp: 1553850693540,
deviceId: '741b73a25c604c9a9sddd961fdd1601ee',
deviceName: 'Windows Device',
ipAddress: '192.168.1.162',
macAddress: '00-14-22-01-23-45',
customerId: 1,
removedByUserEmail: 'designer@wallboard.info' }

Device Assign Customer Event
Device assigned to customer

{ timestamp: 1553850795467,
deviceId: '9aa06a9sd607040ee90ff218d1729a554',
deviceName: 'Windows Client',
ipAddress: '192.168.1.162',
macAddress: '00-14-22-01-23-45',
customerId: 1,
addedByUserEmail: 'designer@wallboard.info' }

Media file time added Event
Media file displayed on device

{ timestamp: 1553850795467,
   deviceId: '9aa06a9sd607040ee90ff218d1729a554',
   contentId: 'as41g6as4gas4g5as4gas56g4as6g4648s',
   fileId: '75adsas4dgfa54gas74ga5g45474gr447',
   fileName: 'background.jpg',
   customerId: 1,
 }

Custom Asset Displayed Event
Custom asset displayed

 { timestamp: 1553850795467,
   deviceId: '9aa06a9sd607040ee90ff218d1729a554',
   contentId: 'as41g6as4gas4g5as4gas56g4as6g4648s',
   asssetId: '75adsas4dgfa54gas74ga5g45474gr447',
   time: '5sec',
   customerId: 1,
 } 

Slide Time Added Event
Slide displayed in loop

 { timestamp: 1553850795467,
   deviceId: '9aa06a9sd607040ee90ff218d1729a554',
   contentId: 'as41g6as4gas4g5as4gas56g4as6g4648s',
   slideId: '75adsas4dgfa54gas74ga5g45474gr447',
   slideName: 'background.jpg',
   time: '5sec',
   customerId: 1,
 }  

On the superamin /settings page you can enter the url of your custom scripts for the events.

Comments are closed.