You are here:
< Back

You can use the NodeJS script to collect information from 3rd party datasources (e.g. external database or webservices) and return their values as a datasource table. This way you can integrate any datasource to the Wallboard system.

When you call the script you can pass over parameters here:

http://editor.wallboard.info/localscripts/datasource?name=John&age=25

You can receive the parameters as listed here:

const get = (req, res) => {

const name= req.query.name;
const age= req.query.age;
}

When the results are retrieved you have to pass them back to Wallboard server in the following format:

res.setHeader('Content-Type', 'application/text');
res.send(name+" is " + age + " years old");

Comments are closed.